contextCon" />
当前位置:文档之家› SSI整合--搭建Struts2+Spring+Ibatis框架

SSI整合--搭建Struts2+Spring+Ibatis框架

SSI整合--搭建Struts2+Spring+Ibatis框架
SSI整合--搭建Struts2+Spring+Ibatis框架

SSI整合--搭建Struts2+Spring+Ibatis框架

各配置文件解析:

xmlns:xsi="https://www.doczj.com/doc/329734330.html,/2001/XMLSchema-instance"

xsi:schemaLocation="https://www.doczj.com/doc/329734330.html,/xml/ns/javaee

https://www.doczj.com/doc/329734330.html,/xml/ns/javaee/web-app_2_5.xsd"

version="2.5">

contextConfigLocation

classpath:spring-config.xml

org.springframework.web.context.ContextLoaderListener

struts2

org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter

struts2

/*

spring-config.xml

xmlns:xsi="https://www.doczj.com/doc/329734330.html,/2001/XMLSchema-instance"

xsi:schemaLocation="https://www.doczj.com/doc/329734330.html,/schema/beans http://www.springframewo https://www.doczj.com/doc/329734330.html,/schema/beans/spring-beans.xsd">

classpath:spring-jdbc.properties

${jdbc.driver}

${jdbc.url}

${https://www.doczj.com/doc/329734330.html,ername}

${jdbc.password}

${jdbc.driver}

classpath:SqlMapConfig.xml

spring-jdbc.properties

jdbc.driver=com.mysql.jdbc.Driver

jdbc.url=jdbc:mysql://127.0.0.1:3306/gwap

https://www.doczj.com/doc/329734330.html,ername=root

jdbc.password=123456

struts.xml

"-//Apache Software Foundation//DTD Struts Configuration2.1//EN"

"https://www.doczj.com/doc/329734330.html,/dtds/struts-2.1.dtd">

/WEB-INF/jsp/fail.jsp

struts-main.xml

"-//Apache Software Foundation//DTD Struts Configuration2.1.7//EN"

"https://www.doczj.com/doc/329734330.html,/dtds/struts-2.1.7.dtd">

/WEB-INF/jsp/main/main.jsp

index

/user

/WEB-INF/jsp/main/main.jsp

/WEB-INF/jsp/main/book_detail.jsp

/WEB-INF/jsp/main/category.jsp

5

/WEB-INF/jsp/main/book_list.jsp

相关主题
相关文档 最新文档