SPRing Team 提到, 讓人期待的2.0 讓人矚目的特性將會包括:
·更簡單,擴展性更強的xml配置
·更好地支持aspectJ
·Scoping for beans
·可定制的異步任務執行框架
·CommonJ TimerManager 實現(WebSphere和WebLogic 用戶的福音)
·消息驅動的 POJOs
·SimpleJdbcTemplate:采用泛型等java5中的新特性
這樣, 我們將可以:更輕易配置Spring,更輕易使用AOP,還有就是Spring MVC.
同時,Matt Raible提到:
Spring 2.0: What breaks?
Nothing.
Of course, some things might break - but Rod can't think of anything significant will. It should be a drop-in replacement for 1.x JARs. This really goes to show the value of a non-invasive POJO programming model. There will be some changes in best practices, but you are not forced to change anything.
This should be the norm, but hasn't been so in enterprise Java.
Alef just did a demo of migrating JPetstore from 1.2.6 to 2.0. He copied the 2.0 JAR over the old one and redeployed to Geronimo 1.0 M5. After proving everything worked (in a browser), he changed some of the XML syntax and redeployed. Again, everything worked as eXPected.
agylen 則說:"當我看到這里, 我禁不住問, 有什么理由讓我不選擇Spring? 為什么還有那么多人在做無用功, 想做一個替代Spring的container出來呢?"
或許, 我們也應該問一下自己. 你是否覺得Spring是你的最佳選擇? BEA,Interface21都開始支持Spring, 你覺得Spring是否會成為J2EE標準? 或許Spring將會出現在Java EE 6中?
·springframework:http://www.springframework.com/
新聞熱點
疑難解答