技术开发 频道

Spring 3.0.0 GA 正式版发布

  【IT168 资讯】经过四个里程碑版、三个RC版,Spring框架终于发布了3.0 的正式版。

  该版本改进内容包括:

  • 组件扫描自动检测 Java EE 6 中的
  • "javax.annotation.ManagedBean"
  • 支持 JPA 2.0 最终规范,净测试兼容EclipseLink 2.0 GA
  • 全面支持 GlassFish V3 GA* 升级到 JRuby 1.4
  • Bean 属性名的宽松映射规则 ("title" and "Title"; "ISBN" and "iSBN")
  • Bean 属性映射支持枚举、数组和集合类型* ListableBeanFactory 类删除 getBeansWithAnnotation(Class,boolean,boolean) 方法
  • PropertyPlaceholderConfigurer 兼容 Spring 2.5 扩展
  • SmartLifecycle 将会根据需要自动启动,无视 lazy-init
  • MBeanExporter detects FactoryBean-exported resources independent from declaration order
  • refactored SpelExpressionParser to accept SpelParserConfiguration object with boolean flags
  • revised TypeDescriptor's valueOf and forObject factory methods with some level of caching
  • revised GenericConverter's "getConvertibleTypes" signature to return Set of ConvertiblePair
  • GenericConversionService prefers matches against inherited interfaces over superclasses
  • renamed ConverterRegistry's addGenericConverter(GenericConverter) method to addConverter
  • no default converters for Object-to-Map and Map-To-Object anymore
  • default converter for String-to-Properties parsing only applies for actual Properties objects
  • default ObjectToStringConverter only stringifies objects that indicate proper toString behavior
  • added "converters" property to FormattingConversionServiceFactoryBean as well
  • full support for formatters and formatting annotations on array/collection elements
  • no default number formatter (relying on plain java.lang.Number parsing and rendering)
  • no default formatters for Date/Calendar (requiring explicit use of @DateTimeFormat)
  • BeanValidationPostProcessor runs in before-initialization phase (before init methods) by default
  • removed MultipartRequest mixin interface again (avoiding a package dependency cycle)
  • revised RestTemplate method signatures to accept Object values instead of just Strings
  • revised path variable extraction to properly deal with dots in variable values (again)
  • reintroduced createBinder template method in Servlet/Portlet AnnotationMethodHandlerAdapter

  下载地址: http://www.springframework.org/download

0
相关文章