从打印Log可以分析出框架的响应顺序。
DEBUG 12-28 10:57:59,444 Adding [systemProperties] PropertySource with lowest search precedence (MutablePropertySources.java:109)
DEBUG 12-28 10:57:59,449 Adding [systemEnvironment] PropertySource with lowest search precedence (MutablePropertySources.java:109)
DEBUG 12-28 10:57:59,449 Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment] (AbstractEnvironment.java:126)
INFO 12-28 10:57:59,454 Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@22a71081: startup date [Thu Dec 28 10:57:59 CST 2017]; root of context hierarchy (AbstractApplicationContext.java:510)
DEBUG 12-28 10:57:59,509 Adding [systemProperties] PropertySource with lowest search precedence (MutablePropertySources.java:109)
DEBUG 12-28 10:57:59,510 Adding [systemEnvironment] PropertySource with lowest search precedence (MutablePropertySources.java:109)
DEBUG 12-28 10:57:59,510 Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment] (AbstractEnvironment.java:126)
INFO 12-28 10:57:59,522 Loading XML bean definitions from class path resource [applicationContext-mybatis.xml] (XmlBeanDefinitionReader.java:317)
DEBUG 12-28 10:57:59,525 Using JAXP provider [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl] (DefaultDocumentLoader.java:73)
DEBUG 12-28 10:57:59,552 Trying to resolve XML entity with public id [null] and system id [http://www.springframework.org/schema/beans/spring-beans-4.2.xsd] (PluggableSchemaResolver.java:106)
DEBUG 12-28 10:57:59,553 Loading schema mappings from [META-INF/spring.schemas] (PluggableSchemaResolver.java:141)
DEBUG 12-28 10:57:59,559 Loaded schema mappings: {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/aop/spring-aop-4.1.xsd=org/springframework/aop/config/spring-aop-4.1.xsd, http://www.springframework.org/schema/context/spring-context-3.1.xsd=org/springframework/context/config/spring-context-3.1.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc-4.1.xsd=org/springframework/jdbc/config/spring-jdbc-4.1.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/tool/spring-tool.xsd=org/springframework/beans/factory/xml/spring-tool-4.1.xsd, http://www.springframework.org/schema/aop/spring-aop-3.2.xsd=org/springframework/aop/config/spring-aop-3.2.xsd,
http://mybatis.org/schema/mybatis-spring-1.2.xsd=org/mybatis/spring/config/mybatis-spring-1.2.xsd, http://www.springframework.org/schema/lang/spring-lang-4.1.xsd=org/springframework/scripting/config/spring-lang-4.1.xsd, http://www.springframework.org/schema/context/spring-context-4.0.xsd=org/springframework/context/config/spring-context-4.0.xsd, http://www.springframework.org/schema/tool/spring-tool-4.1.xsd=org/springframework/beans/factory/xml/spring-tool-4.1.xsd, http://www.springframework.org/schema/lang/spring-lang-3.2.xsd=org/springframework/scripting/config/spring-lang-3.2.xsd, http://www.springframework.org/schema/cache/spring-cache-3.2.xsd=org/springframework/cache/config/spring-cache-3.2.xsd, http://www.springframework.org/schema/jee/spring-jee-4.1.xsd=org/springframework/ejb/config/spring-jee-4.1.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc-3.1.xsd=org/springframework/jdbc/config/spring-jdbc-3.1.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/tool/spring-tool-3.2.xsd=org/springframework/beans/factory/xml/spring-tool-3.2.xsd, http://www.springframework.org/schema/context/spring-context.xsd=org/springframework/context/config/spring-context-4.1.xsd, http://www.springframework.org/schema/cache/spring-cache-4.1.xsd=org/springframework/cache/config/spring-cache-4.1.xsd, http://www.springframework.org/schema/aop/spring-aop-4.0.xsd=org/springframework/aop/config/spring-aop-4.0.xsd, http://www.springframework.org/schema/jee/spring-jee-3.2.xsd=org/springframework/ejb/config/spring-jee-3.2.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/jdbc/spring-jdbc-4.0.xsd=org/springframework/jdbc/config/spring-jdbc-4.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/beans/spring-beans-3.2.xsd=org/springframework/beans/factory/xml/spring-beans-3.2.xsd, http://www.springframework.org/schema/aop/spring-aop-3.1.xsd=org/springframework/aop/config/spring-aop-3.1.xsd, http://www.springframework.org/schema/lang/spring-lang-4.0.xsd=org/springframework/scripting/config/spring-lang-4.0.xsd, http://www.springframework.org/schema/beans/spring-beans-4.1.xsd=org/springframework/beans/factory/xml/spring-beans-4.1.xsd, http://www.springframework.org/schema/tool/spring-tool-4.0.xsd=org/springframework/beans/factory/xml/spring-tool-4.0.xsd, http://www.springframework.org/schema/tx/spring-tx-3.2.xsd=org/springframework/transaction/config/spring-tx-3.2.xsd, http://www.springframework.org/schema/lang/spring-lang-3.1.xsd=org/springframework/scripting/config/spring-lang-3.1.xsd, http://www.springframework.org/schema/cache/spring-cache-3.1.xsd=org/springframework/cache/config/spring-cache-3.1.xsd, http://www.springframework.org/schema/jee/spring-jee-4.0.xsd=org/springframework/ejb/config/spring-jee-4.0.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/task/spring-task-4.1.xsd=org/springframework/scheduling/config/spring-task-4.1.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc.xsd=org/springframework/jdbc/config/spring-jdbc-4.1.xsd, http://www.springframework.org/schema/tool/spring-tool-3.1.xsd=org/springframework/beans/factory/xml/spring-tool-3.1.xsd, http://www.springframework.org/schema/tx/spring-tx-4.1.xsd=org/springframework/transaction/config/spring-tx-4.1.xsd, http://www.springframework.org/schema/cache/spring-cache-4.0.xsd=org/springframework/cache/config/spring-cache-4.0.xsd, http://www.springframework.org/schema/jee/spring-jee-3.1.xsd=org/springframework/ejb/config/spring-jee-3.1.xsd, http://www.springframework.org/schema/task/spring-task-3.2.xsd=org/springframework/scheduling/config/spring-task-3.2.xsd, http://www.springframework.org/schema/beans/spring-beans-3.1.xsd=org/springframework/beans/factory/xml/spring-beans-3.1.xsd, http://www.springframework.org/schema/util/spring-util.xsd=org/springframework/beans/factory/xml/spring-util-4.1.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/beans/spring-beans-4.0.xsd=org/springframework/beans/factory/xml/spring-beans-4.0.xsd, http://www.springframework.org/schema/beans/spring-beans.xsd=org/springframework/beans/factory/xml/spring-beans-4.1.xsd, http://www.springframework.org/schema/tx/spring-tx-3.1.xsd=org/springframework/transaction/config/spring-tx-3.1.xsd, http://www.springframework.org/schema/lang/spring-lang-3.0.xsd=org/springframework/scripting/config/spring-lang-3.0.xsd, http://mybatis.org/schema/mybatis-spring.xsd=org/mybatis/spring/config/mybatis-spring-1.2.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/task/spring-task-4.0.xsd=org/springframework/scheduling/config/spring-task-4.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-4.0.xsd=org/springframework/transaction/config/spring-tx-4.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/jee/spring-jee-3.0.xsd=org/springframework/ejb/config/spring-jee-3.0.xsd, http://www.springframework.org/schema/util/spring-util-4.1.xsd=org/springframework/beans/factory/xml/spring-util-4.1.xsd, http://www.springframework.org/schema/task/spring-task-3.1.xsd=org/springframework/scheduling/config/spring-task-3.1.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/jee/spring-jee.xsd=org/springframework/ejb/config/spring-jee-4.1.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/lang/spring-lang-2.0.xsd=org/springframework/scripting/config/spring-lang-2.0.xsd, http://www.springframework.org/schema/util/spring-util-3.2.xsd=org/springframework/beans/factory/xml/spring-util-3.2.xsd, http://www.springframework.org/schema/task/spring-task.xsd=org/springframework/scheduling/config/spring-task-4.1.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/tx/spring-tx-3.0.xsd=org/springframework/transaction/config/spring-tx-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-2.0.xsd=org/springframework/ejb/config/spring-jee-2.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/jee/spring-jee-2.5.xsd=org/springframework/ejb/config/spring-jee-2.5.xsd, http://www.springframework.org/schema/util/spring-util-4.0.xsd=org/springframework/beans/factory/xml/spring-util-4.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/lang/spring-lang.xsd=org/springframework/scripting/config/spring-lang-4.1.xsd, http://www.springframework.org/schema/context/spring-context-3.2.xsd=org/springframework/context/config/spring-context-3.2.xsd, http://www.springframework.org/schema/util/spring-util-3.1.xsd=org/springframework/beans/factory/xml/spring-util-3.1.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/cache/spring-cache.xsd=org/springframework/cache/config/spring-cache-4.1.xsd, http://www.springframework.org/schema/tx/spring-tx.xsd=org/springframework/transaction/config/spring-tx-4.1.xsd, http://www.springframework.org/schema/context/spring-context-4.1.xsd=org/springframework/context/config/spring-context-4.1.xsd, http://www.springframework.org/schema/beans/spring-beans-2.5.xsd=org/springframework/beans/factory/xml/spring-beans-2.5.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/jdbc/spring-jdbc-3.2.xsd=org/springframework/jdbc/config/spring-jdbc-3.2.xsd, http://www.springframework.org/schema/aop/spring-aop.xsd=org/springframework/aop/config/spring-aop-4.1.xsd} (PluggableSchemaResolver.java:147) ------------------------以上是:加载配置文件里的依赖关系的文件 (xsd)-------------------------------------------------------------
DEBUG 12-28 10:58:01,644 Loading bean definitions (DefaultBeanDefinitionDocumentReader.java:98)
DEBUG 12-28 10:58:01,668 Loaded 5 bean definitions from location pattern [applicationContext-mybatis.xml] (AbstractBeanDefinitionReader.java:224)
---------------------以上是:加载5个在[applicationContext-mybatis.xml]文件中的bean -------------------------------------------------------------
DEBUG 12-28 10:58:01,668 Bean factory for org.springframework.context.support.ClassPathXmlApplicationContext@22a71081: org.springframework.beans.factory.support.DefaultListableBeanFactory@6acdbdf5: defining beans [dataSource,sqlSessionFactory,sqlSessionTemplate,userMapper,userService];
root of factory hierarchy (AbstractApplicationContext.java:540)
DEBUG 12-28 10:58:01,711 Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@63440df3] (AbstractApplicationContext.java:646)
DEBUG 12-28 10:58:01,718 Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@491cc5c9] (AbstractApplicationContext.java:670)
DEBUG 12-28 10:58:01,720 Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@6acdbdf5: defining beans [dataSource,sqlSessionFactory,sqlSessionTemplate,userMapper,userService]; root of factory hierarchy (DefaultListableBeanFactory.java:731)
DEBUG 12-28 10:58:01,722 Creating shared instance of singleton bean 'dataSource' (DefaultSingletonBeanRegistry.java:221)
DEBUG 12-28 10:58:01,722 Creating instance of bean 'dataSource' (AbstractAutowireCapableBeanFactory.java:450)
---------------------以上是:创建dataSource-Bean的实例 -------------------------------------------------------------
DEBUG 12-28 10:58:01,768 Eagerly caching bean 'dataSource' to allow for resolving potential circular references (AbstractAutowireCapableBeanFactory.java:523)
DEBUG 12-28 10:58:01,792 Loaded [org.springframework.beans.BeanInfoFactory] names: [org.springframework.beans.ExtendedBeanInfoFactory] (SpringFactoriesLoader.java:87)
DEBUG 12-28 10:58:01,795 Getting BeanInfo for class [org.apache.commons.dbcp.BasicDataSource] (CachedIntrospectionResults.java:265)
DEBUG 12-28 10:58:01,808 Caching PropertyDescriptors for class [org.apache.commons.dbcp.BasicDataSource] (CachedIntrospectionResults.java:284)
DEBUG 12-28 10:58:01,809 Found bean property 'accessToUnderlyingConnectionAllowed' of type [boolean] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,814 Found bean property 'class' of type [java.lang.Class] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,815 Found bean property 'closed' of type [boolean] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,816 Found bean property 'connection' of type [java.sql.Connection] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,816 Found bean property 'connectionInitSqls' of type [java.util.Collection] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,816 Found bean property 'connectionProperties' of type [java.lang.String] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,816 Found bean property 'defaultAutoCommit' of type [boolean] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,816 Found bean property 'defaultCatalog' of type [java.lang.String] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,817 Found bean property 'defaultReadOnly' of type [boolean] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,817 Found bean property 'defaultTransactionIsolation' of type [int] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,818 Found bean property 'driverClassLoader' of type [java.lang.ClassLoader] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,818 Found bean property 'driverClassName' of type [java.lang.String] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,818 Found bean property 'initialSize' of type [int] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,819 Found bean property 'logAbandoned' of type [boolean] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,819 Found bean property 'logWriter' of type [java.io.PrintWriter] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,820 Found bean property 'loginTimeout' of type [int] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,820 Found bean property 'maxActive' of type [int] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,821 Found bean property 'maxIdle' of type [int] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,821 Found bean property 'maxOpenPreparedStatements' of type [int] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,822 Found bean property 'maxWait' of type [long] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,822 Found bean property 'minEvictableIdleTimeMillis' of type [long] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,822 Found bean property 'minIdle' of type [int] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,823 Found bean property 'numActive' of type [int] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,823 Found bean property 'numIdle' of type [int] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,823 Found bean property 'numTestsPerEvictionRun' of type [int] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,824 Found bean property 'password' of type [java.lang.String] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,824 Found bean property 'poolPreparedStatements' of type [boolean] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,824 Found bean property 'removeAbandoned' of type [boolean] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,825 Found bean property 'removeAbandonedTimeout' of type [int] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,825 Found bean property 'testOnBorrow' of type [boolean] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,825 Found bean property 'testOnReturn' of type [boolean] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,826 Found bean property 'testWhileIdle' of type [boolean] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,826 Found bean property 'timeBetweenEvictionRunsMillis' of type [long] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,826 Found bean property 'url' of type [java.lang.String] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,827 Found bean property 'username' of type [java.lang.String] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,827 Found bean property 'validationQuery' of type [java.lang.String] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,827 Found bean property 'validationQueryTimeout' of type [int] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,834 Finished creating instance of bean 'dataSource' (AbstractAutowireCapableBeanFactory.java:478)
DEBUG 12-28 10:58:01,834 Creating shared instance of singleton bean 'sqlSessionFactory' (DefaultSingletonBeanRegistry.java:221)
DEBUG 12-28 10:58:01,835 Creating instance of bean 'sqlSessionFactory' (AbstractAutowireCapableBeanFactory.java:450)
DEBUG 12-28 10:58:01,846 Eagerly caching bean 'sqlSessionFactory' to allow for resolving potential circular references (AbstractAutowireCapableBeanFactory.java:523)
---------------------以上是:创建sqlSessionFactory 的实例 -------------------------------------------------------------
DEBUG 12-28 10:58:01,847 Returning cached instance of singleton bean 'dataSource' (AbstractBeanFactory.java:247)
DEBUG 12-28 10:58:01,848 Getting BeanInfo for class [org.mybatis.spring.SqlSessionFactoryBean] (CachedIntrospectionResults.java:265)
DEBUG 12-28 10:58:01,861 Caching PropertyDescriptors for class [org.mybatis.spring.SqlSessionFactoryBean] (CachedIntrospectionResults.java:284)
DEBUG 12-28 10:58:01,862 Found bean property 'cache' of type [org.apache.ibatis.cache.Cache] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,862 Found bean property 'class' of type [java.lang.Class] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,865 Found bean property 'configLocation' of type [org.springframework.core.io.Resource] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,866 Found bean property 'configuration' of type [org.apache.ibatis.session.Configuration] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,866 Found bean property 'configurationProperties' of type [java.util.Properties] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,866 Found bean property 'dataSource' of type [javax.sql.DataSource] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,867 Found bean property 'databaseIdProvider' of type [org.apache.ibatis.mapping.DatabaseIdProvider] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,867 Found bean property 'environment' of type [java.lang.String] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,867 Found bean property 'failFast' of type [boolean] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,869 Found bean property 'mapperLocations' of type [[Lorg.springframework.core.io.Resource;] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,870 Found bean property 'object' of type [org.apache.ibatis.session.SqlSessionFactory] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,871 Found bean property 'objectFactory' of type [org.apache.ibatis.reflection.factory.ObjectFactory] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,871 Found bean property 'objectType' of type [java.lang.Class] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,873 Found bean property 'objectWrapperFactory' of type [org.apache.ibatis.reflection.wrapper.ObjectWrapperFactory] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,873 Found bean property 'plugins' of type [[Lorg.apache.ibatis.plugin.Interceptor;] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,874 Found bean property 'singleton' of type [boolean] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,878 Found bean property 'sqlSessionFactoryBuilder' of type [org.apache.ibatis.session.SqlSessionFactoryBuilder] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,878 Found bean property 'transactionFactory' of type [org.apache.ibatis.transaction.TransactionFactory] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,879 Found bean property 'typeAliases' of type [[Ljava.lang.Class;] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,885 Found bean property 'typeAliasesPackage' of type [java.lang.String] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,886 Found bean property 'typeAliasesSuperType' of type [java.lang.Class] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,888 Found bean property 'typeHandlers' of type [[Lorg.apache.ibatis.type.TypeHandler;] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,888 Found bean property 'typeHandlersPackage' of type [java.lang.String] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,891 Found bean property 'vfs' of type [java.lang.Class] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:01,893 Converting String to [interface org.springframework.core.io.Resource] using property editor [org.springframework.core.io.ResourceEditor@b59d31] (TypeConverterDelegate.java:420)
DEBUG 12-28 10:58:01,896 Looking for matching resources in directory tree [D:\java_ee_eclipse\mmb_workplace\smbmsMySp\bin\com\smbms\pojo] (PathMatchingResourcePatternResolver.java:622)
DEBUG 12-28 10:58:01,896 Searching directory [D:\java_ee_eclipse\mmb_workplace\smbmsMySp\bin\com\smbms\pojo] for files matching pattern [D:/java_ee_eclipse/mmb_workplace/smbmsMySp/bin/com/smbms/pojo/**/*.xml] (PathMatchingResourcePatternResolver.java:684)
DEBUG 12-28 10:58:01,908 Resolved location pattern [classpath:com/smbms/pojo/**/*.xml] to resources [file [D:\java_ee_eclipse\mmb_workplace\smbmsMySp\bin\com\smbms\pojo\UserMapper.xml]] (PathMatchingResourcePatternResolver.java:423)
DEBUG 12-28 10:58:01,911 Invoking afterPropertiesSet() on bean with name 'sqlSessionFactory' (AbstractAutowireCapableBeanFactory.java:1608)
DEBUG 12-28 10:58:02,116 Parsed configuration file: 'class path resource [mybatis-config.xml]' (JakartaCommonsLoggingImpl.java:54)
DEBUG 12-28 10:58:02,200 Parsed mapper file: 'file [D:\java_ee_eclipse\mmb_workplace\smbmsMySp\bin\com\smbms\pojo\UserMapper.xml]' (JakartaCommonsLoggingImpl.java:54)
DEBUG 12-28 10:58:02,201 Finished creating instance of bean 'sqlSessionFactory' (AbstractAutowireCapableBeanFactory.java:478)
DEBUG 12-28 10:58:02,202 Creating shared instance of singleton bean 'sqlSessionTemplate' (DefaultSingletonBeanRegistry.java:221)
DEBUG 12-28 10:58:02,202 Creating instance of bean 'sqlSessionTemplate' (AbstractAutowireCapableBeanFactory.java:450)
DEBUG 12-28 10:58:02,205 Returning cached instance of singleton bean 'sqlSessionFactory' (AbstractBeanFactory.java:247)
---------------------以上是:创建 sqlSessionTemplate 的实例 -------------------------------------------------------------
DEBUG 12-28 10:58:02,222 Ignoring constructor [public org.mybatis.spring.SqlSessionTemplate(org.apache.ibatis.session.SqlSessionFactory,org.apache.ibatis.session.ExecutorType,org.springframework.dao.support.PersistenceExceptionTranslator)] of bean 'sqlSessionTemplate':
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sqlSessionTemplate' defined in class path resource [applicationContext-mybatis.xml]: Unsatisfied dependency expressed through constructor argument with index 1
of type [org.apache.ibatis.session.ExecutorType]: Ambiguous constructor argument types - did you specify the correct bean references as constructor arguments? (ConstructorResolver.java:190)
DEBUG 12-28 10:58:02,223 Ignoring constructor [public org.mybatis.spring.SqlSessionTemplate(org.apache.ibatis.session.SqlSessionFactory,org.apache.ibatis.session.ExecutorType)] of bean 'sqlSessionTemplate': org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'sqlSessionTemplate' defined in class path resource [applicationContext-mybatis.xml]: Unsatisfied dependency expressed through constructor argument with index 1 of type [org.apache.ibatis.session.ExecutorType]: Ambiguous constructor
argument types - did you specify the correct bean references as constructor arguments? (ConstructorResolver.java:190)
DEBUG 12-28 10:58:02,232 Eagerly caching bean 'sqlSessionTemplate' to allow for resolving potential circular references (AbstractAutowireCapableBeanFactory.java:523)
DEBUG 12-28 10:58:02,232 Finished creating instance of bean 'sqlSessionTemplate' (AbstractAutowireCapableBeanFactory.java:478)
---------------------以上是:成功创建了 sqlSessionTemplate 的实例 -------------------------------------------------------------
DEBUG 12-28 10:58:02,233 Creating shared instance of singleton bean 'userMapper' (DefaultSingletonBeanRegistry.java:221)
DEBUG 12-28 10:58:02,233 Creating instance of bean 'userMapper' (AbstractAutowireCapableBeanFactory.java:450)
---------------------以上是:创建了 userMapper 的实例 -------------------------------------------------------------
DEBUG 12-28 10:58:02,233 Returning cached instance of singleton bean 'sqlSessionTemplate' (AbstractBeanFactory.java:247)
DEBUG 12-28 10:58:02,234 Eagerly caching bean 'userMapper' to allow for resolving potential circular references (AbstractAutowireCapableBeanFactory.java:523)
DEBUG 12-28 10:58:02,235 Finished creating instance of bean 'userMapper' (AbstractAutowireCapableBeanFactory.java:478)
---------------------以下是:开始创建 userService 的实例 -------------------------------------------------------------
DEBUG 12-28 10:58:02,235 Creating shared instance of singleton bean 'userService' (DefaultSingletonBeanRegistry.java:221)
DEBUG 12-28 10:58:02,235 Creating instance of bean 'userService' (AbstractAutowireCapableBeanFactory.java:450)
DEBUG 12-28 10:58:02,235 Eagerly caching bean 'userService' to allow for resolving potential circular references (AbstractAutowireCapableBeanFactory.java:523)
DEBUG 12-28 10:58:02,236 Returning cached instance of singleton bean 'userMapper' (AbstractBeanFactory.java:247)
DEBUG 12-28 10:58:02,241 Getting BeanInfo for class [com.smbms.pojo.UserServiceImpl] (CachedIntrospectionResults.java:265)
DEBUG 12-28 10:58:02,242 Caching PropertyDescriptors for class [com.smbms.pojo.UserServiceImpl] (CachedIntrospectionResults.java:284)
DEBUG 12-28 10:58:02,243 Found bean property 'class' of type [java.lang.Class] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:02,243 Found bean property 'userMapper' of type [com.smbms.pojo.UserMapper] (CachedIntrospectionResults.java:297)
DEBUG 12-28 10:58:02,244 Finished creating instance of bean 'userService' (AbstractAutowireCapableBeanFactory.java:478)
---------------------以上是:创建了 userService 的实例 -------------------------------------------------------------
DEBUG 12-28 10:58:02,246 Unable to locate LifecycleProcessor with name 'lifecycleProcessor': using default [org.springframework.context.support.DefaultLifecycleProcessor@158da8e] (AbstractApplicationContext.java:697)
DEBUG 12-28 10:58:02,247 Returning cached instance of singleton bean 'lifecycleProcessor' (AbstractBeanFactory.java:247)
DEBUG 12-28 10:58:02,247 Publishing event in org.springframework.context.support.ClassPathXmlApplicationContext@22a71081: org.springframework.context.event.ContextRefreshedEvent[source=org.springframework.context.support.ClassPathXmlApplicationContext@22a71081:
startup date [Thu Dec 28 10:57:59 CST 2017]; root of context hierarchy] (AbstractApplicationContext.java:329)
DEBUG 12-28 10:58:02,250 Returning cached instance of singleton bean 'sqlSessionFactory' (AbstractBeanFactory.java:247)
DEBUG 12-28 10:58:02,253 getProperty("spring.liveBeansView.mbeanDomain", String) (PropertySourcesPropertyResolver.java:76)
DEBUG 12-28 10:58:02,254 Searching for key 'spring.liveBeansView.mbeanDomain' in [systemProperties] (PropertySourcesPropertyResolver.java:81)
DEBUG 12-28 10:58:02,255 Searching for key 'spring.liveBeansView.mbeanDomain' in [systemEnvironment] (PropertySourcesPropertyResolver.java:81)
DEBUG 12-28 10:58:02,256 Could not find key 'spring.liveBeansView.mbeanDomain' in any property source. Returning [null] (PropertySourcesPropertyResolver.java:103)
DEBUG 12-28 10:58:02,256 Returning cached instance of singleton bean 'userService' (AbstractBeanFactory.java:247)
DEBUG 12-28 10:58:02,262 Creating a new SqlSession (JakartaCommonsLoggingImpl.java:54)
DEBUG 12-28 10:58:02,267 SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@1189dd52] was not registered for synchronization because synchronization is not active (JakartaCommonsLoggingImpl.java:54)
DEBUG 12-28 10:58:02,282 Fetching JDBC Connection from DataSource (DataSourceUtils.java:110)
DEBUG 12-28 10:58:02,729 JDBC Connection [jdbc:mysql://127.0.0.1:3306/test?
useUnicode=true&characterEncoding=utf-8, UserName=root@localhost, MySQL Connector Java] will not be managed by Spring (JakartaCommonsLoggingImpl.java:54)
---------------------以上是:JDBC Connection 成功 -------------------------------------------------------------
DEBUG 12-28 10:58:02,743 ==> Preparing: select u.* ,r.roleName from smbms_user u ,smbms_role r where u.userName like CONCAT('%',?,'%') and u.userRole = ? and u.userRole = r.id (JakartaCommonsLoggingImpl.java:54)
DEBUG 12-28 10:58:02,863 ==> Parameters: mmb(String), 110(Integer) (JakartaCommonsLoggingImpl.java:54)
DEBUG 12-28 10:58:04,973 <== Columns: id, userCode, userName, userPassword, gender, birthday, phone, address, userRole, createBy, createDate, modifyBy, modifyDate, roleName (JakartaCommonsLoggingImpl.java:59)
DEBUG 12-28 10:58:04,975 <== Row: 1, test01, mmb02, 9876543210, 2, 1991-12-29, 0000, maoming, 110, 1, 2017-12-17 10:50:04.0, null, null, guan_li_yuan (JakartaCommonsLoggingImpl.java:59)
DEBUG 12-28 10:58:05,112 <== Row: 2, test01, mmb02, scua, 2, 1991-12-29, 0000, maoming, 110, 1, 2017-12-17 10:56:48.0, null, null, guan_li_yuan (JakartaCommonsLoggingImpl.java:59)
DEBUG 12-28 10:58:05,115 <== Row: 3, test01, mmb02, scua, 2, 1991-12-29, 0000, maoming, 110, 1, 2017-12-17 10:58:46.0, null, null, guan_li_yuan (JakartaCommonsLoggingImpl.java:59)
DEBUG 12-28 10:58:05,117 <== Row: 4, test01, mmb02, scua, 2, 1991-12-29, 0000, maoming, 110, 1, 2017-12-17 11:01:42.0, null, null, guan_li_yuan (JakartaCommonsLoggingImpl.java:59)
DEBUG 12-28 10:58:05,119 <== Row: 5, test01, mmb02, scua, 2, 1991-12-29, 0000, maoming, 110, 1, 2017-12-17 11:03:05.0, null, null, guan_li_yuan (JakartaCommonsLoggingImpl.java:59)
---------------------以上是:数据库操作返回内容 -------------------------------------------------------------
DEBUG 12-28 10:58:05,120 <== Total: 5 (JakartaCommonsLoggingImpl.java:54)
DEBUG 12-28 10:58:05,233 Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@1189dd52] (JakartaCommonsLoggingImpl.java:54)
---------------------以上是:JDBC Connection 断开 -------------------------------------------------------------
DEBUG 12-28 10:58:05,234 Returning JDBC Connection to DataSource (DataSourceUtils.java:327)
testGetUserList userCode:test01userName: mmb02userRole: 110userRoleName: guan_li_yuanuserAddress: null
testGetUserList userCode:test01userName: mmb02userRole: 110userRoleName: guan_li_yuanuserAddress: null
testGetUserList userCode:test01userName: mmb02userRole: 110userRoleName: guan_li_yuanuserAddress: null
testGetUserList userCode:test01userName: mmb02userRole: 110userRoleName: guan_li_yuanuserAddress: null
testGetUserList userCode:test01userName: mmb02userRole: 110userRoleName: guan_li_yuanuserAddress: null
---------------------以上是:测试输出内容 -------------------------------------------------------------