![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring
程序疯子
还是个菜鸟
展开
-
spring的一些配置问题
因为直接使用了SpringMVC,所以之前一直不明白xxx-servlet.xml和applicationContext.xml是如何区别的,其实如果直接使用SpringMVC是可以不添加applicationContext.xml文件的。 使用applicationContext.xml文件时是需要在web.xml中添加listener的: org.springframework.转载 2016-07-30 13:34:00 · 308 阅读 · 0 评论 -
转载网上一个非常详细的spring MVC配置解析
web.xml spring org.springframework.web.servlet.DispatcherServlet ]-servlet.xml,如spring-servlet.xml contextConfigLocation /WEB-INF/spring-servlet.xml 默认 -->转载 2016-07-30 13:59:12 · 264 阅读 · 0 评论 -
spring引用配置常量文件的方法
<context:property-placeholder location="classpath*:conf/conf*.properties"/> 这里location值为参数配置文件的位置,参数配置文件通常放在src目录下配置文件为键值对格式上述代码还解决了引用多个配置文件的问题,用通配符“*”...原创 2016-09-19 10:17:51 · 1307 阅读 · 1 评论