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

阅读 83 收藏 0 点赞 0 评论 0

本文内容纲要:【Spring环境搭建】在Myeclipse下搭建Spring环境-web开发

Image

Image

Image

Image Image

Image

Image

Image Image Image

Image Image

<?xml version="1.0" encoding="UTF-8"?> 
     <web-app version="3.0" 
     	xmlns="http://java.sun.com/xml/ns/javaee" 
     	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
     	http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"> 
       <display-name></display-name>	 
       <welcome-file-list> 
         <welcome-file>index.jsp</welcome-file> 
       </welcome-file-list> 
       
       <!-- Spring 文件路径 --> 
       <context-param> 
         <param-name>contextConfigLocation</param-name> 
         <param-value> 
         /WEB-INF/classes/applicationContext.xml 
         </param-value> 
       </context-param> 
       
       <!-- spring上下文监听器 --> 
        <listener> 
         <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> 
       </listener> 
       
       	<listener> 
     		<listener-class>org.springframework.web.context.request.RequestContextListener</listener-class> 
     	</listener> 
     </web-app>

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

至此,spring环境搭建完毕。

来自为知笔记(Wiz)

本文内容总结:【Spring环境搭建】在Myeclipse下搭建Spring环境-web开发

原文链接:https://www.cnblogs.com/ssslinppp/p/4378517.html
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号