基于maven的spring mvc项目

来源:互联网 发布:淘宝手机兼职怎么做 编辑:程序博客网 时间:2024/05/16 09:34

applicationContext.xml

  1. <?xml version="1.0" encoding="UTF-8"?>  
  2. <beans xmlns="http://www.springframework.org/schema/beans"  
  3.     xmlns:context="http://www.springframework.org/schema/context"  
  4.     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"  
  5.     xmlns:tx="http://www.springframework.org/schema/tx" xmlns:p="http://www.springframework.org/schema/p"  
  6.     xmlns:util="http://www.springframework.org/schema/util" xmlns:jdbc="http://www.springframework.org/schema/jdbc"  
  7.     xmlns:cache="http://www.springframework.org/schema/cache"  
  8.     xsi:schemaLocation="    
  9.     http://www.springframework.org/schema/context    
  10.     http://www.springframework.org/schema/context/spring-context.xsd    
  11.     http://www.springframework.org/schema/beans    
  12.     http://www.springframework.org/schema/beans/spring-beans.xsd    
  13.     http://www.springframework.org/schema/tx    
  14.     http://www.springframework.org/schema/tx/spring-tx.xsd    
  15.     http://www.springframework.org/schema/jdbc    
  16.     http://www.springframework.org/schema/jdbc/spring-jdbc-3.1.xsd    
  17.     http://www.springframework.org/schema/cache    
  18.     http://www.springframework.org/schema/cache/spring-cache-3.1.xsd    
  19.     http://www.springframework.org/schema/aop    
  20.     http://www.springframework.org/schema/aop/spring-aop.xsd    
  21.     http://www.springframework.org/schema/util    
  22.     http://www.springframework.org/schema/util/spring-util.xsd">  
  23.   
  24.     <!-- jdbc.properties文件路径 -->  
  25.     <bean  
  26.         class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">  
  27.         <property name="locations"  
  28.             value="classpath*:jdbc.properties" />  
  29.     </bean>  
  30.     <!-- 数据源的配置 -->  
  31.     <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"  
  32.         destroy-method="close">  
  33.         <property name="driverClassName" value="${driver}" />  
  34.         <property name="url" value="${url}" />  
  35.         <property name="username" value="${user}" />  
  36.         <property name="password" value="${password}" />  
  37.         <!-- data source configuration -->  
  38.         <property name="initialSize" value="60" />  
  39.         <!-- initial connections -->  
  40.         <property name="maxActive" value="100" />  
  41.         <!-- MAX connections -->  
  42.         <property name="maxIdle" value="50" />  
  43.         <!-- MAX idle connections -->  
  44.         <property name="minIdle" value="10" />  
  45.         <!-- MIN idle connections -->  
  46.         <!-- 处理mysql 8小时自动断开连接的问题 -->  
  47.         <property name="testWhileIdle" value="true" />  
  48.         <property name="testOnBorrow" value="false" />  
  49.         <property name="testOnReturn" value="false" />  
  50.         <property name="validationQuery" value="select 1" />  
  51.         <property name="timeBetweenEvictionRunsMillis" value="20000" />  
  52.         <property name="numTestsPerEvictionRun" value="100" />  
  53.     </bean>  
  54.     <!-- 事务相关控制 -->  
  55.     <bean id="transactionManager"  
  56.         class="org.springframework.jdbc.datasource.DataSourceTransactionManager">  
  57.         <property name="dataSource" ref="dataSource" />  
  58.     </bean>  
  59. <!--     <tx:advice id="userTxAdvice" transaction-manager="transactionManager"> -->  
  60. <!--         <tx:attributes> -->  
  61. <!--             <tx:method name="*" propagation="REQUIRED" read-only="false" -->  
  62. <!--                 rollback-for="java.lang.Exception" /> -->  
  63. <!--         </tx:attributes> -->  
  64. <!--     </tx:advice> -->  
  65. <!--     <aop:config> -->  
  66. <!--         <aop:pointcut id="pc" -->  
  67. <!--             expression="execution(* com.chenjun.mall.service.*.*(..))" /> -->  
  68.         <!--把事务控制在Business层 -->  
  69. <!--         <aop:advisor pointcut-ref="pc" advice-ref="userTxAdvice" /> -->  
  70. <!--     </aop:config> -->  
  71.   
  72.     <!-- MyBatis sqlSessionFactory 配置 mybatis -->  
  73.     <bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">  
  74.         <property name="configLocation"  
  75.             value="classpath:mybatis-config.xml" />  
  76.         <property name="dataSource" ref="dataSource" />  
  77.     </bean>  
  78.     <bean id="sqlSession" class="org.mybatis.spring.SqlSessionTemplate">  
  79.         <constructor-arg index="0" ref="sqlSessionFactory" />  
  80.     </bean>  
  81. </beans>  

jdbc.properties

  1. driver=com.mysql.jdbc.Driver  
  2. url=jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=utf-8  
  3. user=root  
  4. password=root  

log4j.properties

  1. #\u914D\u7F6E\u4E86\u63A7\u5236\u53F0\u548C\u6587\u672C\u8BB0\u5F55\u4E24\u79CD\u65B9\u5F0F  
  2. log4j.rootLogger=DEBUG,CONSOLE,FILEOUT  
  3. log4j.addivity.org.apache=true  
  4.   
  5. # CONSOLE  
  6. log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender  
  7. log4j.appender.Threshold=DEBUG  
  8. log4j.appender.CONSOLE.Target=System.out  
  9. log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout  
  10. #log4j.appender.CONSOLE.layout.ConversionPattern=[framework] %d \u2013 %c -%-4r [%t] %-5p %c %x \u2013 %m%n  
  11. log4j.appender.CONSOLE.layout.ConversionPattern=[%-5p] %d{yyyy-MM-dd HH\:mm\:ss} \:%m%n  
  12.   
  13. #  
  14. # FILEOUT  
  15. log4j.appender.FILEOUT=org.apache.log4j.RollingFileAppender  
  16. log4j.appender.FILEOUT.File=${catalina.home}\\file.log  
  17. log4j.appender.fileout.MaxFileSize=100000KB  
  18. # default is true\uFF0Cappend to the file; if false, the replace the log file whenever restart system  
  19. log4j.appender.FILEOUT.Append=true  
  20. #RollingFileAppender\u6CA1\u6709DatePattern\u8FD9\u4E2A\u5C5E\u6027  
  21. log4j.appender.FILEOUT.layout=org.apache.log4j.PatternLayout  
  22. #log4j.appender.CONSOLE.layout.ConversionPattern=[framework] %d \u2013 %c -%-4r [%t] %-5p %c %x \u2013 %m%n  
  23. log4j.appender.FILEOUT.layout.ConversionPattern=[%-5p]_%d{yyyy-MM-dd HH\:mm\:ss} \:%m%n  

mybatis-config.xml

  1. <?xml version="1.0" encoding="UTF-8" ?>  
  2. <!DOCTYPE configuration  
  3. PUBLIC "-//mybatis.org//DTD Config 3.0//EN"  
  4. "http://mybatis.org/dtd/mybatis-3-config.dtd">  
  5. <configuration>  
  6.         <!-- 命名空间 -->  
  7.     <typeAliases>  
  8.          <typeAlias alias="User" type="com.chenjun.mall.entity.User"/>  
  9.     </typeAliases>  
  10.    
  11.     <!-- 映射map -->  
  12.     <mappers>  
  13.     </mappers>  
  14. </configuration>  

springMVC.xml
  1. <?xml version="1.0" encoding="UTF-8"?>  
  2. <beans xmlns="http://www.springframework.org/schema/beans"  
  3.     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"  
  4.     xmlns:context="http://www.springframework.org/schema/context"  
  5.     xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd  
  6.        http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd  
  7.        http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd  
  8.        http://www.springframework.org/schema/context  
  9.        http://www.springframework.org/schema/context/spring-context-3.0.xsd">  
  10.   
  11.     <context:annotation-config />  
  12.     <!-- 把标记了注解的类转换为bean ,这里并不是只扫描controller,要不然concroller注入报错-->  
  13.     <context:component-scan base-package="com.chenjun.mall" />  
  14.   
  15.     <!-- 启动Spring MVC的注解功能,完成请求和注解POJO的映射 -->  
  16.     <bean  
  17.         class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter" />  
  18.     <!-- 视图 beans -->  
  19.     <bean id="jspViewResolver"  
  20.         class="org.springframework.web.servlet.view.InternalResourceViewResolver">  
  21.         <property name="prefix">  
  22.             <value>/WEB-INF/jsp/</value>  
  23.         </property>  
  24.         <property name="suffix">  
  25.             <value>.jsp</value>  
  26.         </property>  
  27.         <property name="order" value="1" /><!-- 默认视图解析器 -->  
  28.     </bean>  
  29.   
  30.     <!-- FreeMarker视图解析 如返回userinfo。。在这里配置后缀名ftl和视图解析器。。 -->  
  31.     <bean id="freeMarkerViewResolver"  
  32.         class="org.springframework.web.servlet.view.freemarker.FreeMarkerViewResolver">  
  33.         <property name="viewClass"  
  34.             value="org.springframework.web.servlet.view.freemarker.FreeMarkerView" />  
  35.         <property name="suffix" value=".ftl" />  
  36.         <property name="contentType" value="text/html;charset=GBK" />  
  37.         <property name="exposeRequestAttributes" value="true" />  
  38.         <property name="exposeSessionAttributes" value="true" />  
  39.         <property name="exposeSpringMacroHelpers" value="true" />  
  40.         <property name="order" value="2" />  
  41.     </bean>  
  42.     <!-- Controller 跳转的JSP页面路径 和 文件的后缀 -->  
  43.   
  44.     <!-- 避免IE在ajax请求时,返回json出现下载 -->  
  45.     <bean id="jacksonMessageConverter"  
  46.         class="org.springframework.http.converter.json.MappingJacksonHttpMessageConverter">  
  47.         <property name="supportedMediaTypes">  
  48.             <list>  
  49.                 <value>text/html;charset=UTF-8</value>  
  50.             </list>  
  51.         </property>  
  52.     </bean>  
  53.   
  54.     <!-- 文件上传 -->  
  55.     <bean id="multipartResolver"  
  56.         class="org.springframework.web.multipart.commons.CommonsMultipartResolver">  
  57.         <!-- set the max upload size100MB -->  
  58.         <property name="maxUploadSize">  
  59.             <value>104857600</value>  
  60.         </property>  
  61.         <property name="maxInMemorySize">  
  62.             <value>1024000</value>  
  63.         </property>  
  64.     </bean>  
  65. </beans>  

web.xml
  1. <?xml version="1.0" encoding="UTF-8"?>  
  2. <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"  
  3.     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
  4.     xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee   
  5.      http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">  
  6.   
  7.     <display-name>eshop</display-name>  
  8.   
  9.     <context-param>  
  10.         <param-name>contextConfigLocation</param-name>  
  11.         <param-value>classpath*:ApplicationContext.xml</param-value>  
  12.     </context-param>  
  13.   
  14.     <listener>  
  15.         <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class><!--  
  16.             以spring方式启动 -->  
  17.     </listener>  
  18.   
  19.     <!-- springMVC核心配置 -->  
  20.     <servlet>  
  21.         <servlet-name>springmvc</servlet-name>  
  22.         <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class><!--  
  23.             该工程为springmvc项目 -->  
  24.         <init-param>  
  25.             <param-name>contextConfigLocation</param-name>  
  26.             <param-value>classpath*:SpringMVC.xml</param-value>  
  27.         </init-param>  
  28.         <load-on-startup>1</load-on-startup>  
  29.     </servlet>  
  30.     <servlet-mapping>  
  31.         <servlet-name>springmvc</servlet-name>  
  32.         <url-pattern>/</url-pattern>  
  33.     </servlet-mapping>  
  34.   
  35.     <!-- <filter> -->  
  36.     <!-- <filter-name>encodingFilter</filter-name> -->  
  37.     <!-- <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> -->  
  38.     <!-- <init-param> -->  
  39.     <!-- <param-name>encoding</param-name> -->  
  40.     <!-- <param-value>UTF-8</param-value> -->  
  41.     <!-- </init-param> -->  
  42.     <!-- <init-param> -->  
  43.     <!-- <param-name>forceEncoding</param-name> -->  
  44.     <!-- <param-value>true</param-value> -->  
  45.     <!-- </init-param> -->  
  46.     <!-- </filter> -->  
  47.     <!-- <filter-mapping> -->  
  48.     <!-- <filter-name>encodingFilter</filter-name> -->  
  49.     <!-- <url-pattern>/*</url-pattern> -->  
  50.     <!-- </filter-mapping> -->  
  51.   
  52.     <!-- 读取spring配置文件 -->  
  53.     <!-- <context-param> -->  
  54.     <!-- <param-name>contextConfigLocation</param-name> -->  
  55.     <!-- <param-value>classpath:ApplicationContext.xml -->  
  56.     <!-- </param-value> -->  
  57.     <!-- </context-param> -->  
  58.   
  59.   
  60.   
  61.     <!-- 日志记录 -->  
  62.     <!-- <context-param> -->  
  63.     <!-- 日志配置文件路径 -->  
  64.     <!-- <param-name>log4jConfigLocation</param-name> -->  
  65.     <!-- <param-value>classpath:log4j.properties</param-value> -->  
  66.     <!-- </context-param> -->  
  67.     <!-- <context-param> -->  
  68.     <!-- 日志页面的刷新间隔 -->  
  69.     <!-- <param-name>log4jRefreshInterval</param-name> -->  
  70.     <!-- <param-value>6000</param-value> -->  
  71.     <!-- </context-param> -->  
  72.     <!-- <listener> -->  
  73.     <!-- <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class> -->  
  74.     <!-- </listener> -->  
  75.   
  76.   
  77.     <welcome-file-list>  
  78.         <welcome-file>index.jsp</welcome-file>  
  79.     </welcome-file-list>  
  80.   
  81. </web-app>  

pom.xml

  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
  2.     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">  
  3.     <modelVersion>4.0.0</modelVersion>  
  4.     <groupId>com.chenjun</groupId>  
  5.     <artifactId>eshop</artifactId>  
  6.     <version>0.0.1-SNAPSHOT</version>  
  7.     <packaging>war</packaging>  
  8.     <name>eshop</name>  
  9.     <description />  
  10.     <url>http://maven.apache.org/</url>  
  11.   
  12.     <properties>  
  13.         <org.springframework.version>3.0.0.RELEASE</org.springframework.version>  
  14.     </properties>  
  15.   
  16.     <dependencies>  
  17.         <!-- Core utilities used by other modules. Define this if you use Spring   
  18.             Utility APIs (org.springframework.core.*/org.springframework.util.*) -->  
  19.   
  20.         <dependency>  
  21.             <groupId>org.springframework</groupId>  
  22.             <artifactId>spring-core</artifactId>  
  23.             <version>${org.springframework.version}</version>  
  24.         </dependency>  
  25.   
  26.         <!-- Expression Language (depends on spring-core) Define this if you use   
  27.             Spring Expression APIs (org.springframework.expression.*) -->  
  28.   
  29.         <dependency>  
  30.             <groupId>org.springframework</groupId>  
  31.             <artifactId>spring-expression</artifactId>  
  32.             <version>${org.springframework.version}</version>  
  33.         </dependency>  
  34.   
  35.         <!--Bean Factory and JavaBeans utilities (depends on spring-core) Define   
  36.             this if you use Spring Bean APIs (org.springframework.beans.*) -->  
  37.   
  38.         <dependency>  
  39.             <groupId>org.springframework</groupId>  
  40.             <artifactId>spring-beans</artifactId>  
  41.             <version>${org.springframework.version}</version>  
  42.         </dependency>  
  43.   
  44.         <!-- Aspect Oriented Programming (AOP) Framework (depends on spring-core,   
  45.             spring-beans) Define this if you use Spring AOP APIs (org.springframework.aop.*) -->  
  46.         <dependency>  
  47.             <groupId>org.springframework</groupId>  
  48.             <artifactId>spring-aop</artifactId>  
  49.             <version>${org.springframework.version}</version>  
  50.         </dependency>  
  51.   
  52.         <!-- Application Context (depends on spring-core, spring-expression, spring-aop,   
  53.             spring-beans) This is the central artifact for Spring’s Dependency Injection   
  54.             Container and is generally always defined -->  
  55.         <dependency>  
  56.             <groupId>org.springframework</groupId>  
  57.             <artifactId>spring-context</artifactId>  
  58.             <version>${org.springframework.version}</version>  
  59.         </dependency>  
  60.   
  61.         <!-- Various Application Context utilities, including EhCache, JavaMail,   
  62.             Quartz, and Freemarker integration Define this if you need any of these integrations -->  
  63.         <dependency>  
  64.             <groupId>org.springframework</groupId>  
  65.             <artifactId>spring-context-support</artifactId>  
  66.             <version>${org.springframework.version}</version>  
  67.         </dependency>  
  68.   
  69.         <!-- Transaction Management Abstraction (depends on spring-core, spring-beans,   
  70.             spring-aop, spring-context) Define this if you use Spring Transactions or   
  71.             DAO Exception Hierarchy (org.springframework.transaction.*/org.springframework.dao.*) -->  
  72.         <dependency>  
  73.             <groupId>org.springframework</groupId>  
  74.             <artifactId>spring-tx</artifactId>  
  75.             <version>${org.springframework.version}</version>  
  76.         </dependency>  
  77.   
  78.         <!-- JDBC Data Access Library (depends on spring-core, spring-beans, spring-context,   
  79.             spring-tx) Define this if you use Spring’s JdbcTemplate API (org.springframework.jdbc.*) -->  
  80.         <dependency>  
  81.             <groupId>org.springframework</groupId>  
  82.             <artifactId>spring-jdbc</artifactId>  
  83.             <version>${org.springframework.version}</version>  
  84.         </dependency>  
  85.   
  86.         <!-- Object-to-Relation-Mapping (ORM) integration with Hibernate, JPA,   
  87.             and iBatis. (depends on spring-core, spring-beans, spring-context, spring-tx)   
  88.             Define this if you need ORM (org.springframework.orm.*) -->  
  89.         <dependency>  
  90.             <groupId>org.springframework</groupId>  
  91.             <artifactId>spring-orm</artifactId>  
  92.             <version>${org.springframework.version}</version>  
  93.         </dependency>  
  94.   
  95.         <!-- Object-to-XML Mapping (OXM) abstraction and integration with JAXB,   
  96.             JiBX, Castor, XStream, and XML Beans. (depends on spring-core, spring-beans,   
  97.             spring-context) Define this if you need OXM (org.springframework.oxm.*) -->  
  98.         <dependency>  
  99.             <groupId>org.springframework</groupId>  
  100.             <artifactId>spring-oxm</artifactId>  
  101.             <version>${org.springframework.version}</version>  
  102.         </dependency>  
  103.   
  104.         <!-- Web application development utilities applicable to both Servlet and   
  105.             Portlet Environments (depends on spring-core, spring-beans, spring-context)   
  106.             Define this if you use Spring MVC, or wish to use Struts, JSF, or another   
  107.             web framework with Spring (org.springframework.web.*) -->  
  108.         <dependency>  
  109.             <groupId>org.springframework</groupId>  
  110.             <artifactId>spring-web</artifactId>  
  111.             <version>${org.springframework.version}</version>  
  112.         </dependency>  
  113.   
  114.         <!-- Spring MVC for Servlet Environments (depends on spring-core, spring-beans,   
  115.             spring-context, spring-web) Define this if you use Spring MVC with a Servlet   
  116.             Container such as Apache Tomcat (org.springframework.web.servlet.*) -->  
  117.         <dependency>  
  118.             <groupId>org.springframework</groupId>  
  119.             <artifactId>spring-webmvc</artifactId>  
  120.             <version>${org.springframework.version}</version>  
  121.         </dependency>  
  122.   
  123.         <!-- Spring MVC for Portlet Environments (depends on spring-core, spring-beans,   
  124.             spring-context, spring-web) Define this if you use Spring MVC with a Portlet   
  125.             Container (org.springframework.web.portlet.*) -->  
  126.         <dependency>  
  127.             <groupId>org.springframework</groupId>  
  128.             <artifactId>spring-webmvc-portlet</artifactId>  
  129.             <version>${org.springframework.version}</version>  
  130.         </dependency>  
  131.   
  132.         <!-- Support for testing Spring applications with tools such as JUnit and   
  133.             TestNG This artifact is generally always defined with a ‘test’ scope for   
  134.             the integration testing framework and unit testing stubs -->  
  135.         <dependency>  
  136.             <groupId>org.springframework</groupId>  
  137.             <artifactId>spring-test</artifactId>  
  138.             <version>${org.springframework.version}</version>  
  139.             <scope>test</scope>  
  140.         </dependency>  
  141.   
  142.         <!-- Mybatis 开发包 -->  
  143.         <dependency>  
  144.             <groupId>org.mybatis</groupId>  
  145.             <artifactId>mybatis-spring</artifactId>  
  146.             <version>1.1.1</version>  
  147.         </dependency>  
  148.   
  149.         <!-- Mybatis 和Spring的 整合包,是mybatis出的 -->  
  150.         <dependency>  
  151.             <groupId>org.mybatis</groupId>  
  152.             <artifactId>mybatis</artifactId>  
  153.             <version>3.1.1</version>  
  154.         </dependency>  
  155.   
  156.         <!-- tomcat servlet开发包 -->  
  157.         <dependency>  
  158.             <groupId>javax.servlet</groupId>  
  159.             <artifactId>jstl</artifactId>  
  160.             <version>1.2</version>  
  161.         </dependency>  
  162.   
  163.         <!-- JSTL标签库 -->  
  164.         <dependency>  
  165.             <groupId>javax.servlet</groupId>  
  166.             <artifactId>servlet-api</artifactId>  
  167.             <version>2.5</version>  
  168.         </dependency>  
  169.   
  170.         <dependency>  
  171.             <groupId>javax.servlet</groupId>  
  172.             <artifactId>jsp-api</artifactId>  
  173.             <version>2.0</version>  
  174.             <scope>provided</scope>  
  175.         </dependency>  
  176.   
  177.         <!-- mysql的数据库驱动包 -->  
  178.         <dependency>  
  179.             <groupId>mysql</groupId>  
  180.             <artifactId>mysql-connector-java</artifactId>  
  181.             <version>5.1.21</version>  
  182.         </dependency>  
  183.   
  184.         <!-- 日志打印 log4j包 -->  
  185.         <dependency>  
  186.             <groupId>log4j</groupId>  
  187.             <artifactId>log4j</artifactId>  
  188.             <version>1.2.14</version>  
  189.             <scope>runtime</scope>  
  190.         </dependency>  
  191.   
  192.         <!-- 下面两个包 commons-dbcp,commons-pool 是配置数据源的包 -->  
  193.         <dependency>  
  194.             <groupId>commons-dbcp</groupId>  
  195.             <artifactId>commons-dbcp</artifactId>  
  196.             <version>1.4</version>  
  197.         </dependency>  
  198.         <dependency>  
  199.             <groupId>commons-pool</groupId>  
  200.             <artifactId>commons-pool</artifactId>  
  201.             <version>1.4</version>  
  202.         </dependency>  
  203.   
  204.         <!-- 日志记录依赖包,很多都依赖此包,像log4j,json-lib等等 -->  
  205.         <dependency>  
  206.             <groupId>commons-logging</groupId>  
  207.             <artifactId>commons-logging-api</artifactId>  
  208.             <version>1.1</version>  
  209.         </dependency>  
  210.   
  211.         <!-- Spring 文件上传的包 -->  
  212.         <dependency>  
  213.             <groupId>commons-fileupload</groupId>  
  214.             <artifactId>commons-fileupload</artifactId>  
  215.             <version>1.2.2</version>  
  216.         </dependency>  
  217.   
  218.         <!-- Spring 文件上传的依赖包 -->  
  219.         <dependency>  
  220.             <groupId>org.apache.commons</groupId>  
  221.             <artifactId>commons-io</artifactId>  
  222.             <version>1.3.2</version>  
  223.         </dependency>  
  224.   
  225.         <!-- dom4j 解析 XML文件的包 -->  
  226.         <dependency>  
  227.             <groupId>dom4j</groupId>  
  228.             <artifactId>dom4j</artifactId>  
  229.             <version>1.6.1</version>  
  230.         </dependency>  
  231.         <!-- 下面的三个包是在配置事务的时候用到的 spring的依赖包 -->  
  232.         <dependency>  
  233.             <groupId>org.aspectj</groupId>  
  234.             <artifactId>aspectjweaver</artifactId>  
  235.             <version>1.7.0</version>  
  236.         </dependency>  
  237.         <dependency>  
  238.             <groupId>aopalliance</groupId>  
  239.             <artifactId>aopalliance</artifactId>  
  240.             <version>1.0</version>  
  241.         </dependency>  
  242.         <dependency>  
  243.             <groupId>cglib</groupId>  
  244.             <artifactId>cglib-nodep</artifactId>  
  245.             <version>2.2.2</version>  
  246.         </dependency>  
  247.   
  248.   
  249.   
  250.         <!-- json数据 -->  
  251.         <dependency>  
  252.             <groupId>org.codehaus.jackson</groupId>  
  253.             <artifactId>jackson-core-asl</artifactId>  
  254.             <version>1.6.0</version>  
  255.         </dependency>  
  256.         <dependency>  
  257.             <groupId>org.codehaus.jackson</groupId>  
  258.             <artifactId>jackson-mapper-asl</artifactId>  
  259.             <version>1.6.0</version>  
  260.         </dependency>  
  261.   
  262.         <dependency>  
  263.             <groupId>commons-beanutils</groupId>  
  264.             <artifactId>commons-beanutils</artifactId>  
  265.             <version>1.8.3</version>  
  266.         </dependency>  
  267.         <dependency>  
  268.             <groupId>commons-collections</groupId>  
  269.             <artifactId>commons-collections</artifactId>  
  270.             <version>3.2.1</version>  
  271.         </dependency>  
  272.         <dependency>  
  273.             <groupId>commons-lang</groupId>  
  274.             <artifactId>commons-lang</artifactId>  
  275.             <version>2.6</version>  
  276.         </dependency>  
  277.         <dependency>  
  278.             <groupId>net.sf.ezmorph</groupId>  
  279.             <artifactId>ezmorph</artifactId>  
  280.             <version>1.0.5</version>  
  281.         </dependency>  
  282.         <dependency>  
  283.             <groupId>junit</groupId>  
  284.             <artifactId>junit</artifactId>  
  285.             <version>3.8.1</version>  
  286.             <scope>test</scope>  
  287.         </dependency>  
  288.     </dependencies>  
  289.   
  290.     <build>  
  291.   
  292.   
  293.   
  294.         <plugins>  
  295.   
  296.             <plugin>  
  297.                 <groupId>org.apache.maven.plugins</groupId>  
  298.                 <artifactId>maven-war-plugin</artifactId><!-- 这个插件一直忘了加,结果一直报错 -->  
  299.                 <version>2.1.1</version>  
  300.                 <configuration>  
  301.                     <webResources>  
  302.                         <resource>  
  303.                             <directory>src/main/webapp</directory>  
  304.                             <excludes>  
  305.                                 <exclude>**/*.jpg</exclude>  
  306.                             </excludes>  
  307.                         </resource>  
  308.                     </webResources>  
  309.                 </configuration>  
  310.             </plugin>  
  311.             <plugin>  
  312.                 <groupId>org.mortbay.jetty</groupId>  
  313.                 <artifactId>jetty-maven-plugin</artifactId><!-- 注意在 6之前名称是maven-jetty-plugin -->  
  314.                 <version>7.2.0.v20101020</version>  
  315.                 <configuration>  
  316.                     <scanIntervalSeconds>10</scanIntervalSeconds>  
  317.                     <stopPort>9966</stopPort>  
  318.                     <stopKey>foo</stopKey>  
  319.                     <connectors>  
  320.                         <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">  
  321.                             <port>7777</port>  
  322.                             <maxIdleTime>60000</maxIdleTime>  
  323.                         </connector>  
  324.                     </connectors>  
  325.                     <webAppConfig> <!-- 这是jetty7+才新加的,之前是没有的,由clipse管理 -->  
  326.                         <contextPath>/eshop</contextPath>  
  327.                     </webAppConfig>  
  328.   
  329.                 </configuration>  
  330.             </plugin>  
  331.   
  332.   
  333.         </plugins>  
  334.     </build>  
  335.   
  336. </project>  

启动如下;

  1. [INFO] Scanning for projects...  
  2. [INFO]                                                                           
  3. [INFO] ------------------------------------------------------------------------  
  4. [INFO] Building eshop 0.0.1-SNAPSHOT  
  5. [INFO] ------------------------------------------------------------------------  
  6. [INFO]   
  7. [INFO] >>> jetty-maven-plugin:7.2.0.v20101020:run-exploded (default-cli) @ eshop >>>  
  8. [WARNING] The artifact org.apache.commons:commons-io:jar:1.3.2 has been relocated to commons-io:commons-io:jar:1.3.2  
  9. [INFO]   
  10. [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ eshop ---  
  11. [debug] execute contextualize  
  12. [WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!  
  13. [INFO] Copying 5 resources  
  14. [INFO]   
  15. [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ eshop ---  
  16. [INFO] Nothing to compile - all classes are up to date  
  17. [INFO]   
  18. [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ eshop ---  
  19. [debug] execute contextualize  
  20. [WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!  
  21. [INFO] Copying 0 resource  
  22. [INFO]   
  23. [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ eshop ---  
  24. [INFO] Nothing to compile - all classes are up to date  
  25. [INFO]   
  26. [INFO] --- maven-surefire-plugin:2.10:test (default-test) @ eshop ---  
  27. [INFO] Surefire report directory: G:\projects\eshop\target\surefire-reports  
  28.   
  29. -------------------------------------------------------  
  30.  T E S T S  
  31. -------------------------------------------------------  
  32. Running eshop.UserTest  
  33. Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec  
  34.   
  35. Results :  
  36.   
  37. Tests run: 0, Failures: 0, Errors: 0, Skipped: 0  
  38.   
  39. [INFO]   
  40. [INFO] --- maven-war-plugin:2.1.1:war (default-war) @ eshop ---  
  41. [INFO] Packaging webapp  
  42. [INFO] Assembling webapp [eshop] in [G:\projects\eshop\target\eshop-0.0.1-SNAPSHOT]  
  43. [INFO] Processing war project  
  44. [INFO] Copying webapp webResources [G:\projects\eshop\src/main/webapp] to [G:\projects\eshop\target\eshop-0.0.1-SNAPSHOT]  
  45. [INFO] Copying webapp resources [G:\projects\eshop\src\main\webapp]  
  46. [INFO] Webapp assembled in [311 msecs]  
  47. [INFO] Building war: G:\projects\eshop\target\eshop-0.0.1-SNAPSHOT.war  
  48. [WARNING] Warning: selected war files include a WEB-INF/web.xml which will be ignored   
  49. (webxml attribute is missing from war task, or ignoreWebxml attribute is specified as 'true')  
  50. [INFO]   
  51. [INFO] <<< jetty-maven-plugin:7.2.0.v20101020:run-exploded (default-cli) @ eshop <<<  
  52. [INFO]   
  53. [INFO] --- jetty-maven-plugin:7.2.0.v20101020:run-exploded (default-cli) @ eshop ---  
  54. [INFO] Configuring Jetty for project: eshop  
  55. [INFO] Context path = /eshop  
  56. [INFO] Tmp directory = G:\projects\eshop\target\tmp  
  57. [INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml  
  58. [INFO] Web overrides =  none  
  59. [INFO] Starting jetty 7.2.0.v20101020 ...  
  60. 2015-04-20 22:21:48.254:INFO::jetty-7.2.0.v20101020  
  61. 2015-04-20 22:21:49.305:INFO::No Transaction manager found - if your webapp requires one, please configure one.  
  62. 2015-04-20 22:21:49.696:INFO:/eshop:Initializing Spring root WebApplicationContext  
  63. [INFO ] 2015-04-20 22:21:49 :Root WebApplicationContext: initialization started  
  64. [INFO ] 2015-04-20 22:21:49 :Refreshing Root WebApplicationContext: startup date [Mon Apr 20 22:21:49 CST 2015]; root of context hierarchy  
  65. [INFO ] 2015-04-20 22:21:49 :Loading XML bean definitions from URL [file:/G:/projects/eshop/target/eshop-0.0.1-SNAPSHOT/WEB-INF/classes/ApplicationContext.xml]  
  66. [DEBUG] 2015-04-20 22:21:49 :Using JAXP provider [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl]  
  67. [DEBUG] 2015-04-20 22:21:49 :Loading schema mappings from [META-INF/spring.schemas]  
  68. [DEBUG] 2015-04-20 22:21:49 :Loaded schema mappings: {http://www.springframework.org/schema/oxm/spring-oxm-3.0.xsd=org/springframework/oxm/config/spring-oxm-3.0.xsd, http://www.springframework.org/schema/util/spring-util.xsd=org/springframework/beans/factory/xml/spring-util-3.0.xsd, http://www.springframework.org/schema/task/spring-task.xsd=org/springframework/scheduling/config/spring-task-3.0.xsd, http://www.springframework.org/schema/aop/spring-aop-3.0.xsd=org/springframework/aop/config/spring-aop-3.0.xsd, http://www.springframework.org/schema/aop/spring-aop-2.0.xsd=org/springframework/aop/config/spring-aop-2.0.xsd, http://www.springframework.org/schema/oxm/spring-oxm.xsd=org/springframework/oxm/config/spring-oxm-3.0.xsd, http://www.springframework.org/schema/tool/spring-tool-2.5.xsd=org/springframework/beans/factory/xml/spring-tool-2.5.xsd, http://www.springframework.org/schema/beans/spring-beans.xsd=org/springframework/beans/factory/xml/spring-beans-3.0.xsd, http://www.springframework.org/schema/jee/spring-jee-2.5.xsd=org/springframework/ejb/config/spring-jee-2.5.xsd, http://www.springframework.org/schema/aop/spring-aop.xsd=org/springframework/aop/config/spring-aop-3.0.xsd, http://www.springframework.org/schema/beans/spring-beans-2.0.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd, http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd=org/springframework/web/servlet/config/spring-mvc-3.0.xsd, http://www.springframework.org/schema/beans/spring-beans-3.0.xsd=org/springframework/beans/factory/xml/spring-beans-3.0.xsd, http://www.springframework.org/schema/task/spring-task-3.0.xsd=org/springframework/scheduling/config/spring-task-3.0.xsd, http://www.springframework.org/schema/tx/spring-tx-2.5.xsd=org/springframework/transaction/config/spring-tx-2.5.xsd, http://www.springframework.org/schema/context/spring-context-2.5.xsd=org/springframework/context/config/spring-context-2.5.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd=org/springframework/jdbc/config/spring-jdbc-3.0.xsd, http://www.springframework.org/schema/tool/spring-tool-3.0.xsd=org/springframework/beans/factory/xml/spring-tool-3.0.xsd, http://www.springframework.org/schema/tx/spring-tx.xsd=org/springframework/transaction/config/spring-tx-3.0.xsd, http://www.springframework.org/schema/tool/spring-tool-2.0.xsd=org/springframework/beans/factory/xml/spring-tool-2.0.xsd, http://www.springframework.org/schema/util/spring-util-2.5.xsd=org/springframework/beans/factory/xml/spring-util-2.5.xsd, http://www.springframework.org/schema/lang/spring-lang.xsd=org/springframework/scripting/config/spring-lang-3.0.xsd, http://www.springframework.org/schema/lang/spring-lang-2.5.xsd=org/springframework/scripting/config/spring-lang-2.5.xsd, http://www.springframework.org/schema/jee/spring-jee-3.0.xsd=org/springframework/ejb/config/spring-jee-3.0.xsd, http://www.springframework.org/schema/jee/spring-jee-2.0.xsd=org/springframework/ejb/config/spring-jee-2.0.xsd, http://www.springframework.org/schema/context/spring-context.xsd=org/springframework/context/config/spring-context-3.0.xsd, http://www.springframework.org/schema/jee/spring-jee.xsd=org/springframework/ejb/config/spring-jee-3.0.xsd, http://www.springframework.org/schema/aop/spring-aop-2.5.xsd=org/springframework/aop/config/spring-aop-2.5.xsd, http://www.springframework.org/schema/mvc/spring-mvc.xsd=org/springframework/web/servlet/config/spring-mvc-3.0.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc.xsd=org/springframework/jdbc/config/spring-jdbc-3.0.xsd, http://www.springframework.org/schema/tx/spring-tx-2.0.xsd=org/springframework/transaction/config/spring-tx-2.0.xsd, http://www.springframework.org/schema/tx/spring-tx-3.0.xsd=org/springframework/transaction/config/spring-tx-3.0.xsd, http://www.springframework.org/schema/context/spring-context-3.0.xsd=org/springframework/context/config/spring-context-3.0.xsd, http://www.springframework.org/schema/tool/spring-tool.xsd=org/springframework/beans/factory/xml/spring-tool-3.0.xsd, http://www.springframework.org/schema/util/spring-util-3.0.xsd=org/springframework/beans/factory/xml/spring-util-3.0.xsd, http://www.springframework.org/schema/lang/spring-lang-3.0.xsd=org/springframework/scripting/config/spring-lang-3.0.xsd, http://www.springframework.org/schema/util/spring-util-2.0.xsd=org/springframework/beans/factory/xml/spring-util-2.0.xsd, http://www.springframework.org/schema/lang/spring-lang-2.0.xsd=org/springframework/scripting/config/spring-lang-2.0.xsd, http://www.springframework.org/schema/beans/spring-beans-2.5.xsd=org/springframework/beans/factory/xml/spring-beans-2.5.xsd}  
  69. [DEBUG] 2015-04-20 22:21:49 :Found XML schema [http://www.springframework.org/schema/beans/spring-beans.xsd] in classpath: org/springframework/beans/factory/xml/spring-beans-3.0.xsd  
  70. [DEBUG] 2015-04-20 22:21:50 :Loading bean definitions  
  71. [DEBUG] 2015-04-20 22:21:50 :Neither XML 'id' nor 'name' specified - using generated bean name [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0]  
  72. [DEBUG] 2015-04-20 22:21:50 :Loaded 5 bean definitions from location pattern [classpath*:ApplicationContext.xml]  
  73. [DEBUG] 2015-04-20 22:21:50 :Bean factory for Root WebApplicationContext: org.springframework.beans.factory.support.DefaultListableBeanFactory@fb39f6: defining beans [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,dataSource,transactionManager,sqlSessionFactory,sqlSession]; root of factory hierarchy  
  74. [DEBUG] 2015-04-20 22:21:50 :Creating shared instance of singleton bean 'org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0'  
  75. [DEBUG] 2015-04-20 22:21:50 :Creating instance of bean 'org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0'  
  76. [DEBUG] 2015-04-20 22:21:50 :Eagerly caching bean 'org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0' to allow for resolving potential circular references  
  77. [DEBUG] 2015-04-20 22:21:50 :Finished creating instance of bean 'org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0'  
  78. [INFO ] 2015-04-20 22:21:50 :Loading properties file from URL [file:/G:/projects/eshop/target/eshop-0.0.1-SNAPSHOT/WEB-INF/classes/jdbc.properties]  
  79. [DEBUG] 2015-04-20 22:21:50 :Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@1588de9]  
  80. [DEBUG] 2015-04-20 22:21:50 :Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@ea288f]  
  81. [DEBUG] 2015-04-20 22:21:50 :Unable to locate ThemeSource with name 'themeSource': using default [org.springframework.ui.context.support.ResourceBundleThemeSource@874cc3]  
  82. [INFO ] 2015-04-20 22:21:50 :Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@fb39f6: defining beans [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,dataSource,transactionManager,sqlSessionFactory,sqlSession]; root of factory hierarchy  
  83. [DEBUG] 2015-04-20 22:21:50 :Returning cached instance of singleton bean 'org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0'  
  84. [DEBUG] 2015-04-20 22:21:50 :Creating shared instance of singleton bean 'dataSource'  
  85. [DEBUG] 2015-04-20 22:21:50 :Creating instance of bean 'dataSource'  
  86. [DEBUG] 2015-04-20 22:21:50 :Eagerly caching bean 'dataSource' to allow for resolving potential circular references  
  87. [DEBUG] 2015-04-20 22:21:50 :Finished creating instance of bean 'dataSource'  
  88. [DEBUG] 2015-04-20 22:21:50 :Creating shared instance of singleton bean 'transactionManager'  
  89. [DEBUG] 2015-04-20 22:21:50 :Creating instance of bean 'transactionManager'  
  90. [DEBUG] 2015-04-20 22:21:50 :Eagerly caching bean 'transactionManager' to allow for resolving potential circular references  
  91. [DEBUG] 2015-04-20 22:21:50 :Returning cached instance of singleton bean 'dataSource'  
  92. [DEBUG] 2015-04-20 22:21:50 :Invoking afterPropertiesSet() on bean with name 'transactionManager'  
  93. [DEBUG] 2015-04-20 22:21:50 :Finished creating instance of bean 'transactionManager'  
  94. [DEBUG] 2015-04-20 22:21:50 :Creating shared instance of singleton bean 'sqlSessionFactory'  
  95. [DEBUG] 2015-04-20 22:21:50 :Creating instance of bean 'sqlSessionFactory'  
  96. [DEBUG] 2015-04-20 22:21:50 :Logging initialized using 'org.apache.ibatis.logging.commons.JakartaCommonsLoggingImpl' adapter.  
  97. [DEBUG] 2015-04-20 22:21:50 :Eagerly caching bean 'sqlSessionFactory' to allow for resolving potential circular references  
  98. [DEBUG] 2015-04-20 22:21:50 :Returning cached instance of singleton bean 'dataSource'  
  99. [DEBUG] 2015-04-20 22:21:50 :Invoking afterPropertiesSet() on bean with name 'sqlSessionFactory'  
  100. [DEBUG] 2015-04-20 22:21:50 :Parsed configuration file: 'class path resource [mybatis-config.xml]'  
  101. [DEBUG] 2015-04-20 22:21:52 :Property 'mapperLocations' was not specified or no matching resources found  
  102. [DEBUG] 2015-04-20 22:21:52 :Finished creating instance of bean 'sqlSessionFactory'  
  103. [DEBUG] 2015-04-20 22:21:52 :Creating shared instance of singleton bean 'sqlSession'  
  104. [DEBUG] 2015-04-20 22:21:52 :Creating instance of bean 'sqlSession'  
  105. [DEBUG] 2015-04-20 22:21:52 :Returning cached instance of singleton bean 'sqlSessionFactory'  
  106. [DEBUG] 2015-04-20 22:21:52 :Eagerly caching bean 'sqlSession' to allow for resolving potential circular references  
  107. [DEBUG] 2015-04-20 22:21:52 :Finished creating instance of bean 'sqlSession'  
  108. [DEBUG] 2015-04-20 22:21:52 :Unable to locate LifecycleProcessor with name 'lifecycleProcessor': using default [org.springframework.context.support.DefaultLifecycleProcessor@a7ac22]  
  109. [DEBUG] 2015-04-20 22:21:52 :Returning cached instance of singleton bean 'lifecycleProcessor'  
  110. [DEBUG] 2015-04-20 22:21:52 :Returning cached instance of singleton bean 'sqlSessionFactory'  
  111. [DEBUG] 2015-04-20 22:21:52 :Published root WebApplicationContext as ServletContext attribute with name [org.springframework.web.context.WebApplicationContext.ROOT]  
  112. [INFO ] 2015-04-20 22:21:52 :Root WebApplicationContext: initialization completed in 3232 ms  
  113. [DEBUG] 2015-04-20 22:21:53 :Initializing servlet 'springmvc'  
  114. 2015-04-20 22:21:53.108:INFO:/eshop:Initializing Spring FrameworkServlet 'springmvc'  
  115. [INFO ] 2015-04-20 22:21:53 :FrameworkServlet 'springmvc': initialization started  
  116. [DEBUG] 2015-04-20 22:21:53 :Servlet with name 'springmvc' will try to create custom WebApplicationContext context of class 'org.springframework.web.context.support.XmlWebApplicationContext', using parent context [Root WebApplicationContext: startup date [Mon Apr 20 22:21:49 CST 2015]; root of context hierarchy]  
  117. [INFO ] 2015-04-20 22:21:53 :Refreshing WebApplicationContext for namespace 'springmvc-servlet': startup date [Mon Apr 20 22:21:53 CST 2015]; parent: Root WebApplicationContext  
  118. [INFO ] 2015-04-20 22:21:53 :Loading XML bean definitions from URL [file:/G:/projects/eshop/target/eshop-0.0.1-SNAPSHOT/WEB-INF/classes/SpringMVC.xml]  
  119. [DEBUG] 2015-04-20 22:21:53 :Using JAXP provider [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl]  
  120. [DEBUG] 2015-04-20 22:21:53 :Loading schema mappings from [META-INF/spring.schemas]  
  121. [DEBUG] 2015-04-20 22:21:53 :Loaded schema mappings: {http://www.springframework.org/schema/oxm/spring-oxm-3.0.xsd=org/springframework/oxm/config/spring-oxm-3.0.xsd, http://www.springframework.org/schema/util/spring-util.xsd=org/springframework/beans/factory/xml/spring-util-3.0.xsd, http://www.springframework.org/schema/task/spring-task.xsd=org/springframework/scheduling/config/spring-task-3.0.xsd, http://www.springframework.org/schema/aop/spring-aop-3.0.xsd=org/springframework/aop/config/spring-aop-3.0.xsd, http://www.springframework.org/schema/aop/spring-aop-2.0.xsd=org/springframework/aop/config/spring-aop-2.0.xsd, http://www.springframework.org/schema/oxm/spring-oxm.xsd=org/springframework/oxm/config/spring-oxm-3.0.xsd, http://www.springframework.org/schema/tool/spring-tool-2.5.xsd=org/springframework/beans/factory/xml/spring-tool-2.5.xsd, http://www.springframework.org/schema/beans/spring-beans.xsd=org/springframework/beans/factory/xml/spring-beans-3.0.xsd, http://www.springframework.org/schema/jee/spring-jee-2.5.xsd=org/springframework/ejb/config/spring-jee-2.5.xsd, http://www.springframework.org/schema/aop/spring-aop.xsd=org/springframework/aop/config/spring-aop-3.0.xsd, http://www.springframework.org/schema/beans/spring-beans-2.0.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd, http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd=org/springframework/web/servlet/config/spring-mvc-3.0.xsd, http://www.springframework.org/schema/beans/spring-beans-3.0.xsd=org/springframework/beans/factory/xml/spring-beans-3.0.xsd, http://www.springframework.org/schema/task/spring-task-3.0.xsd=org/springframework/scheduling/config/spring-task-3.0.xsd, http://www.springframework.org/schema/tx/spring-tx-2.5.xsd=org/springframework/transaction/config/spring-tx-2.5.xsd, http://www.springframework.org/schema/context/spring-context-2.5.xsd=org/springframework/context/config/spring-context-2.5.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd=org/springframework/jdbc/config/spring-jdbc-3.0.xsd, http://www.springframework.org/schema/tool/spring-tool-3.0.xsd=org/springframework/beans/factory/xml/spring-tool-3.0.xsd, http://www.springframework.org/schema/tx/spring-tx.xsd=org/springframework/transaction/config/spring-tx-3.0.xsd, http://www.springframework.org/schema/tool/spring-tool-2.0.xsd=org/springframework/beans/factory/xml/spring-tool-2.0.xsd, http://www.springframework.org/schema/util/spring-util-2.5.xsd=org/springframework/beans/factory/xml/spring-util-2.5.xsd, http://www.springframework.org/schema/lang/spring-lang.xsd=org/springframework/scripting/config/spring-lang-3.0.xsd, http://www.springframework.org/schema/lang/spring-lang-2.5.xsd=org/springframework/scripting/config/spring-lang-2.5.xsd, http://www.springframework.org/schema/jee/spring-jee-3.0.xsd=org/springframework/ejb/config/spring-jee-3.0.xsd, http://www.springframework.org/schema/jee/spring-jee-2.0.xsd=org/springframework/ejb/config/spring-jee-2.0.xsd, http://www.springframework.org/schema/context/spring-context.xsd=org/springframework/context/config/spring-context-3.0.xsd, http://www.springframework.org/schema/jee/spring-jee.xsd=org/springframework/ejb/config/spring-jee-3.0.xsd, http://www.springframework.org/schema/aop/spring-aop-2.5.xsd=org/springframework/aop/config/spring-aop-2.5.xsd, http://www.springframework.org/schema/mvc/spring-mvc.xsd=org/springframework/web/servlet/config/spring-mvc-3.0.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc.xsd=org/springframework/jdbc/config/spring-jdbc-3.0.xsd, http://www.springframework.org/schema/tx/spring-tx-2.0.xsd=org/springframework/transaction/config/spring-tx-2.0.xsd, http://www.springframework.org/schema/tx/spring-tx-3.0.xsd=org/springframework/transaction/config/spring-tx-3.0.xsd, http://www.springframework.org/schema/context/spring-context-3.0.xsd=org/springframework/context/config/spring-context-3.0.xsd, http://www.springframework.org/schema/tool/spring-tool.xsd=org/springframework/beans/factory/xml/spring-tool-3.0.xsd, http://www.springframework.org/schema/util/spring-util-3.0.xsd=org/springframework/beans/factory/xml/spring-util-3.0.xsd, http://www.springframework.org/schema/lang/spring-lang-3.0.xsd=org/springframework/scripting/config/spring-lang-3.0.xsd, http://www.springframework.org/schema/util/spring-util-2.0.xsd=org/springframework/beans/factory/xml/spring-util-2.0.xsd, http://www.springframework.org/schema/lang/spring-lang-2.0.xsd=org/springframework/scripting/config/spring-lang-2.0.xsd, http://www.springframework.org/schema/beans/spring-beans-2.5.xsd=org/springframework/beans/factory/xml/spring-beans-2.5.xsd}  
  122. [DEBUG] 2015-04-20 22:21:53 :Found XML schema [http://www.springframework.org/schema/beans/spring-beans-3.0.xsd] in classpath: org/springframework/beans/factory/xml/spring-beans-3.0.xsd  
  123. [DEBUG] 2015-04-20 22:21:53 :Found XML schema [http://www.springframework.org/schema/context/spring-context-3.0.xsd] in classpath: org/springframework/context/config/spring-context-3.0.xsd  
  124. [DEBUG] 2015-04-20 22:21:53 :Found XML schema [http://www.springframework.org/schema/tool/spring-tool-3.0.xsd] in classpath: org/springframework/beans/factory/xml/spring-tool-3.0.xsd  
  125. [DEBUG] 2015-04-20 22:21:53 :Loading bean definitions  
  126. [DEBUG] 2015-04-20 22:21:53 :Loaded NamespaceHandler mappings: {http://www.springframework.org/schema/p=org.springframework.beans.factory.xml.SimplePropertyNamespaceHandler, http://www.springframework.org/schema/mvc=org.springframework.web.servlet.config.MvcNamespaceHandler, http://www.springframework.org/schema/util=org.springframework.beans.factory.xml.UtilNamespaceHandler, http://www.springframework.org/schema/jee=org.springframework.ejb.config.JeeNamespaceHandler, http://www.springframework.org/schema/aop=org.springframework.aop.config.AopNamespaceHandler, http://www.springframework.org/schema/oxm=org.springframework.oxm.config.OxmNamespaceHandler, http://www.springframework.org/schema/jdbc=org.springframework.jdbc.config.JdbcNamespaceHandler, http://www.springframework.org/schema/tx=org.springframework.transaction.config.TxNamespaceHandler, http://www.springframework.org/schema/task=org.springframework.scheduling.config.TaskNamespaceHandler, http://www.springframework.org/schema/lang=org.springframework.scripting.config.LangNamespaceHandler, http://www.springframework.org/schema/context=org.springframework.context.config.ContextNamespaceHandler}  
  127. [DEBUG] 2015-04-20 22:21:53 :Looking for matching resources in directory tree [G:\projects\eshop\target\eshop-0.0.1-SNAPSHOT\WEB-INF\classes\com\chenjun\mall]  
  128. [DEBUG] 2015-04-20 22:21:53 :Searching directory [G:\projects\eshop\target\eshop-0.0.1-SNAPSHOT\WEB-INF\classes\com\chenjun\mall] for files matching pattern [G:/projects/eshop/target/eshop-0.0.1-SNAPSHOT/WEB-INF/classes/com/chenjun/mall/**/*.class]  
  129. [DEBUG] 2015-04-20 22:21:53 :Searching directory [G:\projects\eshop\target\eshop-0.0.1-SNAPSHOT\WEB-INF\classes\com\chenjun\mall\controllers] for files matching pattern [G:/projects/eshop/target/eshop-0.0.1-SNAPSHOT/WEB-INF/classes/com/chenjun/mall/**/*.class]  
  130. [DEBUG] 2015-04-20 22:21:53 :Searching directory [G:\projects\eshop\target\eshop-0.0.1-SNAPSHOT\WEB-INF\classes\com\chenjun\mall\dao] for files matching pattern [G:/projects/eshop/target/eshop-0.0.1-SNAPSHOT/WEB-INF/classes/com/chenjun/mall/**/*.class]  
  131. [DEBUG] 2015-04-20 22:21:53 :Searching directory [G:\projects\eshop\target\eshop-0.0.1-SNAPSHOT\WEB-INF\classes\com\chenjun\mall\dao\impl] for files matching pattern [G:/projects/eshop/target/eshop-0.0.1-SNAPSHOT/WEB-INF/classes/com/chenjun/mall/**/*.class]  
  132. [DEBUG] 2015-04-20 22:21:53 :Searching directory [G:\projects\eshop\target\eshop-0.0.1-SNAPSHOT\WEB-INF\classes\com\chenjun\mall\entity] for files matching pattern [G:/projects/eshop/target/eshop-0.0.1-SNAPSHOT/WEB-INF/classes/com/chenjun/mall/**/*.class]  
  133. [DEBUG] 2015-04-20 22:21:53 :Searching directory [G:\projects\eshop\target\eshop-0.0.1-SNAPSHOT\WEB-INF\classes\com\chenjun\mall\service] for files matching pattern [G:/projects/eshop/target/eshop-0.0.1-SNAPSHOT/WEB-INF/classes/com/chenjun/mall/**/*.class]  
  134. [DEBUG] 2015-04-20 22:21:53 :Searching directory [G:\projects\eshop\target\eshop-0.0.1-SNAPSHOT\WEB-INF\classes\com\chenjun\mall\service\impl] for files matching pattern [G:/projects/eshop/target/eshop-0.0.1-SNAPSHOT/WEB-INF/classes/com/chenjun/mall/**/*.class]  
  135. [DEBUG] 2015-04-20 22:21:53 :Resolved location pattern [classpath*:com/chenjun/mall/**/*.class] to resources [file [G:\projects\eshop\target\eshop-0.0.1-SNAPSHOT\WEB-INF\classes\com\chenjun\mall\controllers\UserController.class], file [G:\projects\eshop\target\eshop-0.0.1-SNAPSHOT\WEB-INF\classes\com\chenjun\mall\dao\impl\UserDaoImpl.class], file [G:\projects\eshop\target\eshop-0.0.1-SNAPSHOT\WEB-INF\classes\com\chenjun\mall\dao\UserDao.class], file [G:\projects\eshop\target\eshop-0.0.1-SNAPSHOT\WEB-INF\classes\com\chenjun\mall\entity\User.class], file [G:\projects\eshop\target\eshop-0.0.1-SNAPSHOT\WEB-INF\classes\com\chenjun\mall\service\impl\UserServiceImpl.class], file [G:\projects\eshop\target\eshop-0.0.1-SNAPSHOT\WEB-INF\classes\com\chenjun\mall\service\UserService.class]]  
  136. [DEBUG] 2015-04-20 22:21:53 :Identified candidate component class: file [G:\projects\eshop\target\eshop-0.0.1-SNAPSHOT\WEB-INF\classes\com\chenjun\mall\controllers\UserController.class]  
  137. [DEBUG] 2015-04-20 22:21:53 :Identified candidate component class: file [G:\projects\eshop\target\eshop-0.0.1-SNAPSHOT\WEB-INF\classes\com\chenjun\mall\dao\impl\UserDaoImpl.class]  
  138. [DEBUG] 2015-04-20 22:21:53 :Identified candidate component class: file [G:\projects\eshop\target\eshop-0.0.1-SNAPSHOT\WEB-INF\classes\com\chenjun\mall\service\impl\UserServiceImpl.class]  
  139. [DEBUG] 2015-04-20 22:21:53 :Neither XML 'id' nor 'name' specified - using generated bean name [org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter#0]  
  140. [DEBUG] 2015-04-20 22:21:53 :Loaded 12 bean definitions from location pattern [classpath*:SpringMVC.xml]  
  141. [DEBUG] 2015-04-20 22:21:53 :Bean factory for WebApplicationContext for namespace 'springmvc-servlet': org.springframework.beans.factory.support.DefaultListableBeanFactory@48cca4: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,userController,userDao,userService,org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter#0,jspViewResolver,freeMarkerViewResolver,jacksonMessageConverter,multipartResolver]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@fb39f6  
  142. [DEBUG] 2015-04-20 22:21:53 :Creating shared instance of singleton bean 'org.springframework.context.annotation.internalConfigurationAnnotationProcessor'  
  143. [DEBUG] 2015-04-20 22:21:53 :Creating instance of bean 'org.springframework.context.annotation.internalConfigurationAnnotationProcessor'  
  144. [DEBUG] 2015-04-20 22:21:53 :Eagerly caching bean 'org.springframework.context.annotation.internalConfigurationAnnotationProcessor' to allow for resolving potential circular references  
  145. [DEBUG] 2015-04-20 22:21:53 :Finished creating instance of bean 'org.springframework.context.annotation.internalConfigurationAnnotationProcessor'  
  146. [DEBUG] 2015-04-20 22:21:53 :Creating shared instance of singleton bean 'org.springframework.context.annotation.internalAutowiredAnnotationProcessor'  
  147. [DEBUG] 2015-04-20 22:21:53 :Creating instance of bean 'org.springframework.context.annotation.internalAutowiredAnnotationProcessor'  
  148. [DEBUG] 2015-04-20 22:21:53 :Eagerly caching bean 'org.springframework.context.annotation.internalAutowiredAnnotationProcessor' to allow for resolving potential circular references  
  149. [DEBUG] 2015-04-20 22:21:53 :Finished creating instance of bean 'org.springframework.context.annotation.internalAutowiredAnnotationProcessor'  
  150. [DEBUG] 2015-04-20 22:21:53 :Creating shared instance of singleton bean 'org.springframework.context.annotation.internalRequiredAnnotationProcessor'  
  151. [DEBUG] 2015-04-20 22:21:53 :Creating instance of bean 'org.springframework.context.annotation.internalRequiredAnnotationProcessor'  
  152. [DEBUG] 2015-04-20 22:21:53 :Eagerly caching bean 'org.springframework.context.annotation.internalRequiredAnnotationProcessor' to allow for resolving potential circular references  
  153. [DEBUG] 2015-04-20 22:21:53 :Finished creating instance of bean 'org.springframework.context.annotation.internalRequiredAnnotationProcessor'  
  154. [DEBUG] 2015-04-20 22:21:53 :Creating shared instance of singleton bean 'org.springframework.context.annotation.internalCommonAnnotationProcessor'  
  155. [DEBUG] 2015-04-20 22:21:53 :Creating instance of bean 'org.springframework.context.annotation.internalCommonAnnotationProcessor'  
  156. [DEBUG] 2015-04-20 22:21:53 :Eagerly caching bean 'org.springframework.context.annotation.internalCommonAnnotationProcessor' to allow for resolving potential circular references  
  157. [DEBUG] 2015-04-20 22:21:53 :Finished creating instance of bean 'org.springframework.context.annotation.internalCommonAnnotationProcessor'  
  158. [DEBUG] 2015-04-20 22:21:53 :Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@18b8b57]  
  159. [DEBUG] 2015-04-20 22:21:53 :Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@6909db]  
  160. [DEBUG] 2015-04-20 22:21:53 :Unable to locate ThemeSource with name 'themeSource': using default [org.springframework.ui.context.support.DelegatingThemeSource@165e140]  
  161. [INFO ] 2015-04-20 22:21:53 :Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@48cca4: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,userController,userDao,userService,org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter#0,jspViewResolver,freeMarkerViewResolver,jacksonMessageConverter,multipartResolver]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@fb39f6  
  162. [DEBUG] 2015-04-20 22:21:53 :Returning cached instance of singleton bean 'org.springframework.context.annotation.internalConfigurationAnnotationProcessor'  
  163. [DEBUG] 2015-04-20 22:21:53 :Returning cached instance of singleton bean 'org.springframework.context.annotation.internalAutowiredAnnotationProcessor'  
  164. [DEBUG] 2015-04-20 22:21:53 :Returning cached instance of singleton bean 'org.springframework.context.annotation.internalRequiredAnnotationProcessor'  
  165. [DEBUG] 2015-04-20 22:21:53 :Returning cached instance of singleton bean 'org.springframework.context.annotation.internalCommonAnnotationProcessor'  
  166. [DEBUG] 2015-04-20 22:21:53 :Creating shared instance of singleton bean 'userController'  
  167. [DEBUG] 2015-04-20 22:21:53 :Creating instance of bean 'userController'  
  168. [DEBUG] 2015-04-20 22:21:53 :Found injected element on class [com.chenjun.mall.controllers.UserController]: ResourceElement for private com.chenjun.mall.service.UserService com.chenjun.mall.controllers.UserController.userService  
  169. [DEBUG] 2015-04-20 22:21:53 :Eagerly caching bean 'userController' to allow for resolving potential circular references  
  170. [DEBUG] 2015-04-20 22:21:53 :Processing injected method of bean 'userController': ResourceElement for private com.chenjun.mall.service.UserService com.chenjun.mall.controllers.UserController.userService  
  171. [DEBUG] 2015-04-20 22:21:53 :Creating shared instance of singleton bean 'userService'  
  172. [DEBUG] 2015-04-20 22:21:53 :Creating instance of bean 'userService'  
  173. [DEBUG] 2015-04-20 22:21:53 :Found injected element on class [com.chenjun.mall.service.impl.UserServiceImpl]: ResourceElement for private com.chenjun.mall.dao.UserDao com.chenjun.mall.service.impl.UserServiceImpl.userDao  
  174. [DEBUG] 2015-04-20 22:21:53 :Eagerly caching bean 'userService' to allow for resolving potential circular references  
  175. [DEBUG] 2015-04-20 22:21:53 :Processing injected method of bean 'userService': ResourceElement for private com.chenjun.mall.dao.UserDao com.chenjun.mall.service.impl.UserServiceImpl.userDao  
  176. [DEBUG] 2015-04-20 22:21:53 :Creating shared instance of singleton bean 'userDao'  
  177. [DEBUG] 2015-04-20 22:21:53 :Creating instance of bean 'userDao'  
  178. [DEBUG] 2015-04-20 22:21:53 :Eagerly caching bean 'userDao' to allow for resolving potential circular references  
  179. [DEBUG] 2015-04-20 22:21:53 :Finished creating instance of bean 'userDao'  
  180. [DEBUG] 2015-04-20 22:21:53 :Finished creating instance of bean 'userService'  
  181. [DEBUG] 2015-04-20 22:21:53 :Finished creating instance of bean 'userController'  
  182. [DEBUG] 2015-04-20 22:21:53 :Returning cached instance of singleton bean 'userDao'  
  183. [DEBUG] 2015-04-20 22:21:53 :Returning cached instance of singleton bean 'userService'  
  184. [DEBUG] 2015-04-20 22:21:53 :Creating shared instance of singleton bean 'org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter#0'  
  185. [DEBUG] 2015-04-20 22:21:53 :Creating instance of bean 'org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter#0'  
  186. [DEBUG] 2015-04-20 22:21:53 :Eagerly caching bean 'org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter#0' to allow for resolving potential circular references  
  187. [DEBUG] 2015-04-20 22:21:53 :Finished creating instance of bean 'org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter#0'  
  188. [DEBUG] 2015-04-20 22:21:53 :Creating shared instance of singleton bean 'jspViewResolver'  
  189. [DEBUG] 2015-04-20 22:21:53 :Creating instance of bean 'jspViewResolver'  
  190. [DEBUG] 2015-04-20 22:21:53 :Eagerly caching bean 'jspViewResolver' to allow for resolving potential circular references  
  191. [DEBUG] 2015-04-20 22:21:54 :Finished creating instance of bean 'jspViewResolver'  
  192. [DEBUG] 2015-04-20 22:21:54 :Creating shared instance of singleton bean 'freeMarkerViewResolver'  
  193. [DEBUG] 2015-04-20 22:21:54 :Creating instance of bean 'freeMarkerViewResolver'  
  194. [DEBUG] 2015-04-20 22:21:54 :Eagerly caching bean 'freeMarkerViewResolver' to allow for resolving potential circular references  
  195. [DEBUG] 2015-04-20 22:21:54 :Finished creating instance of bean 'freeMarkerViewResolver'  
  196. [DEBUG] 2015-04-20 22:21:54 :Creating shared instance of singleton bean 'jacksonMessageConverter'  
  197. [DEBUG] 2015-04-20 22:21:54 :Creating instance of bean 'jacksonMessageConverter'  
  198. [DEBUG] 2015-04-20 22:21:54 :Eagerly caching bean 'jacksonMessageConverter' to allow for resolving potential circular references  
  199. [DEBUG] 2015-04-20 22:21:54 :Finished creating instance of bean 'jacksonMessageConverter'  
  200. [DEBUG] 2015-04-20 22:21:54 :Creating shared instance of singleton bean 'multipartResolver'  
  201. [DEBUG] 2015-04-20 22:21:54 :Creating instance of bean 'multipartResolver'  
  202. [DEBUG] 2015-04-20 22:21:54 :Eagerly caching bean 'multipartResolver' to allow for resolving potential circular references  
  203. [DEBUG] 2015-04-20 22:21:54 :Finished creating instance of bean 'multipartResolver'  
  204. [DEBUG] 2015-04-20 22:21:54 :Unable to locate LifecycleProcessor with name 'lifecycleProcessor': using default [org.springframework.context.support.DefaultLifecycleProcessor@13743ac]  
  205. [DEBUG] 2015-04-20 22:21:54 :Returning cached instance of singleton bean 'lifecycleProcessor'  
  206. [DEBUG] 2015-04-20 22:21:54 :Returning cached instance of singleton bean 'multipartResolver'  
  207. [DEBUG] 2015-04-20 22:21:54 :Using MultipartResolver [org.springframework.web.multipart.commons.CommonsMultipartResolver@13bd1d3]  
  208. [DEBUG] 2015-04-20 22:21:54 :Creating instance of bean 'org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver'  
  209. [DEBUG] 2015-04-20 22:21:54 :Finished creating instance of bean 'org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver'  
  210. [DEBUG] 2015-04-20 22:21:54 :Unable to locate LocaleResolver with name 'localeResolver': using default [org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver@1123d8b]  
  211. [DEBUG] 2015-04-20 22:21:54 :Creating instance of bean 'org.springframework.web.servlet.theme.FixedThemeResolver'  
  212. [DEBUG] 2015-04-20 22:21:54 :Finished creating instance of bean 'org.springframework.web.servlet.theme.FixedThemeResolver'  
  213. [DEBUG] 2015-04-20 22:21:54 :Unable to locate ThemeResolver with name 'themeResolver': using default [org.springframework.web.servlet.theme.FixedThemeResolver@1137c6]  
  214. [DEBUG] 2015-04-20 22:21:54 :Creating instance of bean 'org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping'  
  215. [DEBUG] 2015-04-20 22:21:54 :Looking for URL mappings in application context: WebApplicationContext for namespace 'springmvc-servlet': startup date [Mon Apr 20 22:21:53 CST 2015]; parent: Root WebApplicationContext  
  216. [DEBUG] 2015-04-20 22:21:54 :Rejected bean name 'org.springframework.context.annotation.internalConfigurationAnnotationProcessor': no URL paths identified  
  217. [DEBUG] 2015-04-20 22:21:54 :Rejected bean name 'org.springframework.context.annotation.internalAutowiredAnnotationProcessor': no URL paths identified  
  218. [DEBUG] 2015-04-20 22:21:54 :Rejected bean name 'org.springframework.context.annotation.internalRequiredAnnotationProcessor': no URL paths identified  
  219. [DEBUG] 2015-04-20 22:21:54 :Rejected bean name 'org.springframework.context.annotation.internalCommonAnnotationProcessor': no URL paths identified  
  220. [DEBUG] 2015-04-20 22:21:54 :Rejected bean name 'userController': no URL paths identified  
  221. [DEBUG] 2015-04-20 22:21:54 :Rejected bean name 'userDao': no URL paths identified  
  222. [DEBUG] 2015-04-20 22:21:54 :Rejected bean name 'userService': no URL paths identified  
  223. [DEBUG] 2015-04-20 22:21:54 :Rejected bean name 'org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter#0': no URL paths identified  
  224. [DEBUG] 2015-04-20 22:21:54 :Rejected bean name 'jspViewResolver': no URL paths identified  
  225. [DEBUG] 2015-04-20 22:21:54 :Rejected bean name 'freeMarkerViewResolver': no URL paths identified  
  226. [DEBUG] 2015-04-20 22:21:54 :Rejected bean name 'jacksonMessageConverter': no URL paths identified  
  227. [DEBUG] 2015-04-20 22:21:54 :Rejected bean name 'multipartResolver': no URL paths identified  
  228. [DEBUG] 2015-04-20 22:21:54 :Rejected bean name 'servletConfig': no URL paths identified  
  229. [DEBUG] 2015-04-20 22:21:54 :Rejected bean name 'messageSource': no URL paths identified  
  230. [DEBUG] 2015-04-20 22:21:54 :Rejected bean name 'applicationEventMulticaster': no URL paths identified  
  231. [DEBUG] 2015-04-20 22:21:54 :Rejected bean name 'lifecycleProcessor': no URL paths identified  
  232. [DEBUG] 2015-04-20 22:21:54 :Finished creating instance of bean 'org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping'  
  233. [DEBUG] 2015-04-20 22:21:54 :Creating instance of bean 'org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping'  
  234. [DEBUG] 2015-04-20 22:21:54 :Looking for URL mappings in application context: WebApplicationContext for namespace 'springmvc-servlet': startup date [Mon Apr 20 22:21:53 CST 2015]; parent: Root WebApplicationContext  
  235. [DEBUG] 2015-04-20 22:21:54 :Rejected bean name 'org.springframework.context.annotation.internalConfigurationAnnotationProcessor': no URL paths identified  
  236. [DEBUG] 2015-04-20 22:21:54 :Rejected bean name 'org.springframework.context.annotation.internalAutowiredAnnotationProcessor': no URL paths identified  
  237. [DEBUG] 2015-04-20 22:21:54 :Rejected bean name 'org.springframework.context.annotation.internalRequiredAnnotationProcessor': no URL paths identified  
  238. [DEBUG] 2015-04-20 22:21:54 :Rejected bean name 'org.springframework.context.annotation.internalCommonAnnotationProcessor': no URL paths identified  
  239. [DEBUG] 2015-04-20 22:21:54 :Returning cached instance of singleton bean 'userController'  
  240. [INFO ] 2015-04-20 22:21:54 :Mapped URL path [/user/login] onto handler [com.chenjun.mall.controllers.UserController@17f3e7]  
  241. [DEBUG] 2015-04-20 22:21:54 :Returning cached instance of singleton bean 'userController'  
  242. [INFO ] 2015-04-20 22:21:54 :Mapped URL path [/user/login.*] onto handler [com.chenjun.mall.controllers.UserController@17f3e7]  
  243. [DEBUG] 2015-04-20 22:21:54 :Returning cached instance of singleton bean 'userController'  
  244. [INFO ] 2015-04-20 22:21:54 :Mapped URL path [/user/login/] onto handler [com.chenjun.mall.controllers.UserController@17f3e7]  
  245. [DEBUG] 2015-04-20 22:21:54 :Returning cached instance of singleton bean 'userController'  
  246. [INFO ] 2015-04-20 22:21:54 :Mapped URL path [/user/toLogin] onto handler [com.chenjun.mall.controllers.UserController@17f3e7]  
  247. [DEBUG] 2015-04-20 22:21:54 :Returning cached instance of singleton bean 'userController'  
  248. [INFO ] 2015-04-20 22:21:54 :Mapped URL path [/user/toLogin.*] onto handler [com.chenjun.mall.controllers.UserController@17f3e7]  
  249. [DEBUG] 2015-04-20 22:21:54 :Returning cached instance of singleton bean 'userController'  
  250. [INFO ] 2015-04-20 22:21:54 :Mapped URL path [/user/toLogin/] onto handler [com.chenjun.mall.controllers.UserController@17f3e7]  
  251. [DEBUG] 2015-04-20 22:21:54 :Returning cached instance of singleton bean 'userController'  
  252. [INFO ] 2015-04-20 22:21:54 :Mapped URL path [/user] onto handler [com.chenjun.mall.controllers.UserController@17f3e7]  
  253. [DEBUG] 2015-04-20 22:21:54 :Returning cached instance of singleton bean 'userController'  
  254. [INFO ] 2015-04-20 22:21:54 :Mapped URL path [/user.*] onto handler [com.chenjun.mall.controllers.UserController@17f3e7]  
  255. [DEBUG] 2015-04-20 22:21:54 :Returning cached instance of singleton bean 'userController'  
  256. [INFO ] 2015-04-20 22:21:54 :Mapped URL path [/user/] onto handler [com.chenjun.mall.controllers.UserController@17f3e7]  
  257. [DEBUG] 2015-04-20 22:21:54 :Rejected bean name 'userDao': no URL paths identified  
  258. [DEBUG] 2015-04-20 22:21:54 :Rejected bean name 'userService': no URL paths identified  
  259. [DEBUG] 2015-04-20 22:21:54 :Rejected bean name 'org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter#0': no URL paths identified  
  260. [DEBUG] 2015-04-20 22:21:54 :Rejected bean name 'jspViewResolver': no URL paths identified  
  261. [DEBUG] 2015-04-20 22:21:54 :Rejected bean name 'freeMarkerViewResolver': no URL paths identified  
  262. [DEBUG] 2015-04-20 22:21:54 :Rejected bean name 'jacksonMessageConverter': no URL paths identified  
  263. [DEBUG] 2015-04-20 22:21:54 :Rejected bean name 'multipartResolver': no URL paths identified  
  264. [DEBUG] 2015-04-20 22:21:54 :Rejected bean name 'servletConfig': no URL paths identified  
  265. [DEBUG] 2015-04-20 22:21:54 :Rejected bean name 'messageSource': no URL paths identified  
  266. [DEBUG] 2015-04-20 22:21:54 :Rejected bean name 'applicationEventMulticaster': no URL paths identified  
  267. [DEBUG] 2015-04-20 22:21:54 :Rejected bean name 'lifecycleProcessor': no URL paths identified  
  268. [DEBUG] 2015-04-20 22:21:54 :Finished creating instance of bean 'org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping'  
  269. [DEBUG] 2015-04-20 22:21:54 :No HandlerMappings found in servlet 'springmvc': using default  
  270. [DEBUG] 2015-04-20 22:21:54 :Returning cached instance of singleton bean 'org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter#0'  
  271. [DEBUG] 2015-04-20 22:21:54 :Creating instance of bean 'org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerExceptionResolver'  
  272. [DEBUG] 2015-04-20 22:21:54 :Finished creating instance of bean 'org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerExceptionResolver'  
  273. [DEBUG] 2015-04-20 22:21:54 :Creating instance of bean 'org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver'  
  274. [DEBUG] 2015-04-20 22:21:54 :Finished creating instance of bean 'org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver'  
  275. [DEBUG] 2015-04-20 22:21:54 :Creating instance of bean 'org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver'  
  276. [DEBUG] 2015-04-20 22:21:54 :Finished creating instance of bean 'org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver'  
  277. [DEBUG] 2015-04-20 22:21:54 :No HandlerExceptionResolvers found in servlet 'springmvc': using default  
  278. [DEBUG] 2015-04-20 22:21:54 :Creating instance of bean 'org.springframework.web.servlet.view.DefaultRequestToViewNameTranslator'  
  279. [DEBUG] 2015-04-20 22:21:54 :Finished creating instance of bean 'org.springframework.web.servlet.view.DefaultRequestToViewNameTranslator'  
  280. [DEBUG] 2015-04-20 22:21:54 :Unable to locate RequestToViewNameTranslator with name 'viewNameTranslator': using default [org.springframework.web.servlet.view.DefaultRequestToViewNameTranslator@1ca7bad]  
  281. [DEBUG] 2015-04-20 22:21:54 :Returning cached instance of singleton bean 'jspViewResolver'  
  282. [DEBUG] 2015-04-20 22:21:54 :Returning cached instance of singleton bean 'freeMarkerViewResolver'  
  283. [DEBUG] 2015-04-20 22:21:54 :Returning cached instance of singleton bean 'sqlSessionFactory'  
  284. [DEBUG] 2015-04-20 22:21:54 :Published WebApplicationContext of servlet 'springmvc' as ServletContext attribute with name [org.springframework.web.servlet.FrameworkServlet.CONTEXT.springmvc]  
  285. [INFO ] 2015-04-20 22:21:54 :FrameworkServlet 'springmvc': initialization completed in 1662 ms  
  286. [DEBUG] 2015-04-20 22:21:54 :Servlet 'springmvc' configured successfully  
  287. 2015-04-20 22:21:54.810:INFO::Started SelectChannelConnector@0.0.0.0:7777  
  288. [INFO] Started Jetty Server  
  289. [INFO] Starting scanner at interval of 10 seconds.  

上面日志配置得很详细,容器偷偷干了什么,你就都知道了,这是默认在jetty插件上部署的,也可以右键项目部署在默认提供的tomcat上,这样改变jsp文件就不用重启了
0 0
原创粉丝点击