WEB开发网      婵犻潧鍊婚弲顐︽偟椤栨稓闄勯柦妯侯槸閻庤霉濠婂骸浜剧紒杈ㄥ笚閹峰懘鎮╅崹顐ゆ殸婵炴垶鎸撮崑鎾趁归悩鐑橆棄闁搞劌瀛╃粋宥夘敃閿濆柊锕傛煙鐎涙ê鐏f繝濠冨灴閹啴宕熼鍡╀紘婵炲濮惧Λ鍕叏閳哄懎绀夋繛鎴濈-楠炪垽鎮归崶褍妲婚柛銊ュ缁傚秹鏁撻敓锟� ---闂佹寧娲╅幏锟�
开发学院WEB开发Jsp 有什么理由不使用Spring? 阅读

有什么理由不使用Spring?

 2008-01-05 18:25:48 来源:WEB开发网 闂侀潧妫撮幏锟�闂佸憡鍨电换鎰版儍椤掑倵鍋撳☉娆嶄沪缂傚稄鎷�婵犫拃鍛粶闁靛洤娲ㄩ埀顒佺⊕閵囩偟绱為敓锟�闂侀潧妫撮幏锟�  闂佺ǹ绻楀▍鏇㈠极閻愬灚瀚梺鍨儏閳ь剙绉归弻銊р偓闈涙啞閻h京鈧敻鍋婇崰鏍х暦閿燂拷
核心提示: SPRing Team 提到, 让人期待的2.0 让人瞩目的特性将会包括: ·更简单,扩展性更强的xml配置 ·更好地支持aspectJ ·Scoping for beans ·可定制的异步任务执行框架 ·CommonJ TimerManager 实现(WebSphere和WebLogic 用户的福音)

   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/


Tags:什么 理由 使用

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接