zoukankan      html  css  js  c++  java
  • 【Spring环境搭建】在Myeclipse下搭建Spring环境-web开发




    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环境搭建完毕。









  • 相关阅读:
    算法很美(一)
    pytest学习(四)
    pytest学习(三)
    pytest学习(二)
    pytest学习(一)
    HTTP协议详细介绍,面试详全强助攻!
    Docker实战总结
    微信小程序测试整理
    这些用例设计题,你在面试时遇到过吗?
    测试面试题集-Dubbo常见面试题(12)
  • 原文地址:https://www.cnblogs.com/ssslinppp/p/4378517.html
Copyright © 2011-2022 走看看