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









  • 相关阅读:
    UISegmentControl
    UISwitch 开关控件
    UI弹出键盘和收回键盘
    UITextField的属性设置
    UIButton的属性设置
    UILabel 的属性设置
    创建UIView对象
    id和instancetype的异同
    SPOJ FIBPOL
    HDU 6168 Numbers
  • 原文地址:https://www.cnblogs.com/ssslinppp/p/4378517.html
Copyright © 2020-2023  润新知