一个完整的SSH的例子源代码
各个文件齐全
各个文件都是我从项目中一个一个拷贝出来的,一个都不少
<?xml version="" encoding="UTF-8"?>
<web-app version=""
xmlns="http://java./xml/ns/j2ee"
xmlns:xsi="1/XMLSchema-instance"
xsi:schemaLocation="http://java./xml/ns/j2ee
http://java./xml/ns/j2ee/web-">
<!-- 指定spring的配置文件,默认从web根目录寻找配置文件,我们可以通过spring提供的classpath:前缀指定从类路径下寻找-->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:</param-value>
</context-param>
<!-- 对Spring容器进行实例化-->
<listener>
<listener-.</listener-class>
</listener>
<filter>
<filter-name>struts2</filter-name>
<filter-.</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<e-file-list>
<e-file></e-file>
</e-file-list>
</web-app>
Spring配置文件
<?xml version="" encoding="UTF-8"?>
<beans xmlns="ema/beans"
xmlns:xsi="1/XMLSchema-instance"
xmlns:context="ema/context"
xmlns:aop="ema/aop"
xmlns:tx="ema/tx"
xsi:schemaLocation="ema/beans
ema/beans/spring-beans-
ema/context
ema/context/spring-context-
ema/aop ema/aop/spring-aop-
ema/tx ema/tx/spring-tx-">
<ponent-scan base-package=""/>
一个完整的SSH的例子源代码 来自淘豆网m.daumloan.com转载请标明出处.