init
This commit is contained in:
6
web/WEB-INF/applicationContext.xml
Normal file
6
web/WEB-INF/applicationContext.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
|
||||
|
||||
</beans>
|
||||
6
web/WEB-INF/dispatcher-servlet.xml
Normal file
6
web/WEB-INF/dispatcher-servlet.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
|
||||
|
||||
</beans>
|
||||
BIN
web/WEB-INF/lib/ValidateCode.jar
Normal file
BIN
web/WEB-INF/lib/ValidateCode.jar
Normal file
Binary file not shown.
BIN
web/WEB-INF/lib/c3p0-0.9.1.2.jar
Normal file
BIN
web/WEB-INF/lib/c3p0-0.9.1.2.jar
Normal file
Binary file not shown.
BIN
web/WEB-INF/lib/commons-beanutils-1.8.3.jar
Normal file
BIN
web/WEB-INF/lib/commons-beanutils-1.8.3.jar
Normal file
Binary file not shown.
BIN
web/WEB-INF/lib/commons-dbutils-1.4.jar
Normal file
BIN
web/WEB-INF/lib/commons-dbutils-1.4.jar
Normal file
Binary file not shown.
BIN
web/WEB-INF/lib/commons-fileupload-1.2.2.jar
Normal file
BIN
web/WEB-INF/lib/commons-fileupload-1.2.2.jar
Normal file
Binary file not shown.
BIN
web/WEB-INF/lib/commons-io-2.2.jar
Normal file
BIN
web/WEB-INF/lib/commons-io-2.2.jar
Normal file
Binary file not shown.
BIN
web/WEB-INF/lib/commons-logging-1.2.jar
Normal file
BIN
web/WEB-INF/lib/commons-logging-1.2.jar
Normal file
Binary file not shown.
BIN
web/WEB-INF/lib/druid-1.1.2.jar
Normal file
BIN
web/WEB-INF/lib/druid-1.1.2.jar
Normal file
Binary file not shown.
BIN
web/WEB-INF/lib/fastjson-1.1.22.jar
Normal file
BIN
web/WEB-INF/lib/fastjson-1.1.22.jar
Normal file
Binary file not shown.
BIN
web/WEB-INF/lib/jackson-annotations-2.9.5.jar
Normal file
BIN
web/WEB-INF/lib/jackson-annotations-2.9.5.jar
Normal file
Binary file not shown.
BIN
web/WEB-INF/lib/jackson-core-2.9.7.jar
Normal file
BIN
web/WEB-INF/lib/jackson-core-2.9.7.jar
Normal file
Binary file not shown.
BIN
web/WEB-INF/lib/jackson-databind-2.9.7.jar
Normal file
BIN
web/WEB-INF/lib/jackson-databind-2.9.7.jar
Normal file
Binary file not shown.
BIN
web/WEB-INF/lib/jstl.jar
Normal file
BIN
web/WEB-INF/lib/jstl.jar
Normal file
Binary file not shown.
BIN
web/WEB-INF/lib/mail.jar
Normal file
BIN
web/WEB-INF/lib/mail.jar
Normal file
Binary file not shown.
BIN
web/WEB-INF/lib/mybatis-3.4.2.jar
Normal file
BIN
web/WEB-INF/lib/mybatis-3.4.2.jar
Normal file
Binary file not shown.
BIN
web/WEB-INF/lib/mybatis-spring-1.3.1.jar
Normal file
BIN
web/WEB-INF/lib/mybatis-spring-1.3.1.jar
Normal file
Binary file not shown.
BIN
web/WEB-INF/lib/mysql-connector-j-8.0.31.jar
Normal file
BIN
web/WEB-INF/lib/mysql-connector-j-8.0.31.jar
Normal file
Binary file not shown.
BIN
web/WEB-INF/lib/spring-aop-5.0.8.RELEASE.jar
Normal file
BIN
web/WEB-INF/lib/spring-aop-5.0.8.RELEASE.jar
Normal file
Binary file not shown.
BIN
web/WEB-INF/lib/spring-aspects-5.0.8.RELEASE.jar
Normal file
BIN
web/WEB-INF/lib/spring-aspects-5.0.8.RELEASE.jar
Normal file
Binary file not shown.
BIN
web/WEB-INF/lib/spring-beans-5.0.8.RELEASE.jar
Normal file
BIN
web/WEB-INF/lib/spring-beans-5.0.8.RELEASE.jar
Normal file
Binary file not shown.
BIN
web/WEB-INF/lib/spring-context-5.0.8.RELEASE.jar
Normal file
BIN
web/WEB-INF/lib/spring-context-5.0.8.RELEASE.jar
Normal file
Binary file not shown.
BIN
web/WEB-INF/lib/spring-core-5.0.8.RELEASE.jar
Normal file
BIN
web/WEB-INF/lib/spring-core-5.0.8.RELEASE.jar
Normal file
Binary file not shown.
BIN
web/WEB-INF/lib/spring-expression-5.0.8.RELEASE.jar
Normal file
BIN
web/WEB-INF/lib/spring-expression-5.0.8.RELEASE.jar
Normal file
Binary file not shown.
BIN
web/WEB-INF/lib/spring-jdbc-5.0.8.RELEASE.jar
Normal file
BIN
web/WEB-INF/lib/spring-jdbc-5.0.8.RELEASE.jar
Normal file
Binary file not shown.
BIN
web/WEB-INF/lib/spring-test-5.0.8.RELEASE.jar
Normal file
BIN
web/WEB-INF/lib/spring-test-5.0.8.RELEASE.jar
Normal file
Binary file not shown.
BIN
web/WEB-INF/lib/spring-tx-5.0.8.RELEASE.jar
Normal file
BIN
web/WEB-INF/lib/spring-tx-5.0.8.RELEASE.jar
Normal file
Binary file not shown.
BIN
web/WEB-INF/lib/spring-web-5.0.8.RELEASE.jar
Normal file
BIN
web/WEB-INF/lib/spring-web-5.0.8.RELEASE.jar
Normal file
Binary file not shown.
BIN
web/WEB-INF/lib/spring-webmvc-5.0.8.RELEASE.jar
Normal file
BIN
web/WEB-INF/lib/spring-webmvc-5.0.8.RELEASE.jar
Normal file
Binary file not shown.
BIN
web/WEB-INF/lib/standard.jar
Normal file
BIN
web/WEB-INF/lib/standard.jar
Normal file
Binary file not shown.
26
web/WEB-INF/springMVC-config.xml
Normal file
26
web/WEB-INF/springMVC-config.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<?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:context="http://www.springframework.org/schema/context"
|
||||
xmlns:mvc="http://www.springframework.org/schema/mvc"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
||||
http://www.springframework.org/schema/beans/spring-beans.xsd
|
||||
http://www.springframework.org/schema/context
|
||||
http://www.springframework.org/schema/context/spring-context.xsd
|
||||
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd">
|
||||
<!-- 扫描Controller -->
|
||||
<context:component-scan base-package="ah.com.controller" />
|
||||
<!-- 配置视图解析器 -->
|
||||
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
|
||||
<property name="suffix" value=".jsp" />
|
||||
</bean>
|
||||
<mvc:annotation-driven/>
|
||||
<mvc:default-servlet-handler></mvc:default-servlet-handler>
|
||||
<!-- SpringMVC上传文件时,需要配置MultipartResolver处理器 -->
|
||||
<bean id="multipartResolver"
|
||||
class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
|
||||
<property name="defaultEncoding" value="UTF-8" />
|
||||
<!-- 指定所上传文件的总大小,单位字节。注意maxUploadSize属性的限制不是针对单个文件,而是所有文件的容量之和 -->
|
||||
<property name="maxUploadSize" value="10240000" />
|
||||
</bean>
|
||||
</beans>
|
||||
46
web/WEB-INF/web.xml
Normal file
46
web/WEB-INF/web.xml
Normal file
@@ -0,0 +1,46 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" version="3.1">
|
||||
<display-name>chapter16</display-name>
|
||||
<absolute-ordering/>
|
||||
<!--Spring的配置文件-->
|
||||
<context-param>
|
||||
<param-name>contextConfigLocation</param-name>
|
||||
<param-value>classpath:application.xml</param-value>
|
||||
</context-param>
|
||||
<!--Spring的监听器-->
|
||||
<listener>
|
||||
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
|
||||
</listener>
|
||||
<!--SpringMVC的前端控制器-->
|
||||
<servlet>
|
||||
<servlet-name>springMVC</servlet-name>
|
||||
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
|
||||
<init-param>
|
||||
<param-name>contextConfigLocation</param-name>
|
||||
<param-value>/WEB-INF/springMVC-config.xml</param-value>
|
||||
</init-param>
|
||||
<load-on-startup>1</load-on-startup>
|
||||
</servlet>
|
||||
<!--访问DispatcherServlet对应的路径-->
|
||||
<servlet-mapping>
|
||||
<servlet-name>springMVC</servlet-name>
|
||||
<url-pattern>/</url-pattern>
|
||||
</servlet-mapping>
|
||||
<!--编码格式过滤器-->
|
||||
<filter>
|
||||
<filter-name>encoding</filter-name>
|
||||
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
|
||||
<init-param>
|
||||
<param-name>encoding</param-name>
|
||||
<param-value>UTF-8</param-value>
|
||||
</init-param>
|
||||
</filter>
|
||||
<filter-mapping>
|
||||
<filter-name>encoding</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
<!--引导页-->
|
||||
<welcome-file-list>
|
||||
<welcome-file>index.jsp</welcome-file>
|
||||
</welcome-file-list>
|
||||
</web-app>
|
||||
Reference in New Issue
Block a user