记得添加logging.properties文件,开启info级别
记得添加logging.properties文件,开启info级别
记得添加logging.properties文件,开启info级别
因为idea没主动添加logging.properties文件时,详细信息很有可能不会打印
下面就是我没有主动添加logging.properties文件时的情况。
先贴一下idea的异常
Artifact web:war: Artifact is being deployed, please wait...
16-Dec-2020 22:11:28.828 淇℃伅 [RMI TCP Connection(3)-127.0.0.1] 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.
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/D:/tomcat8.5/webapps/web/WEB-INF/lib/logback-classic-1.1.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/D:/tomcat8.5/webapps/web/WEB-INF/lib/slf4j-log4j12-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
22:11:30.347 [RMI TCP Connection(3)-127.0.0.1] DEBUG org.apache.ibatis.logging.LogFactory - Logging initialized using 'class org.apache.ibatis.logging.slf4j.Slf4jImpl' adapter.
22:11:30.562 [RMI TCP Connection(3)-127.0.0.1] DEBUG o.m.spring.SqlSessionFactoryBean - Property 'configuration' or 'configLocation' not specified, using default MyBatis Configuration
22:11:30.658 [RMI TCP Connection(3)-127.0.0.1] DEBUG c.b.m.toolkit.GlobalConfigUtils - DeBug: MyBatis Plus Global configuration Initializing !
22:11:30.668 [RMI TCP Connection(3)-127.0.0.1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.baomidou.mybatisplus.mapper.SqlRunner.SelectList
22:11:30.668 [RMI TCP Connection(3)-127.0.0.1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.baomidou.mybatisplus.mapper.SqlRunner.SelectObjs
22:11:30.669 [RMI TCP Connection(3)-127.0.0.1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.baomidou.mybatisplus.mapper.SqlRunner.Insert
22:11:30.669 [RMI TCP Connection(3)-127.0.0.1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.baomidou.mybatisplus.mapper.SqlRunner.Update
22:11:30.669 [RMI TCP Connection(3)-127.0.0.1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.baomidou.mybatisplus.mapper.SqlRunner.Delete
22:11:30.669 [RMI TCP Connection(3)-127.0.0.1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.baomidou.mybatisplus.mapper.SqlRunner.Count
22:11:30.669 [RMI TCP Connection(3)-127.0.0.1] DEBUG c.b.mybatisplus.MybatisConfiguration - Mybatis-plus init success.
22:11:30.670 [RMI TCP Connection(3)-127.0.0.1] DEBUG o.m.spring.SqlSessionFactoryBean - Registered plugin: 'com.baomidou.mybatisplus.plugins.PaginationInterceptor@2887c2e7'
Wed Dec 16 22:11:30 CST 2020 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Wed Dec 16 22:11:30 CST 2020 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
16-Dec-2020 22:11:31.069 涓ラ噸 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
16-Dec-2020 22:11:31.073 涓ラ噸 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [/web] startup failed due to previous errors
16-Dec-2020 22:11:31.089 璀﹀憡 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [web] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
[2020-12-16 10:11:31,108] Artifact web:war: Error during artifact deployment. See server log for details.
16-Dec-2020 22:11:33.951 淇℃伅 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [D:\tomcat8.5\webapps\manager]
16-Dec-2020 22:11:33.995 淇℃伅 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [D:\tomcat8.5\webapps\manager] has finished in [43] ms
这个异常里面我能找到的信息只有下面这个,意思是运行失败了,让我自己看日志详情。于是我分析了上面的日志,感觉一点有用的信息都没有
[2020-12-16 10:11:31,108] Artifact web:war: Error during artifact deployment. See server log for details.
于是我用eclipse打开这个项目,然后报了以下的异常信息
十二月 16, 2020 10:22:29 下午 org.apache.catalina.startup.SetAllPropertiesRule begin
警告: [SetAllPropertiesRule]{Server/Service/Connector/SSLHostConfig/Certificate} Setting property 'ertificateKeystoreType' to 'PKCS12' did not find a matching property.
十二月 16, 2020 10:22:29 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version: Apache Tomcat/8.5.41
十二月 16, 2020 10:22:29 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built: May 4 2019 09:17:16 UTC
十二月 16, 2020 10:22:29 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number: 8.5.41.0
十二月 16, 2020 10:22:29 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name: Windows 10
十二月 16, 2020 10:22:29 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version: 10.0
十二月 16, 2020 10:22:29 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture: amd64
十二月 16, 2020 10:22:29 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home: C:\Program Files\Java\jdk1.8.0_192\jre
十二月 16, 2020 10:22:29 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version: 1.8.0_192-b12
十二月 16, 2020 10:22:29 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor: Oracle Corporation
十二月 16, 2020 10:22:29 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE: D:\company-work\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
十二月 16, 2020 10:22:29 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME: D:\Tomcat 8.5_TestTomcat8
十二月 16, 2020 10:22:29 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=D:\company-work\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
十二月 16, 2020 10:22:29 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=D:\Tomcat 8.5_TestTomcat8
十二月 16, 2020 10:22:29 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dwtp.deploy=D:\company-work\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
十二月 16, 2020 10:22:29 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=D:\Tomcat 8.5_TestTomcat8\endorsed
十二月 16, 2020 10:22:29 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dfile.encoding=GBK
十二月 16, 2020 10:22:29 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:\Program Files\Java\jdk1.8.0_192\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;D:\;C:\Program Files\Java\jdk1.8.0_192\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.1\libnvvp;D:\SDK1.8\bin;D:\SDK1.8\bin\3rdparty;D:\SDK1.8\apps;D:\SDK1.8\apps\3rdparty;D:\SDK1.8\deps\opencv\x64\vc14\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\dotnet\;"D:\apache-apollo-1.7.1\bin;";D:\doxygen\bin;D:\cmake-3.11.3-win64-x64\bin;D:\msys64\usr\bin;D:\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\Hostx64\x64;D:\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin;E:\python;D:\apache-maven-3.5.4\bin;C:\opencv\build\x64\vc14\bin;C:\opencv\build\x64\vc14\lib;C:\Program Files (x86)\STMicroelectronics\STM32 ST-LINK Utility\ST-LINK Utility;E:\python\Scripts;D:\Program Files\Mozilla Firefox;D:\Gradle\gradle-6.1.1\bin;D:\ffmpeg-20181118-8f875a9-win64-static\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;d:\Microsoft SQL Server\x86\100\Tools\Binn\;d:\Microsoft SQL Server\100\Tools\Binn\;d:\Microsoft SQL Server\100\DTS\Binn\;d:\Microsoft SQL Server\x86\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;d:\Microsoft SQL Server\x86\100\DTS\Binn\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;D:\Git\cmd;C:\Program Files (x86)\Subversion\bin;E:\TortoiseSVN\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;D:\Redis\;C:\Program Files\Java\db-derby-10.14.2.0-bin\bin;D:\nodejs\;D:\nodejs\node_global;C:\Program Files\Java\jdk1.8.0_192\bin;D:\msys64\usr\bin;D:\cmake-3.11.3-win64-x64\bin;C:\Users\hasee\AppData\Local\Microsoft\WindowsApps;"D:\apache-apollo-1.7.1\bin;";D:\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\Hostx64\x64;D:\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin;D:\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.exe;E:\python;D:\apache-maven-3.6.0\bin;C:\opencv\x64\vc14\bin;*\opencv\build\x64\vc14\bin;C:\opencv\x64\vc14\lib;*\opencv\build\x64\vc14\lib;E:\python\Scripts;D:\Program Files\Mozilla Firefox;D:\Gradle\gradle-6.1.1\bin;D:\PyCharm 2019.1.3\bin;D:\Docker Toolbox;C:\Users\hasee\AppData\Local\Microsoft\WindowsApps;C:\Users\hasee\AppData\Local\BypassRuntm;C:\Program Files\Java\db-derby-10.14.2.0-bin\bin;C:\Users\hasee\AppData\Roaming\npm;C:\Users\hasee\.dotnet\tools;.]
十二月 16, 2020 10:22:29 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-nio-8080"]
十二月 16, 2020 10:22:30 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
信息: Using a shared selector for servlet write/read
十二月 16, 2020 10:22:30 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["https-jsse-nio-8443"]
十二月 16, 2020 10:22:31 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
信息: Using a shared selector for servlet write/read
十二月 16, 2020 10:22:31 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-nio-8009"]
十二月 16, 2020 10:22:31 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
信息: Using a shared selector for servlet write/read
十二月 16, 2020 10:22:31 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 3759 ms
十二月 16, 2020 10:22:31 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service [Catalina]
十二月 16, 2020 10:22:31 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/8.5.41
十二月 16, 2020 10:22:32 下午 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.
十二月 16, 2020 10:22:44 下午 org.apache.catalina.core.ApplicationContext log
信息: No Spring WebApplicationInitializer types detected on classpath
十二月 16, 2020 10:22:44 下午 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.
十二月 16, 2020 10:22:45 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/D:/company-work/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/web/WEB-INF/lib/logback-classic-1.1.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/D:/company-work/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/web/WEB-INF/lib/slf4j-log4j12-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
22:22:48.572 [localhost-startStop-1] DEBUG org.apache.ibatis.logging.LogFactory - Logging initialized using 'class org.apache.ibatis.logging.slf4j.Slf4jImpl' adapter.
22:22:48.798 [localhost-startStop-1] DEBUG o.m.spring.SqlSessionFactoryBean - Property 'configuration' or 'configLocation' not specified, using default MyBatis Configuration
22:22:48.917 [localhost-startStop-1] DEBUG c.b.m.toolkit.GlobalConfigUtils - DeBug: MyBatis Plus Global configuration Initializing !
22:22:48.938 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.baomidou.mybatisplus.mapper.SqlRunner.SelectList
22:22:48.939 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.baomidou.mybatisplus.mapper.SqlRunner.SelectObjs
22:22:48.940 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.baomidou.mybatisplus.mapper.SqlRunner.Insert
22:22:48.940 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.baomidou.mybatisplus.mapper.SqlRunner.Update
22:22:48.940 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.baomidou.mybatisplus.mapper.SqlRunner.Delete
22:22:48.941 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.baomidou.mybatisplus.mapper.SqlRunner.Count
22:22:48.942 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - Mybatis-plus init success.
22:22:48.942 [localhost-startStop-1] DEBUG o.m.spring.SqlSessionFactoryBean - Registered plugin: 'com.baomidou.mybatisplus.plugins.PaginationInterceptor@4c377469'
Wed Dec 16 22:22:49 CST 2020 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Wed Dec 16 22:22:49 CST 2020 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
22:22:50.108 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.BookstoreMapper.deleteById
22:22:50.119 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.BookstoreMapper.deleteBatchIds
22:22:50.123 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.BookstoreMapper.updateById
22:22:50.125 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.BookstoreMapper.updateAllColumnById
22:22:50.125 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.BookstoreMapper.selectById
22:22:50.127 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.BookstoreMapper.selectBatchIds
22:22:50.132 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.BookstoreMapper.insert
22:22:50.134 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.BookstoreMapper.insertAllColumn
22:22:50.138 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.BookstoreMapper.delete
22:22:50.141 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.BookstoreMapper.deleteByMap
22:22:50.146 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.BookstoreMapper.update
22:22:50.150 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.BookstoreMapper.selectByMap
22:22:50.155 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.BookstoreMapper.selectOne
22:22:50.167 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.BookstoreMapper.selectCount
22:22:50.172 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.BookstoreMapper.selectList
22:22:50.175 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.BookstoreMapper.selectPage
22:22:50.178 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.BookstoreMapper.selectMaps
22:22:50.182 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.BookstoreMapper.selectMapsPage
22:22:50.184 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.BookstoreMapper.selectObjs
22:22:50.186 [localhost-startStop-1] DEBUG o.m.spring.SqlSessionFactoryBean - Parsed mapper file: 'file [D:\company-work\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\web\WEB-INF\classes\mapping\BookstoreMapper.xml]'
22:22:50.342 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.UserMapper.deleteById
22:22:50.344 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.UserMapper.deleteBatchIds
22:22:50.346 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.UserMapper.updateById
22:22:50.348 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.UserMapper.updateAllColumnById
22:22:50.349 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.UserMapper.selectById
22:22:50.351 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.UserMapper.selectBatchIds
22:22:50.353 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.UserMapper.insert
22:22:50.354 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.UserMapper.insertAllColumn
22:22:50.356 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.UserMapper.delete
22:22:50.358 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.UserMapper.deleteByMap
22:22:50.360 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.UserMapper.update
22:22:50.362 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.UserMapper.selectByMap
22:22:50.365 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.UserMapper.selectOne
22:22:50.367 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.UserMapper.selectCount
22:22:50.369 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.UserMapper.selectList
22:22:50.371 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.UserMapper.selectPage
22:22:50.373 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.UserMapper.selectMaps
22:22:50.374 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.UserMapper.selectMapsPage
22:22:50.376 [localhost-startStop-1] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.web.dao.UserMapper.selectObjs
22:22:50.377 [localhost-startStop-1] DEBUG o.m.spring.SqlSessionFactoryBean - Parsed mapper file: 'file [D:\company-work\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\web\WEB-INF\classes\mapping\UserMapper.xml]'
十二月 16, 2020 10:22:50 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring FrameworkServlet 'mvc'
十二月 16, 2020 10:22:52 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-nio-8080"]
十二月 16, 2020 10:22:52 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["https-jsse-nio-8443"]
十二月 16, 2020 10:22:52 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-nio-8009"]
十二月 16, 2020 10:22:52 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 21058 ms
十二月 16, 2020 10:23:03 下午 org.apache.catalina.core.StandardContext reload
信息: Reloading Context with name [/web] has started
十二月 16, 2020 10:23:03 下午 org.apache.catalina.core.ApplicationContext log
信息: Destroying Spring FrameworkServlet 'mvc'
十二月 16, 2020 10:23:03 下午 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
十二月 16, 2020 10:23:03 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
警告: The web application [web] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
十二月 16, 2020 10:23:03 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
警告: The web application [web] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:144)
com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:43)
十二月 16, 2020 10:23:03 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
警告: The web application [web] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
java.lang.Object.wait(Object.java:502)
java.util.TimerThread.mainLoop(Timer.java:526)
java.util.TimerThread.run(Timer.java:505)
十二月 16, 2020 10:23:05 下午 org.apache.catalina.core.ApplicationContext log
信息: No Spring WebApplicationInitializer types detected on classpath
十二月 16, 2020 10:23:05 下午 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.
十二月 16, 2020 10:23:05 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/D:/company-work/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/web/WEB-INF/lib/logback-classic-1.1.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/D:/company-work/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/web/WEB-INF/lib/slf4j-log4j12-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
22:23:06.625 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] DEBUG org.apache.ibatis.logging.LogFactory - Logging initialized using 'class org.apache.ibatis.logging.slf4j.Slf4jImpl' adapter.
22:23:06.848 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] DEBUG o.m.spring.SqlSessionFactoryBean - Property 'configuration' or 'configLocation' not specified, using default MyBatis Configuration
22:23:06.959 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] DEBUG c.b.m.toolkit.GlobalConfigUtils - DeBug: MyBatis Plus Global configuration Initializing !
22:23:06.982 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.baomidou.mybatisplus.mapper.SqlRunner.SelectList
22:23:06.982 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.baomidou.mybatisplus.mapper.SqlRunner.SelectObjs
22:23:06.984 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.baomidou.mybatisplus.mapper.SqlRunner.Insert
22:23:06.984 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.baomidou.mybatisplus.mapper.SqlRunner.Update
22:23:06.984 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.baomidou.mybatisplus.mapper.SqlRunner.Delete
22:23:06.985 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] DEBUG c.b.mybatisplus.MybatisConfiguration - addMappedStatement: com.baomidou.mybatisplus.mapper.SqlRunner.Count
22:23:06.986 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] DEBUG c.b.mybatisplus.MybatisConfiguration - Mybatis-plus init success.
22:23:06.986 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] DEBUG o.m.spring.SqlSessionFactoryBean - Registered plugin: 'com.baomidou.mybatisplus.plugins.PaginationInterceptor@3a388d72'
Wed Dec 16 22:23:07 CST 2020 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Wed Dec 16 22:23:07 CST 2020 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
十二月 16, 2020 10:23:07 下午 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.UnsatisfiedDependencyException: Error creating bean with name 'bookstoreController': Unsatisfied dependency expressed through field 'bookstoreService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'bookstoreServiceImpl': Unsatisfied dependency expressed through field 'baseMapper'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bookstoreMapper' defined in file [D:\company-work\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\web\WEB-INF\classes\com\web\dao\BookstoreMapper.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring-mybaits.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\company-work\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\web\WEB-INF\classes\mapping\BookstoreMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'org.mybatis.caches.ehcache.LoggingEhcache'. Cause: java.lang.ClassNotFoundException: Cannot find class: org.mybatis.caches.ehcache.LoggingEhcache
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:588)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:366)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1264)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4770)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5236)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3828)
at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:291)
at org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:5608)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1392)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1396)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1396)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1364)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'bookstoreServiceImpl': Unsatisfied dependency expressed through field 'baseMapper'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bookstoreMapper' defined in file [D:\company-work\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\web\WEB-INF\classes\com\web\dao\BookstoreMapper.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring-mybaits.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\company-work\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\web\WEB-INF\classes\mapping\BookstoreMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'org.mybatis.caches.ehcache.LoggingEhcache'. Cause: java.lang.ClassNotFoundException: Cannot find class: org.mybatis.caches.ehcache.LoggingEhcache
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:588)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:366)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1264)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:585)
... 26 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bookstoreMapper' defined in file [D:\company-work\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\web\WEB-INF\classes\com\web\dao\BookstoreMapper.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring-mybaits.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\company-work\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\web\WEB-INF\classes\mapping\BookstoreMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'org.mybatis.caches.ehcache.LoggingEhcache'. Cause: java.lang.ClassNotFoundException: Cannot find class: org.mybatis.caches.ehcache.LoggingEhcache
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1531)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:585)
... 39 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring-mybaits.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\company-work\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\web\WEB-INF\classes\mapping\BookstoreMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'org.mybatis.caches.ehcache.LoggingEhcache'. Cause: java.lang.ClassNotFoundException: Cannot find class: org.mybatis.caches.ehcache.LoggingEhcache
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1628)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
... 52 more
Caused by: org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\company-work\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\web\WEB-INF\classes\mapping\BookstoreMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'org.mybatis.caches.ehcache.LoggingEhcache'. Cause: java.lang.ClassNotFoundException: Cannot find class: org.mybatis.caches.ehcache.LoggingEhcache
at com.baomidou.mybatisplus.spring.MybatisSqlSessionFactoryBean.buildSqlSessionFactory(MybatisSqlSessionFactoryBean.java:585)
at com.baomidou.mybatisplus.spring.MybatisSqlSessionFactoryBean.afterPropertiesSet(MybatisSqlSessionFactoryBean.java:385)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1687)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624)
... 59 more
Caused by: org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'org.mybatis.caches.ehcache.LoggingEhcache'. Cause: java.lang.ClassNotFoundException: Cannot find class: org.mybatis.caches.ehcache.LoggingEhcache
at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:120)
at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:92)
at com.baomidou.mybatisplus.spring.MybatisSqlSessionFactoryBean.buildSqlSessionFactory(MybatisSqlSessionFactoryBean.java:583)
... 62 more
Caused by: org.apache.ibatis.type.TypeException: Could not resolve type alias 'org.mybatis.caches.ehcache.LoggingEhcache'. Cause: java.lang.ClassNotFoundException: Cannot find class: org.mybatis.caches.ehcache.LoggingEhcache
at org.apache.ibatis.type.TypeAliasRegistry.resolveAlias(TypeAliasRegistry.java:120)
at org.apache.ibatis.builder.xml.XMLMapperBuilder.cacheElement(XMLMapperBuilder.java:202)
at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:114)
... 64 more
Caused by: java.lang.ClassNotFoundException: Cannot find class: org.mybatis.caches.ehcache.LoggingEhcache
at org.apache.ibatis.io.ClassLoaderWrapper.classForName(ClassLoaderWrapper.java:200)
at org.apache.ibatis.io.ClassLoaderWrapper.classForName(ClassLoaderWrapper.java:89)
at org.apache.ibatis.io.Resources.classForName(Resources.java:261)
at org.apache.ibatis.type.TypeAliasRegistry.resolveAlias(TypeAliasRegistry.java:116)
... 66 more
十二月 16, 2020 10:23:07 下午 org.apache.catalina.core.StandardContext startInternal
严重: One or more listeners failed to start. Full details will be found in the appropriate container log file
十二月 16, 2020 10:23:07 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/web] startup failed due to previous errors
十二月 16, 2020 10:23:07 下午 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
十二月 16, 2020 10:23:07 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
警告: The web application [web] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
十二月 16, 2020 10:23:07 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
警告: The web application [web] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:144)
com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:43)
十二月 16, 2020 10:23:07 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
警告: The web application [web] appears to have started a thread named [Timer-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
java.lang.Object.wait(Object.java:502)
java.util.TimerThread.mainLoop(Timer.java:526)
java.util.TimerThread.run(Timer.java:505)
十二月 16, 2020 10:23:07 下午 org.apache.catalina.core.StandardContext reload
信息: Reloading Context with name [/web] is completed
非常容易就定位到报错的原因
Caused by: org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\company-work\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\web\WEB-INF\classes\mapping\BookstoreMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'org.mybatis.caches.ehcache.LoggingEhcache'. Cause: java.lang.ClassNotFoundException: Cannot find class: org.mybatis.caches.ehcache.LoggingEhcache
原因是因为mybatis的写mapper.xml文件开了二级缓存,但是没有那个所需要的类,也就是少打了jar包,但是idea几乎没有提供对查找异常有价值的信息,eclipse就很容易就定位到错误。虽然idea确实方便,但是不得不承认eclipse还是比较老油条。
另外这个xml的文件是用mybatis-puls自动生成的,结果它自己自动开启了二级缓存。。。。害我找了好几个小时。。。