摘要:
给外国朋友:spring how to find and read applicationContext.xml from jar file?Is very easy! Put jar file to web-inf/lib directory.Don't put it to web-inf/classes directory. When you make jar file, check eclipse's "Add directory entries" option.Because of The classPath include [src(classes 阅读全文
posted @ 2014-03-20 12:33
calow
阅读(3763)
评论(0)
推荐(0)
摘要:
我们用struts2时采用的传统的配置文件的方式,并没有使用传说中的0配置。spring3mvc可以认为已经100%零配置了(除了配置springmvc-servlet.xml外)。SpringMVC和Struts2的区别:1.机制:springmvc的入口是servlet,而struts2是filter(这里要指出,filter和servlet是不同的。以前认为filter是servlet的一种特殊),这样就导致了二者的机制不同,这里就牵涉到servlet和filter的区别了。2.性能:spring会稍微比struts快。springmvc是基于方法的设计,而sturts是基于类,每次发一 阅读全文
posted @ 2014-03-20 12:31
calow
阅读(3307)
评论(0)
推荐(0)
浙公网安备 33010602011771号