摘要: eclipse 部署maven 的web 项目提示找不到类的问题,需要把maven库添加到build path路径一起发布:1.Add maven dependenciesRight click the web project “properties” -------> click the “Deployment Assembly” ---->Click add buttonChoose Java Build Path Entires ---> click NextChoose Maven Dependencies------>Finish2.Add project d 阅读全文
posted @ 2014-04-07 21:40 xhqgogogo 阅读(587) 评论(0) 推荐(0) 编辑
摘要: 如果使用了SpringMVC,事实上,bean的配置完全可以在xxx-servlet.xml中进行配置。为什么需要applicationContext.xml?一定必须?回答:一:因为直接使用了SpringMVC,所以之前一直不明白xxx-servlet.xml和applicationContext.xml是如何区别的,其实如果直接使用SpringMVC是可以不添加applicationContext.xml文件的。使用applicationContext.xml文件时是需要在web.xml中添加listener的: org.springframework.web.context.Contex 阅读全文
posted @ 2014-04-07 21:37 xhqgogogo 阅读(323) 评论(0) 推荐(0) 编辑