Spring Framework 1.1.4 釋出
我們很高興地宣佈 Spring Framework 1.1.4 已經發布。這是 1.1 系列的一個 bug 修復和小的增強版本。
</span>Among the new
特性有
- 添加了 LazyInitTargetSource,從 BeanFactory 延遲訪問單例(在第一次呼叫時延遲初始化)
- 添加了 ServiceLocatorFactoryBean,允許將自定義服務定位器介面方法對映到 BeanFactory.getBean 呼叫
- 重構了 ResourcePatternResolver 以擴充套件 ResourceLoader,以便在 ResourceLoaderAware 中進行 ResourcePatternResolver 檢查
- 使 BindException 可序列化,前提是包含的目標物件是可序列化的
- 添加了 LazyConnectionDataSourceProxy,用於使用原生 JDBC 或 Hibernate 事務延遲獲取 JDBC 連線
- 將“Sybase-jConnect”新增到預設的 sql-error-codes.xml 檔案,用於資料庫產品名稱“Adaptive Server Enterprise”
- 在 JdbcTemplate 中添加了帶有引數型別的過載“queryForList”/“queryForObject”/“queryForLong”/“queryForInt”方法
- 向 HibernateTemplate 添加了“alwaysUseNewSession”標誌,即使在預繫結 Session 的情況下也強制使用新 Session
- HibernateTemplate 預設代理公開的 Session,應用查詢快取設定和事務超時
- 向 AbstractRemoteSlsbInvokerInterceptor 添加了“isConnectFailure(RemoteException)”鉤子,用於自定義失敗檢查
- 向 (Jndi)RmiClientInterceptor 添加了“isConnectFailure(RemoteException)”鉤子,用於自定義連線失敗檢查
- 添加了 JaxRpcServicePostProcessor 介面,用於 JAX-RPC 服務的可重用自定義型別對映等
- 向 LocalJaxRpcServiceFactory 和子類(包括 JaxRpcPortProxyFactoryBean)添加了“servicePostProcessors”屬性
- 向 JmsTemplate 添加了“messageIdEnabled”和“messageTimestampEnabled”屬性,以停用生產者上的 id/時間戳
- 向 JmsTemplate 添加了“pubSubNoLocal”屬性,導致在 MessageConsumer 建立時指定 NoLocal 標誌
- 向 JmsTemplate 添加了“receiveSelected”和“receivedSelectedAndConvert”方法,接受 JMS 訊息選擇器
- 向 SchedulerFactoryBean 添加了“schedulerListeners”、“(global)JobListeners”、“(global)TriggerListeners”bean 屬性
- 向 JobDetailBean、CronTriggerBean、SimpleTriggerBean 分別添加了“jobListenerNames”/“triggerListenerNames”屬性
- 添加了 ServletContextAttributeFactoryBean,公開現有的 ServletContext 屬性以供 bean 引用
- 添加了 ServletContextAttributeExporter,獲取 Spring 定義的物件並將其公開為 ServletContext 屬性
- 添加了 ServletContextPropertyPlaceholderConfigurer,這是一個回退到 web.xml 上下文引數條目的子類
- 向 FrameworkServlet 添加了“publishEvents”init-param,允許關閉 RequestHandledEvents 的釋出
- Spring JSP 標籤也在 DispatcherServlet 之外工作,回退到根 WebApplicationContext 和 JSTL/請求區域設定
請參閱 更新日誌 以瞭解詳細資訊。
可以透過 SourceForge 專案 頁面 下載