Spring Framework 1.1.4 发布
我们很高兴地宣布 Spring Framework 1.1.4 已发布。这是 1.1 系列中的一个错误修复和次要增强版本。
</span>Among the new
特性包括
- 添加了 LazyInitTargetSource,用于从 BeanFactory 延迟访问单例(在第一次调用时延迟初始化)
- 添加了 ServiceLocatorFactoryBean,允许将自定义服务定位器接口方法映射到 BeanFactory.getBean 调用
- 重构了 ResourcePatternResolver 以扩展 ResourceLoader,用于在 ResourceLoaderAware 中检查 ResourcePatternResolver
- 使 BindException 可序列化,前提是包含的目标对象是可序列化的
- 添加了 LazyConnectionDataSourceProxy,用于在使用原生 JDBC 或 Hibernate 事务时延迟获取 JDBC 连接
- 在默认的 sql-error-codes.xml 文件中添加了 "Sybase-jConnect",用于数据库产品名称 "Adaptive Server Enterprise"
- 在 JdbcTemplate 中添加了带参数类型的重载方法 "queryForList"/"queryForObject"/"queryForLong"/"queryForInt"
- 在 HibernateTemplate 中添加了 "alwaysUseNewSession" 标志,即使在存在预绑定 Session 的情况下也强制使用新 Session
- HibernateTemplate 默认代理暴露的 Sessions,应用查询缓存设置和事务超时
- 在 AbstractRemoteSlsbInvokerInterceptor 中添加了 "isConnectFailure(RemoteException)" 钩子,用于自定义失败检查
- 在 (Jndi)RmiClientInterceptor 中添加了 "isConnectFailure(RemoteException)" 钩子,用于自定义连接失败检查
- 添加了 JaxRpcServicePostProcessor 接口,用于 JAX-RPC 服务的可重用自定义类型映射等
- 在 LocalJaxRpcServiceFactory 及其子类(包括 JaxRpcPortProxyFactoryBean)中添加了 "servicePostProcessors" 属性
- 在 JmsTemplate 中添加了 "messageIdEnabled" 和 "messageTimestampEnabled" 属性,用于在生产者端禁用 ID/时间戳
- 在 JmsTemplate 中添加了 "pubSubNoLocal" 属性,导致在创建 MessageConsumer 时指定 NoLocal 标志
- 在 JmsTemplate 中添加了接受 JMS 消息选择器的 "receiveSelected" 和 "receivedSelectedAndConvert" 方法
- 在 SchedulerFactoryBean 中添加了 "schedulerListeners", "(global)JobListeners", "(global)TriggerListeners" bean 属性
- 在 JobDetailBean, CronTriggerBean, SimpleTriggerBean 中(分别)添加了 "jobListenerNames"/"triggerListenerNames" 属性
- 添加了 ServletContextAttributeFactoryBean,用于暴露现有的 ServletContext 属性以供 bean 引用
- 添加了 ServletContextAttributeExporter,用于获取 Spring 定义的对象并将其暴露为 ServletContext 属性
- 添加了 ServletContextPropertyPlaceholderConfigurer,这是一个子类,它会回退到 web.xml 的 context-param 条目
- 在 FrameworkServlet 中添加了 "publishEvents" init-param,允许关闭 RequestHandledEvents 的发布
- Spring JSP 标签也可以在 DispatcherServlet 之外工作,会回退到根 WebApplicationContext 和 JSTL/请求本地化设置