永发信息网

(javaEE)Spring在整个项目中如何充当黏合器?

答案:4  悬赏:40  手机版
解决时间 2021-03-19 16:48
  • 提问者网友:贪了杯
  • 2021-03-19 12:16
(javaEE)Spring在整个项目中如何充当黏合器?
最佳答案
  • 五星知识达人网友:詩光轨車
  • 2021-03-19 12:38
Typically web application uses the following path

view >> controller >> service >> domain

Spring

It has a powerful web-Tier infrastructure

Handler Mapping (It chooses which Controller should handle the request)
View resolver (It chooses which View should render the response)
It can be used for large applications
Powerful data-binding
Spring 3.0 supports Annotation-based Controller (JSR 303 - Bean Validation, coming soon)
But i still not use Spring 3.0 because

By using (and extending when needed) MultiActionController, i can get convention over configuration without no xml settings to define your Controller (You just need to set up your MultiActionController as @Component)
SimpleFormController provides similar behavior found in Spring 3.0 annotation based controller
...

About The learning path, i think both are similar.
全部回答
  • 1楼网友:十年萤火照君眠
  • 2021-03-19 14:46
窝棚,好高大上啊!俺乡下人都没听过
  • 2楼网友:独钓一江月
  • 2021-03-19 14:05
我鹏 来我宿舍我告诉你啊
  • 3楼网友:独钓一江月
  • 2021-03-19 13:26
在SSH项目中,spring的作用相当于将Struts和Hibernate连接起来,将两个没有关系的框架的特点,方法,Action都放在spring的配置文件中,使它们建立关系,取各自所长。

还有你问问题都没有悬赏积分难怪没人高兴回答。
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯