ssm整合,tomcat启动报错

极度崩溃help,望大佬答疑解惑,好人一生平安
以下是控制台的报错:

三月 22, 2020 9:20:02 下午 org.apache.jasper.servlet.TldScanner scanJars
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
三月 22, 2020 9:20:02 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
 INFO [localhost-startStop-2] - Root WebApplicationContext: initialization started
DEBUG [localhost-startStop-2] - Initializing new StandardServletEnvironment
DEBUG [localhost-startStop-2] - Adding [servletConfigInitParams] PropertySource with lowest search precedence
DEBUG [localhost-startStop-2] - Adding [servletContextInitParams] PropertySource with lowest search precedence
DEBUG [localhost-startStop-2] - Adding [jndiProperties] PropertySource with lowest search precedence
DEBUG [localhost-startStop-2] - Adding [systemProperties] PropertySource with lowest search precedence
DEBUG [localhost-startStop-2] - Adding [systemEnvironment] PropertySource with lowest search precedence
DEBUG [localhost-startStop-2] - Initialized StandardServletEnvironment with PropertySources [servletConfigInitParams,servletContextInitParams,jndiProperties,systemProperties,systemEnvironment]
 INFO [localhost-startStop-2] - Refreshing Root WebApplicationContext: startup date [Sun Mar 22 21:20:02 CST 2020]; root of context hierarchy
DEBUG [localhost-startStop-2] - Replacing [servletContextInitParams] PropertySource with [servletContextInitParams]
DEBUG [localhost-startStop-2] - Initializing new StandardEnvironment
DEBUG [localhost-startStop-2] - Adding [systemProperties] PropertySource with lowest search precedence
DEBUG [localhost-startStop-2] - Adding [systemEnvironment] PropertySource with lowest search precedence
DEBUG [localhost-startStop-2] - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
DEBUG [localhost-startStop-2] - Initializing new StandardEnvironment
DEBUG [localhost-startStop-2] - Adding [systemProperties] PropertySource with lowest search precedence
DEBUG [localhost-startStop-2] - Adding [systemEnvironment] PropertySource with lowest search precedence
DEBUG [localhost-startStop-2] - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
DEBUG [localhost-startStop-2] - Resolved location pattern [/WEB-INF/classes/spring/applicationContext-*.xml] to resources [ServletContext resource [/WEB-INF/classes/spring/applicationContext-dao.xml], ServletContext resource [/WEB-INF/classes/spring/applicationContext-service.xml], ServletContext resource [/WEB-INF/classes/spring/applicationContext-transaction.xml]]
 INFO [localhost-startStop-2] - Loading XML bean definitions from ServletContext resource [/WEB-INF/classes/spring/applicationContext-dao.xml]
DEBUG [localhost-startStop-2] - Using JAXP provider [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl]
DEBUG [localhost-startStop-2] - Loading schema mappings from [META-INF/spring.schemas]
DEBUG [localhost-startStop-2] - Loaded schema mappings: {http://mybatis.org/schema/mybatis-spring-1.2.xsd=org/mybatis/spring/config/mybatis-spring-1.2.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/util/spring-util.xsd=org/springframework/beans/factory/xml/spring-util-3.2.xsd, http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd=org/springframework/web/servlet/config/spring-mvc-3.1.xsd, http://www.springframework.org/schema/task/spring-task.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/cache/spring-cache.xsd=org/springframework/cache/config/spring-cache-3.2.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/task/spring-task-3.1.xsd=org/springframework/scheduling/config/spring-task-3.1.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/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.2.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/jdbc/spring-jdbc-3.1.xsd=org/springframework/jdbc/config/spring-jdbc-3.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/jee/spring-jee-3.1.xsd=org/springframework/ejb/config/spring-jee-3.1.xsd, http://www.springframework.org/schema/aop/spring-aop.xsd=org/springframework/aop/config/spring-aop-3.2.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/context/spring-context-3.2.xsd=org/springframework/context/config/spring-context-3.2.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/util/spring-util-3.2.xsd=org/springframework/beans/factory/xml/spring-util-3.2.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/lang/spring-lang-3.2.xsd=org/springframework/scripting/config/spring-lang-3.2.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/cache/spring-cache-3.2.xsd=org/springframework/cache/config/spring-cache-3.2.xsd, http://www.springframework.org/schema/task/spring-task-3.0.xsd=org/springframework/scheduling/config/spring-task-3.0.xsd, http://mybatis.org/schema/mybatis-spring.xsd=org/mybatis/spring/config/mybatis-spring-1.2.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.2.xsd, http://www.springframework.org/schema/lang/spring-lang.xsd=org/springframework/scripting/config/spring-lang-3.2.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-2.5.xsd=org/springframework/scripting/config/spring-lang-2.5.xsd, http://www.springframework.org/schema/aop/spring-aop-3.2.xsd=org/springframework/aop/config/spring-aop-3.2.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/tx/spring-tx-3.1.xsd=org/springframework/transaction/config/spring-tx-3.1.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-3.1.xsd=org/springframework/context/config/spring-context-3.1.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/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/context/spring-context.xsd=org/springframework/context/config/spring-context-3.2.xsd, http://www.springframework.org/schema/jee/spring-jee.xsd=org/springframework/ejb/config/spring-jee-3.2.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.2.xsd, http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd=org/springframework/web/servlet/config/spring-mvc-3.2.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc.xsd=org/springframework/jdbc/config/spring-jdbc-3.2.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/tx/spring-tx-2.0.xsd=org/springframework/transaction/config/spring-tx-2.0.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/task/spring-task-3.2.xsd=org/springframework/scheduling/config/spring-task-3.2.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.2.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/jdbc/spring-jdbc-3.2.xsd=org/springframework/jdbc/config/spring-jdbc-3.2.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/beans/spring-beans-2.5.xsd=org/springframework/beans/factory/xml/spring-beans-2.5.xsd}
DEBUG [localhost-startStop-2] - Found XML schema [http://www.springframework.org/schema/beans/spring-beans-3.2.xsd] in classpath: org/springframework/beans/factory/xml/spring-beans-3.2.xsd
DEBUG [localhost-startStop-2] - Found XML schema [http://www.springframework.org/schema/context/spring-context-3.2.xsd] in classpath: org/springframework/context/config/spring-context-3.2.xsd
DEBUG [localhost-startStop-2] - Found XML schema [http://www.springframework.org/schema/tool/spring-tool-3.2.xsd] in classpath: org/springframework/beans/factory/xml/spring-tool-3.2.xsd
DEBUG [localhost-startStop-2] - Loading bean definitions
DEBUG [localhost-startStop-2] - 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/jdbc=org.springframework.jdbc.config.JdbcNamespaceHandler, http://www.springframework.org/schema/cache=org.springframework.cache.config.CacheNamespaceHandler, http://mybatis.org/schema/mybatis-spring=org.mybatis.spring.config.NamespaceHandler, http://www.springframework.org/schema/c=org.springframework.beans.factory.xml.SimpleConstructorNamespaceHandler, 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}
DEBUG [localhost-startStop-2] - Neither XML 'id' nor 'name' specified - using generated bean name [org.mybatis.spring.mapper.MapperScannerConfigurer#0]
 INFO [localhost-startStop-2] - Loading XML bean definitions from ServletContext resource [/WEB-INF/classes/spring/applicationContext-service.xml]
DEBUG [localhost-startStop-2] - Using JAXP provider [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl]
DEBUG [localhost-startStop-2] - Found XML schema [http://www.springframework.org/schema/beans/spring-beans-3.2.xsd] in classpath: org/springframework/beans/factory/xml/spring-beans-3.2.xsd
DEBUG [localhost-startStop-2] - Loading bean definitions
 INFO [localhost-startStop-2] - Loading XML bean definitions from ServletContext resource [/WEB-INF/classes/spring/applicationContext-transaction.xml]
DEBUG [localhost-startStop-2] - Using JAXP provider [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl]
DEBUG [localhost-startStop-2] - Found XML schema [http://www.springframework.org/schema/beans/spring-beans-3.2.xsd] in classpath: org/springframework/beans/factory/xml/spring-beans-3.2.xsd
DEBUG [localhost-startStop-2] - Found XML schema [http://www.springframework.org/schema/tx/spring-tx-3.2.xsd] in classpath: org/springframework/transaction/config/spring-tx-3.2.xsd
DEBUG [localhost-startStop-2] - Found XML schema [http://www.springframework.org/schema/tool/spring-tool-3.2.xsd] in classpath: org/springframework/beans/factory/xml/spring-tool-3.2.xsd
DEBUG [localhost-startStop-2] - Found XML schema [http://www.springframework.org/schema/aop/spring-aop-3.2.xsd] in classpath: org/springframework/aop/config/spring-aop-3.2.xsd
DEBUG [localhost-startStop-2] - Loading bean definitions
DEBUG [localhost-startStop-2] - Loaded 9 bean definitions from location pattern [/WEB-INF/classes/spring/applicationContext-*.xml]
DEBUG [localhost-startStop-2] - Bean factory for Root WebApplicationContext: org.springframework.beans.factory.support.DefaultListableBeanFactory@7ccd886f: defining beans [org.springframework.context.support.PropertySourcesPlaceholderConfigurer#0,dataSource,sqlSessionFactory,org.mybatis.spring.mapper.MapperScannerConfigurer#0,itemsService,transactionManager,txAdvice,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0]; root of factory hierarchy
DEBUG [localhost-startStop-2] - Creating shared instance of singleton bean 'org.mybatis.spring.mapper.MapperScannerConfigurer#0'
DEBUG [localhost-startStop-2] - Creating instance of bean 'org.mybatis.spring.mapper.MapperScannerConfigurer#0'
DEBUG [localhost-startStop-2] - Eagerly caching bean 'org.mybatis.spring.mapper.MapperScannerConfigurer#0' to allow for resolving potential circular references
DEBUG [localhost-startStop-2] - Invoking afterPropertiesSet() on bean with name 'org.mybatis.spring.mapper.MapperScannerConfigurer#0'
DEBUG [localhost-startStop-2] - Finished creating instance of bean 'org.mybatis.spring.mapper.MapperScannerConfigurer#0'
DEBUG [localhost-startStop-2] - Initializing new StandardEnvironment
DEBUG [localhost-startStop-2] - Adding [systemProperties] PropertySource with lowest search precedence
DEBUG [localhost-startStop-2] - Adding [systemEnvironment] PropertySource with lowest search precedence
DEBUG [localhost-startStop-2] - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
DEBUG [localhost-startStop-2] - Looking for matching resources in directory tree [D:\apache-tomcat-8.5.45-windows-x64\apache-tomcat-8.5.45\webapps\springmvc_mybatis\WEB-INF\classes\com\hl\ssm\mapper]
DEBUG [localhost-startStop-2] - Searching directory [D:\apache-tomcat-8.5.45-windows-x64\apache-tomcat-8.5.45\webapps\springmvc_mybatis\WEB-INF\classes\com\hl\ssm\mapper] for files matching pattern [D:/apache-tomcat-8.5.45-windows-x64/apache-tomcat-8.5.45/webapps/springmvc_mybatis/WEB-INF/classes/com/hl/ssm/mapper/**/*.class]
DEBUG [localhost-startStop-2] - Resolved location pattern [classpath*:com/hl/ssm/mapper/**/*.class] to resources [file [D:\apache-tomcat-8.5.45-windows-x64\apache-tomcat-8.5.45\webapps\springmvc_mybatis\WEB-INF\classes\com\hl\ssm\mapper\ItemsMapperCustom.class], file [D:\apache-tomcat-8.5.45-windows-x64\apache-tomcat-8.5.45\webapps\springmvc_mybatis\WEB-INF\classes\com\hl\ssm\mapper\UserMapper.class]]
DEBUG [localhost-startStop-2] - Identified candidate component class: file [D:\apache-tomcat-8.5.45-windows-x64\apache-tomcat-8.5.45\webapps\springmvc_mybatis\WEB-INF\classes\com\hl\ssm\mapper\ItemsMapperCustom.class]
DEBUG [localhost-startStop-2] - Identified candidate component class: file [D:\apache-tomcat-8.5.45-windows-x64\apache-tomcat-8.5.45\webapps\springmvc_mybatis\WEB-INF\classes\com\hl\ssm\mapper\UserMapper.class]
DEBUG [localhost-startStop-2] - Creating MapperFactoryBean with name 'itemsMapperCustom' and 'com.hl.ssm.mapper.ItemsMapperCustom' mapperInterface
DEBUG [localhost-startStop-2] - Creating MapperFactoryBean with name 'userMapper' and 'com.hl.ssm.mapper.UserMapper' mapperInterface
DEBUG [localhost-startStop-2] - Creating shared instance of singleton bean 'org.springframework.context.support.PropertySourcesPlaceholderConfigurer#0'
DEBUG [localhost-startStop-2] - Creating instance of bean 'org.springframework.context.support.PropertySourcesPlaceholderConfigurer#0'
DEBUG [localhost-startStop-2] - Eagerly caching bean 'org.springframework.context.support.PropertySourcesPlaceholderConfigurer#0' to allow for resolving potential circular references
DEBUG [localhost-startStop-2] - Finished creating instance of bean 'org.springframework.context.support.PropertySourcesPlaceholderConfigurer#0'
DEBUG [localhost-startStop-2] - Adding [environmentProperties] PropertySource with lowest search precedence
 INFO [localhost-startStop-2] - Loading properties file from class path resource [db.properties]
DEBUG [localhost-startStop-2] - Adding [localProperties] PropertySource with lowest search precedence
DEBUG [localhost-startStop-2] - Searching for key 'jdbc.driver' in [environmentProperties]
DEBUG [localhost-startStop-2] - Searching for key 'jdbc.driver' in [servletConfigInitParams]
DEBUG [localhost-startStop-2] - Searching for key 'jdbc.driver' in [servletContextInitParams]
DEBUG [localhost-startStop-2] - Searching for key 'jdbc.driver' in [jndiProperties]
DEBUG [localhost-startStop-2] - Looking up JNDI object with name [java:comp/env/jdbc.driver]
DEBUG [localhost-startStop-2] - Converted JNDI name [java:comp/env/jdbc.driver] not found - trying original name [jdbc.driver]. javax.naming.NameNotFoundException: Name [jdbc.driver] is not bound in this Context. Unable to find [jdbc.driver].
DEBUG [localhost-startStop-2] - Looking up JNDI object with name [jdbc.driver]
DEBUG [localhost-startStop-2] - JNDI lookup for name [jdbc.driver] threw NamingException with message: Name [jdbc.driver] is not bound in this Context. Unable to find [jdbc.driver].. Returning null.
DEBUG [localhost-startStop-2] - Searching for key 'jdbc.driver' in [systemProperties]
DEBUG [localhost-startStop-2] - Searching for key 'jdbc.driver' in [systemEnvironment]
DEBUG [localhost-startStop-2] - Could not find key 'jdbc.driver' in any property source. Returning [null]
DEBUG [localhost-startStop-2] - Searching for key 'jdbc.driver' in [localProperties]
DEBUG [localhost-startStop-2] - Found key 'jdbc.driver' in [localProperties] with type [String] and value 'com.mysql.jdbc.Driver'
DEBUG [localhost-startStop-2] - Searching for key 'jdbc.url' in [environmentProperties]
DEBUG [localhost-startStop-2] - Searching for key 'jdbc.url' in [servletConfigInitParams]
DEBUG [localhost-startStop-2] - Searching for key 'jdbc.url' in [servletContextInitParams]
DEBUG [localhost-startStop-2] - Searching for key 'jdbc.url' in [jndiProperties]
DEBUG [localhost-startStop-2] - Looking up JNDI object with name [java:comp/env/jdbc.url]
DEBUG [localhost-startStop-2] - Converted JNDI name [java:comp/env/jdbc.url] not found - trying original name [jdbc.url]. javax.naming.NameNotFoundException: Name [jdbc.url] is not bound in this Context. Unable to find [jdbc.url].
DEBUG [localhost-startStop-2] - Looking up JNDI object with name [jdbc.url]
DEBUG [localhost-startStop-2] - JNDI lookup for name [jdbc.url] threw NamingException with message: Name [jdbc.url] is not bound in this Context. Unable to find [jdbc.url].. Returning null.
DEBUG [localhost-startStop-2] - Searching for key 'jdbc.url' in [systemProperties]
DEBUG [localhost-startStop-2] - Searching for key 'jdbc.url' in [systemEnvironment]
DEBUG [localhost-startStop-2] - Could not find key 'jdbc.url' in any property source. Returning [null]
DEBUG [localhost-startStop-2] - Searching for key 'jdbc.url' in [localProperties]
DEBUG [localhost-startStop-2] - Found key 'jdbc.url' in [localProperties] with type [String] and value 'jdbc:mysql://localhost:3306/mybatis'
DEBUG [localhost-startStop-2] - Searching for key 'jdbc.username' in [environmentProperties]
DEBUG [localhost-startStop-2] - Searching for key 'jdbc.username' in [servletConfigInitParams]
DEBUG [localhost-startStop-2] - Searching for key 'jdbc.username' in [servletContextInitParams]
DEBUG [localhost-startStop-2] - Searching for key 'jdbc.username' in [jndiProperties]
DEBUG [localhost-startStop-2] - Looking up JNDI object with name [java:comp/env/jdbc.username]
DEBUG [localhost-startStop-2] - Converted JNDI name [java:comp/env/jdbc.username] not found - trying original name [jdbc.username]. javax.naming.NameNotFoundException: Name [jdbc.username] is not bound in this Context. Unable to find [jdbc.username].
DEBUG [localhost-startStop-2] - Looking up JNDI object with name [jdbc.username]
DEBUG [localhost-startStop-2] - JNDI lookup for name [jdbc.username] threw NamingException with message: Name [jdbc.username] is not bound in this Context. Unable to find [jdbc.username].. Returning null.
DEBUG [localhost-startStop-2] - Searching for key 'jdbc.username' in [systemProperties]
DEBUG [localhost-startStop-2] - Searching for key 'jdbc.username' in [systemEnvironment]
DEBUG [localhost-startStop-2] - Could not find key 'jdbc.username' in any property source. Returning [null]
DEBUG [localhost-startStop-2] - Searching for key 'jdbc.username' in [localProperties]
DEBUG [localhost-startStop-2] - Found key 'jdbc.username' in [localProperties] with type [String] and value 'root'
DEBUG [localhost-startStop-2] - Searching for key 'jdbc.password' in [environmentProperties]
DEBUG [localhost-startStop-2] - Searching for key 'jdbc.password' in [servletConfigInitParams]
DEBUG [localhost-startStop-2] - Searching for key 'jdbc.password' in [servletContextInitParams]
DEBUG [localhost-startStop-2] - Searching for key 'jdbc.password' in [jndiProperties]
DEBUG [localhost-startStop-2] - Looking up JNDI object with name [java:comp/env/jdbc.password]
DEBUG [localhost-startStop-2] - Converted JNDI name [java:comp/env/jdbc.password] not found - trying original name [jdbc.password]. javax.naming.NameNotFoundException: Name [jdbc.password] is not bound in this Context. Unable to find [jdbc.password].
DEBUG [localhost-startStop-2] - Looking up JNDI object with name [jdbc.password]
DEBUG [localhost-startStop-2] - JNDI lookup for name [jdbc.password] threw NamingException with message: Name [jdbc.password] is not bound in this Context. Unable to find [jdbc.password].. Returning null.
DEBUG [localhost-startStop-2] - Searching for key 'jdbc.password' in [systemProperties]
DEBUG [localhost-startStop-2] - Searching for key 'jdbc.password' in [systemEnvironment]
DEBUG [localhost-startStop-2] - Could not find key 'jdbc.password' in any property source. Returning [null]
DEBUG [localhost-startStop-2] - Searching for key 'jdbc.password' in [localProperties]
DEBUG [localhost-startStop-2] - Found key 'jdbc.password' in [localProperties] with type [String] and value '123'
DEBUG [localhost-startStop-2] - Creating shared instance of singleton bean 'org.springframework.context.annotation.internalConfigurationAnnotationProcessor'
DEBUG [localhost-startStop-2] - Creating instance of bean 'org.springframework.context.annotation.internalConfigurationAnnotationProcessor'
DEBUG [localhost-startStop-2] - Eagerly caching bean 'org.springframework.context.annotation.internalConfigurationAnnotationProcessor' to allow for resolving potential circular references
DEBUG [localhost-startStop-2] - Finished creating instance of bean 'org.springframework.context.annotation.internalConfigurationAnnotationProcessor'
DEBUG [localhost-startStop-2] - Creating shared instance of singleton bean 'org.springframework.context.annotation.internalAutowiredAnnotationProcessor'
DEBUG [localhost-startStop-2] - Creating instance of bean 'org.springframework.context.annotation.internalAutowiredAnnotationProcessor'
DEBUG [localhost-startStop-2] - Eagerly caching bean 'org.springframework.context.annotation.internalAutowiredAnnotationProcessor' to allow for resolving potential circular references
DEBUG [localhost-startStop-2] - Finished creating instance of bean 'org.springframework.context.annotation.internalAutowiredAnnotationProcessor'
DEBUG [localhost-startStop-2] - Creating shared instance of singleton bean 'org.springframework.context.annotation.internalRequiredAnnotationProcessor'
DEBUG [localhost-startStop-2] - Creating instance of bean 'org.springframework.context.annotation.internalRequiredAnnotationProcessor'
DEBUG [localhost-startStop-2] - Eagerly caching bean 'org.springframework.context.annotation.internalRequiredAnnotationProcessor' to allow for resolving potential circular references
DEBUG [localhost-startStop-2] - Finished creating instance of bean 'org.springframework.context.annotation.internalRequiredAnnotationProcessor'
DEBUG [localhost-startStop-2] - Creating shared instance of singleton bean 'org.springframework.context.annotation.internalCommonAnnotationProcessor'
DEBUG [localhost-startStop-2] - Creating instance of bean 'org.springframework.context.annotation.internalCommonAnnotationProcessor'
DEBUG [localhost-startStop-2] - Eagerly caching bean 'org.springframework.context.annotation.internalCommonAnnotationProcessor' to allow for resolving potential circular references
DEBUG [localhost-startStop-2] - Finished creating instance of bean 'org.springframework.context.annotation.internalCommonAnnotationProcessor'
DEBUG [localhost-startStop-2] - Creating shared instance of singleton bean 'org.springframework.aop.config.internalAutoProxyCreator'
DEBUG [localhost-startStop-2] - Creating instance of bean 'org.springframework.aop.config.internalAutoProxyCreator'
DEBUG [localhost-startStop-2] - Eagerly caching bean 'org.springframework.aop.config.internalAutoProxyCreator' to allow for resolving potential circular references
DEBUG [localhost-startStop-2] - Finished creating instance of bean 'org.springframework.aop.config.internalAutoProxyCreator'
DEBUG [localhost-startStop-2] - Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@7f0c575f]
DEBUG [localhost-startStop-2] - Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@55fa0faf]
DEBUG [localhost-startStop-2] - Unable to locate ThemeSource with name 'themeSource': using default [org.springframework.ui.context.support.ResourceBundleThemeSource@2ef97caa]
 INFO [localhost-startStop-2] - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@7ccd886f: defining beans [org.springframework.context.support.PropertySourcesPlaceholderConfigurer#0,dataSource,sqlSessionFactory,org.mybatis.spring.mapper.MapperScannerConfigurer#0,itemsService,transactionManager,txAdvice,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,itemsMapperCustom,userMapper,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor]; root of factory hierarchy
DEBUG [localhost-startStop-2] - Returning cached instance of singleton bean 'org.springframework.context.support.PropertySourcesPlaceholderConfigurer#0'
DEBUG [localhost-startStop-2] - Creating shared instance of singleton bean 'dataSource'
DEBUG [localhost-startStop-2] - Creating instance of bean 'dataSource'
DEBUG [localhost-startStop-2] - Creating shared instance of singleton bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0'
DEBUG [localhost-startStop-2] - Creating instance of bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0'
DEBUG [localhost-startStop-2] - Eagerly caching bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0' to allow for resolving potential circular references
DEBUG [localhost-startStop-2] - Creating instance of bean '(inner bean)'
DEBUG [localhost-startStop-2] - Finished creating instance of bean '(inner bean)'
DEBUG [localhost-startStop-2] - Finished creating instance of bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0'
DEBUG [localhost-startStop-2] - Eagerly caching bean 'dataSource' to allow for resolving potential circular references
DEBUG [localhost-startStop-2] - Initializing new StandardEnvironment
DEBUG [localhost-startStop-2] - Adding [systemProperties] PropertySource with lowest search precedence
DEBUG [localhost-startStop-2] - Adding [systemEnvironment] PropertySource with lowest search precedence
DEBUG [localhost-startStop-2] - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
DEBUG [localhost-startStop-2] - Initializing new StandardEnvironment
DEBUG [localhost-startStop-2] - Adding [systemProperties] PropertySource with lowest search precedence
DEBUG [localhost-startStop-2] - Adding [systemEnvironment] PropertySource with lowest search precedence
DEBUG [localhost-startStop-2] - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
DEBUG [localhost-startStop-2] - Initializing new StandardEnvironment
DEBUG [localhost-startStop-2] - Adding [systemProperties] PropertySource with lowest search precedence
DEBUG [localhost-startStop-2] - Adding [systemEnvironment] PropertySource with lowest search precedence
DEBUG [localhost-startStop-2] - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
DEBUG [localhost-startStop-2] - Initializing new StandardEnvironment
DEBUG [localhost-startStop-2] - Adding [systemProperties] PropertySource with lowest search precedence
DEBUG [localhost-startStop-2] - Adding [systemEnvironment] PropertySource with lowest search precedence
DEBUG [localhost-startStop-2] - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
DEBUG [localhost-startStop-2] - Initializing new StandardEnvironment
DEBUG [localhost-startStop-2] - Adding [systemProperties] PropertySource with lowest search precedence
DEBUG [localhost-startStop-2] - Adding [systemEnvironment] PropertySource with lowest search precedence
DEBUG [localhost-startStop-2] - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
DEBUG [localhost-startStop-2] - Returning cached instance of singleton bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0'
DEBUG [localhost-startStop-2] - Returning cached instance of singleton bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0'
DEBUG [localhost-startStop-2] - Finished creating instance of bean 'dataSource'
DEBUG [localhost-startStop-2] - Creating shared instance of singleton bean 'sqlSessionFactory'
DEBUG [localhost-startStop-2] - Creating instance of bean 'sqlSessionFactory'
DEBUG [localhost-startStop-2] - Returning cached instance of singleton bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0'
DEBUG [localhost-startStop-2] - Logging initialized using 'class org.apache.ibatis.logging.slf4j.Slf4jImpl' adapter.
DEBUG [localhost-startStop-2] - Eagerly caching bean 'sqlSessionFactory' to allow for resolving potential circular references
DEBUG [localhost-startStop-2] - Returning cached instance of singleton bean 'dataSource'
DEBUG [localhost-startStop-2] - Invoking afterPropertiesSet() on bean with name 'sqlSessionFactory'
 INFO [localhost-startStop-2] - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@7ccd886f: defining beans [org.springframework.context.support.PropertySourcesPlaceholderConfigurer#0,dataSource,sqlSessionFactory,org.mybatis.spring.mapper.MapperScannerConfigurer#0,itemsService,transactionManager,txAdvice,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,itemsMapperCustom,userMapper,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor]; root of factory hierarchy
DEBUG [localhost-startStop-2] - Invoking destroy method 'close' on bean with name 'dataSource'
DEBUG [localhost-startStop-2] - Retrieved dependent beans for bean '(inner bean)': [org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0]
ERROR [localhost-startStop-2] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in ServletContext resource [/WEB-INF/classes/spring/applicationContext-dao.xml]: Invocation of init method failed; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance.  Cause: org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 6; 不允许有匹配 "[xX][mM][lL]" 的处理指令目标。
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1486)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:589)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
	at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4699)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5165)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1125)
	at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1859)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:744)
Caused by: org.apache.ibatis.builder.BuilderException: Error creating document instance.  Cause: org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 6; 不允许有匹配 "[xX][mM][lL]" 的处理指令目标。
	at org.apache.ibatis.parsing.XPathParser.createDocument(XPathParser.java:256)
	at org.apache.ibatis.parsing.XPathParser.<init>(XPathParser.java:125)
	at org.apache.ibatis.builder.xml.XMLConfigBuilder.<init>(XMLConfigBuilder.java:75)
	at org.mybatis.spring.SqlSessionFactoryBean.buildSqlSessionFactory(SqlSessionFactoryBean.java:358)
	at org.mybatis.spring.SqlSessionFactoryBean.afterPropertiesSet(SqlSessionFactoryBean.java:340)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1545)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1483)
	... 25 more
Caused by: org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 6; 不允许有匹配 "[xX][mM][lL]" 的处理指令目标。
	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:198)
	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177)
	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:441)
	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:368)
	at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1436)
	at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanPIData(XMLScanner.java:723)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanPIData(XMLDocumentFragmentScannerImpl.java:1026)
	at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanPI(XMLScanner.java:691)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:912)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243)
	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:347)
	at org.apache.ibatis.parsing.XPathParser.createDocument(XPathParser.java:254)
	... 31 more
三月 22, 2020 9:20:34 下午 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener]
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in ServletContext resource [/WEB-INF/classes/spring/applicationContext-dao.xml]: Invocation of init method failed; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance.  Cause: org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 6; 不允许有匹配 "[xX][mM][lL]" 的处理指令目标。
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1486)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:589)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
	at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4699)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5165)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1125)
	at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1859)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:744)
Caused by: org.apache.ibatis.builder.BuilderException: Error creating document instance.  Cause: org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 6; 不允许有匹配 "[xX][mM][lL]" 的处理指令目标。
	at org.apache.ibatis.parsing.XPathParser.createDocument(XPathParser.java:256)
	at org.apache.ibatis.parsing.XPathParser.<init>(XPathParser.java:125)
	at org.apache.ibatis.builder.xml.XMLConfigBuilder.<init>(XMLConfigBuilder.java:75)
	at org.mybatis.spring.SqlSessionFactoryBean.buildSqlSessionFactory(SqlSessionFactoryBean.java:358)
	at org.mybatis.spring.SqlSessionFactoryBean.afterPropertiesSet(SqlSessionFactoryBean.java:340)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1545)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1483)
	... 25 more
Caused by: org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 6; 不允许有匹配 "[xX][mM][lL]" 的处理指令目标。
	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:198)
	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177)
	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:441)
	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:368)
	at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1436)
	at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanPIData(XMLScanner.java:723)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanPIData(XMLDocumentFragmentScannerImpl.java:1026)
	at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanPI(XMLScanner.java:691)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:912)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243)
	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:347)
	at org.apache.ibatis.parsing.XPathParser.createDocument(XPathParser.java:254)
	... 31 more
三月 22, 2020 9:20:34 下午 org.apache.catalina.core.ApplicationContext log
信息: Log4jServletContextListener ensuring that Log4j starts up properly.
三月 22, 2020 9:20:34 下午 org.apache.catalina.core.StandardContext startInternal
严重: One or more listeners failed to start. Full details will be found in the appropriate container log file
三月 22, 2020 9:20:34 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/springmvc_mybatis] startup failed due to previous errors
三月 22, 2020 9:20:34 下午 org.apache.catalina.core.ApplicationContext log
信息: Log4jServletContextListener ensuring that Log4j shuts down properly.
三月 22, 2020 9:20:34 下午 org.apache.catalina.core.ApplicationContext log
信息: Removing LoggerContext for [springmvc_mybatis].
三月 22, 2020 9:20:34 下午 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
三月 22, 2020 9:20:34 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory [D:\apache-tomcat-8.5.45-windows-x64\apache-tomcat-8.5.45\webapps\springmvc_mybatis] has finished in [34,523] ms

spring配置文件dao:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc="http://www.springframework.org/schema/mvc"
	xmlns:context="http://www.springframework.org/schema/context"
	xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx"
	xsi:schemaLocation="http://www.springframework.org/schema/beans 
		http://www.springframework.org/schema/beans/spring-beans-3.2.xsd 
		http://www.springframework.org/schema/mvc 
		http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd 
		http://www.springframework.org/schema/context 
		http://www.springframework.org/schema/context/spring-context-3.2.xsd 
		http://www.springframework.org/schema/aop 
		http://www.springframework.org/schema/aop/spring-aop-3.2.xsd 
		http://www.springframework.org/schema/tx 
		http://www.springframework.org/schema/tx/spring-tx-3.2.xsd ">
		
		
<!-- 加载db.properties中内容,中的key'命名要有特殊性 -->
<context:property-placeholder location="classpath:db.properties"/>
		
		
<!-- 配置数据源,dbcp -->		
		<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"
		destroy-method="close">
		<property name="driverClassName" value="${jdbc.driver}" />
		<property name="url" value="${jdbc.url}" />
		<property name="username" value="${jdbc.username}" />
		<property name="password" value="${jdbc.password}" />
		<property name="maxActive" value="30" />
		<property name="maxIdle" value="5" />
	</bean>
	<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
		<property name="dataSource" ref="dataSource"></property>
		<!-- 加载mybatis的全局配置文件 -->
		<property name="configLocation" value="classpath:mybatis/sqlMapConfig.xml"/>
	</bean>
	<!-- mapper扫描器 -->
	<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
		<!-- 扫描包路径,如果需要扫描多个包,中间使用半角逗号隔开 -->
		<property name="basePackage" value="com.hl.ssm.mapper"></property>
		<property name="sqlSessionFactoryBeanName" value="sqlSessionFactory" />
	</bean>
</beans>
spring事务:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc="http://www.springframework.org/schema/mvc"
	xmlns:context="http://www.springframework.org/schema/context"
	xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx"
	xsi:schemaLocation="http://www.springframework.org/schema/beans 
		http://www.springframework.org/schema/beans/spring-beans-3.2.xsd 
		http://www.springframework.org/schema/mvc 
		http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd 
		http://www.springframework.org/schema/context 
		http://www.springframework.org/schema/context/spring-context-3.2.xsd 
		http://www.springframework.org/schema/aop 
		http://www.springframework.org/schema/aop/spring-aop-3.2.xsd 
		http://www.springframework.org/schema/tx 
		http://www.springframework.org/schema/tx/spring-tx-3.2.xsd ">
<!-- 事务管理器
对mybatis操作数据库事务控制,spring使用jdbc控制类 -->		
	<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
		<!-- 数据源
		DataSource在applicationContext-dao.xml中配置了 -->
		<property name="dataSource" ref="dataSource"/>
	</bean>
	<tx:advice id="txAdvice" transaction-manager="transactionManager">
	<!--通知 -->
		<tx:attributes>
		<!-- 传播行为 -->
			<tx:method name="save*" propagation="REQUIRED"/>
			<tx:method name="delete*" propagation="REQUIRED"/>
			<tx:method name="insert*" propagation="REQUIRED"/>
			<tx:method name="update*" propagation="REQUIRED"/>
			<tx:method name="find*" propagation="SUPPORTS" read-only="true"/>
			<tx:method name="get*" propagation="SUPPORTS" read-only="true"/>
			<tx:method name="select*" propagation="SUPPORTS" read-only="true"/>
		</tx:attributes>
	
	</tx:advice>
	<!-- 配置aop -->
	<aop:config>
		<aop:advisor advice-ref="txAdvice" pointcut="execution(* com.hl.ssm.service.impl.*.*(..))"/>
	</aop:config>

</beans>

web.xml :

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
  <display-name>springmvc_mybatis</display-name>
   	<!-- 加载spring容器 -->
	<context-param>
		<param-name>contextConfigLocation</param-name>
		<param-value>/WEB-INF/classes/spring/applicationContext-*.xml</param-value>
	</context-param>
	<listener>
		<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
	</listener>
   
    <!-- 前端控制器 -->
  <servlet>
  	<servlet-name>springmvc</servlet-name>
  	<servlet-class>org.springframework.web.servlet.DispatcherServlet </servlet-class>
  	<init-param>
  	<!-- contextConfigLocation配置springmvc加载的配置文件(配置处理器映射器、适配器等等)
  	如果不配置contextConfigLocation,默认加载的是/WEB-INF/servlet名称-serlvet.xml(springmvc-servlet.xml)
  	 -->	
  		<param-name>contextConfigLocation</param-name>
  		<param-value>classpath:spring/springmvc.xml</param-value>
  	</init-param>
  	
  </servlet>
  <servlet-mapping>
  	<servlet-name>springmvc</servlet-name>
  	<!-- 
  	第一种:*.action,访问以.action结尾 由DispatcherServlet进行解析
  	第二种:/,所以访问的地址都由DispatcherServlet进行解析,对于静态文件的解析需要配置不让DispatcherServlet进行解析
  	使用此种方式可以实现 RESTful风格的url
  	第三种:/*,这样配置不对,使用这种配置,最终要转发到一个jsp页面时,
  	仍然会由DispatcherServlet解析jsp地址,不能根据jsp页面找到handler,会报错。
  	 -->
  	<url-pattern>*.action</url-pattern>
  </servlet-mapping>
  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>default.html</welcome-file>
    <welcome-file>default.htm</welcome-file>
    <welcome-file>default.jsp</welcome-file>
  </welcome-file-list>
</web-app>

![image|690x29] (upload://2v8wnggnzffW6aLiani3u05DVha.png)

  1. ### 这个是mapper.xml
  2. <?xml version="1.0" encoding="UTF-8" ?><?xml version="1.0" encoding="UTF-8" ?>
  3. <!DOCTYPE mapper
  4. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  5. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  6. <mapper namespace="com.hl.ssm.mapper.ItemsMapperCustom">
  7. <!-- 定义商品查询的sql片段,就是查询条件 -->
  8. <sql id="query_items_where">
  9. <!-- 使用动态sql,通过if判断,满足条件进行sql拼接 -->
  10. <!-- 商品查询条件通过ItemsQueryVo包装对象中itemCustom属性传递 -->
  11. <if test="itemsCustom!=null and itemsCustom!=''">
  12. <if test="itemsCustom.name!=null and itemsCustom.name!=''">
  13. items.name like CONCAT('%', #{itemsCustom.name}, '%')
  14. </if>
  15. </if>
  16. </sql>
  17. <!--
  18. parameterType传入包装对象(包装了查询条件)
  19. resulttype建议使用拓展对象
  20. -->
  21. <!-- 商品列表查询 -->
  22. <select id="findItemsList" parameterType="com.hl.ssm.pojo.ItemsQueryVo" resultType="com.hl.ssm.pojo.ItemsCustom">
  23. select * from items
  24. <where>
  25. <include refid="query_items_where"></include>
  26. </where>
  27. </select>
  28. </mapper>

你这是某个mapper文件不对劲吧?

老哥你这学习一下markdown。:v:

个人感觉有点像web.xml的内的问题,另外mapper.xml已补上

你早要用代码块把代码包裹起来。去看了解一下markdown

你这内容没法看 :sweat_smile:,学一下markdown,然后好好整理一下。我觉得你这个问题不大。