码迷,mamicode.com
首页 > 编程语言 > 详细

【Spring环境搭建】在Myeclipse下搭建Spring环境-web开发

时间:2015-03-30 18:04:02      阅读:167      评论:0      收藏:0      [点我收藏+]

标签:


技术分享
技术分享
技术分享
技术分享技术分享
技术分享
技术分享
技术分享技术分享技术分享
技术分享技术分享

    1. <?xml version="1.0" encoding="UTF-8"?>
    2. <web-app version="3.0"
    3. xmlns="http://java.sun.com/xml/ns/javaee"
    4. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    5. xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
    6. http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
    7. <display-name></display-name>
    8. <welcome-file-list>
    9. <welcome-file>index.jsp</welcome-file>
    10. </welcome-file-list>
    11. <!-- Spring 文件路径 -->
    12. <context-param>
    13. <param-name>contextConfigLocation</param-name>
    14. <param-value>
    15. /WEB-INF/classes/applicationContext.xml
    16. </param-value>
    17. </context-param>
    18. <!-- spring上下文监听器 -->
    19. <listener>
    20. <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    21. </listener>
    22. <listener>
    23. <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
    24. </listener>
    25. </web-app>


    1. <?xml version="1.0" encoding="UTF-8"?>
    2. <beans
    3. xmlns="http://www.springframework.org/schema/beans"
    4. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    5. xmlns:p="http://www.springframework.org/schema/p"
    6. xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
    7. </beans>

至此,spring环境搭建完毕。









【Spring环境搭建】在Myeclipse下搭建Spring环境-web开发

标签:

原文地址:http://www.cnblogs.com/ssslinppp/p/4378517.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!