GVKun编程网logo

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ''org.m...

44

针对org.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname''org.m...这个问题,本篇

针对org.springframework.beans.factory.BeanCreationException: Error creating bean with name ''org.m...这个问题,本篇文章进行了详细的解答,同时本文还将给你拓展Application run failed org.springframework.beans.factory.BeanCreationException: Error creating b...、Bean实例化报错org.springframework.beans.factory.BeanCreationException、Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name...、Error starting Tomcat context. Exception: org.springframework.beans.factory.BeanCreationException等相关知识,希望可以帮助到你。

本文目录一览:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ''org.m...

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ''org.m...

七月 05, 2018 10:26:54 上午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property''source'' to ''org.eclipse.jst.jee.server:SSM'' did not find a matching property.
七月 05, 2018 10:26:54 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version: Apache Tomcat/8.0.29
七月 05, 2018 10:26:54 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built: Nov 20 2015 09:18:00 UTC
七月 05, 2018 10:26:54 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number: 8.0.29.0
七月 05, 2018 10:26:54 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name: Windows 10
七月 05, 2018 10:26:54 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version: 10.0
七月 05, 2018 10:26:54 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture: amd64
七月 05, 2018 10:26:54 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home: D:\JAVA\jre8
七月 05, 2018 10:26:54 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version: 1.8.0_102-b14
七月 05, 2018 10:26:54 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor: Oracle Corporation
七月 05, 2018 10:26:54 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE: D:\SERVER\tomcat-8.0.29
七月 05, 2018 10:26:54 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME: D:\SERVER\tomcat-8.0.29
七月 05, 2018 10:26:54 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:58800
七月 05, 2018 10:26:54 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=D:\SERVER\tomcat-8.0.29
七月 05, 2018 10:26:54 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=D:\SERVER\tomcat-8.0.29
七月 05, 2018 10:26:54 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dwtp.deploy=D:\SERVER\tomcat-8.0.29\webapps
七月 05, 2018 10:26:54 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=D:\SERVER\tomcat-8.0.29\endorsed
七月 05, 2018 10:26:54 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dfile.encoding=GBK
七月 05, 2018 10:26:54 上午 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: D:\JAVA\jre8\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;D:/JAVA/jre8/bin/server;D:/JAVA/jre8/bin;D:/JAVA/jre8/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;D:\SERVER\apache-maven-3.2.5\bin;D:\JAVA\jdk1.8.0_102\bin;D:\JAVA\jdk1.8.0_102\jre\bin;d:\oracle\product\10.2.0\client_2\bin;D:\DB-CLIENT\oracle\product\10.2.0\client_1\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel (R) Management Engine Components\DAL;C:\Program Files\Intel\Intel (R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel (R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel (R) Management Engine Components\IPT;D:\ORACLE\instantclient_11_2;D:\SERVER\Subversion\bin;D:\SERVER-CLIENT\TortoiseSVN\bin;D:\DB\MySQL\MySQL Server 5.0\bin;D:\Rational\common;D:\MinGW\bin;c:\Program Files (x86)\QuickTime\QTSystem\;C:\WINDOWS\System32\OpenSSH\;C:\Users\abcd\AppData\Local\Microsoft\WindowsApps;"d:\Program Files\Microsoft VS Code\bin;c:\maven\apache-maven-3.5.3\bin;";"D:\JAVA\jdk1.8.0_102\bin;;D:\eclipse;;.
七月 05, 2018 10:26:54 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-nio-8080"]
七月 05, 2018 10:26:55 上午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
信息: Using a shared selector for servlet write/read
七月 05, 2018 10:26:55 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-nio-8009"]
七月 05, 2018 10:26:55 上午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
信息: Using a shared selector for servlet write/read
七月 05, 2018 10:26:55 上午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1891 ms
七月 05, 2018 10:26:55 上午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
七月 05, 2018 10:26:55 上午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/8.0.29
七月 05, 2018 10:26:59 上午 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.
七月 05, 2018 10:26:59 上午 org.apache.catalina.core.ApplicationContext log
信息: No Spring WebApplicationInitializer types detected on classpath
七月 05, 2018 10:26:59 上午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
INFO [localhost-startStop-1] - Root WebApplicationContext: initialization started
DEBUG [localhost-startStop-1] - Adding [servletConfigInitParams] PropertySource with lowest search precedence
DEBUG [localhost-startStop-1] - Adding [servletContextInitParams] PropertySource with lowest search precedence
DEBUG [localhost-startStop-1] - Adding [jndiProperties] PropertySource with lowest search precedence
DEBUG [localhost-startStop-1] - Adding [systemProperties] PropertySource with lowest search precedence
DEBUG [localhost-startStop-1] - Adding [systemEnvironment] PropertySource with lowest search precedence
DEBUG [localhost-startStop-1] - Initialized StandardServletEnvironment with PropertySources [servletConfigInitParams,servletContextInitParams,jndiProperties,systemProperties,systemEnvironment]
DEBUG [localhost-startStop-1] - Replacing [servletContextInitParams] PropertySource with [servletContextInitParams]
INFO [localhost-startStop-1] - Refreshing Root WebApplicationContext: startup date [Thu Jul 05 10:26:59 CST 2018]; root of context hierarchy
DEBUG [localhost-startStop-1] - Adding [systemProperties] PropertySource with lowest search precedence
DEBUG [localhost-startStop-1] - Adding [systemEnvironment] PropertySource with lowest search precedence
DEBUG [localhost-startStop-1] - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
DEBUG [localhost-startStop-1] - 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-transaction.xml], ServletContext resource [/WEB-INF/classes/spring/applicationContext-service.xml]]
INFO [localhost-startStop-1] - Loading XML bean definitions from ServletContext resource [/WEB-INF/classes/spring/applicationContext-dao.xml]
DEBUG [localhost-startStop-1] - Using JAXP provider [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl]
DEBUG [localhost-startStop-1] - Loading schema mappings from [META-INF/spring.schemas]
DEBUG [localhost-startStop-1] - Loaded schema mappings: {http://www.springframework.org/schema/tx/spring-tx-4.3.xsd=org/springframework/transaction/config/spring-tx-4.3.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/cache/spring-cache-4.2.xsd=org/springframework/cache/config/spring-cache-4.2.xsd, http://www.springframework.org/schema/aop/spring-aop-4.1.xsd=org/springframework/aop/config/spring-aop-4.1.xsd, http://www.springframework.org/schema/context/spring-context-3.1.xsd=org/springframework/context/config/spring-context-3.1.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc-4.1.xsd=org/springframework/jdbc/config/spring-jdbc-4.1.xsd, http://www.springframework.org/schema/mvc/spring-mvc-4.1.xsd=org/springframework/web/servlet/config/spring-mvc-4.1.xsd, http://www.springframework.org/schema/util/spring-util-3.0.xsd=org/springframework/beans/factory/xml/spring-util-3.0.xsd, http://www.springframework.org/schema/tool/spring-tool.xsd=org/springframework/beans/factory/xml/spring-tool-4.3.xsd, http://www.springframework.org/schema/aop/spring-aop-3.2.xsd=org/springframework/aop/config/spring-aop-3.2.xsd, http://mybatis.org/schema/mybatis-spring-1.2.xsd=org/mybatis/spring/config/mybatis-spring-1.2.xsd, http://www.springframework.org/schema/lang/spring-lang-4.1.xsd=org/springframework/scripting/config/spring-lang-4.1.xsd, http://www.springframework.org/schema/context/spring-context-4.0.xsd=org/springframework/context/config/spring-context-4.0.xsd, http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd=org/springframework/web/servlet/config/spring-mvc-3.2.xsd, http://www.springframework.org/schema/beans/spring-beans-4.2.xsd=org/springframework/beans/factory/xml/spring-beans-4.2.xsd, http://www.springframework.org/schema/tool/spring-tool-4.1.xsd=org/springframework/beans/factory/xml/spring-tool-4.1.xsd, http://www.springframework.org/schema/lang/spring-lang-3.2.xsd=org/springframework/scripting/config/spring-lang-3.2.xsd, http://www.springframework.org/schema/cache/spring-cache-3.2.xsd=org/springframework/cache/config/spring-cache-3.2.xsd, http://www.springframework.org/schema/jee/spring-jee-4.1.xsd=org/springframework/ejb/config/spring-jee-4.1.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc-3.1.xsd=org/springframework/jdbc/config/spring-jdbc-3.1.xsd, http://www.springframework.org/schema/task/spring-task-4.2.xsd=org/springframework/scheduling/config/spring-task-4.2.xsd, http://www.springframework.org/schema/util/spring-util-2.0.xsd=org/springframework/beans/factory/xml/spring-util-2.0.xsd, http://www.springframework.org/schema/tool/spring-tool-3.2.xsd=org/springframework/beans/factory/xml/spring-tool-3.2.xsd, http://www.springframework.org/schema/context/spring-context.xsd=org/springframework/context/config/spring-context-4.3.xsd, http://www.springframework.org/schema/tx/spring-tx-4.2.xsd=org/springframework/transaction/config/spring-tx-4.2.xsd, http://www.springframework.org/schema/cache/spring-cache-4.1.xsd=org/springframework/cache/config/spring-cache-4.1.xsd, http://www.springframework.org/schema/aop/spring-aop-4.0.xsd=org/springframework/aop/config/spring-aop-4.0.xsd, http://www.springframework.org/schema/jee/spring-jee-3.2.xsd=org/springframework/ejb/config/spring-jee-3.2.xsd, http://www.springframework.org/schema/context/spring-context-3.0.xsd=org/springframework/context/config/spring-context-3.0.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc-4.0.xsd=org/springframework/jdbc/config/spring-jdbc-4.0.xsd, http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd=org/springframework/web/servlet/config/spring-mvc-4.0.xsd, http://www.springframework.org/schema/util/spring-util-2.5.xsd=org/springframework/beans/factory/xml/spring-util-2.5.xsd, http://www.springframework.org/schema/util/spring-util-4.3.xsd=org/springframework/beans/factory/xml/spring-util-4.3.xsd, http://www.springframework.org/schema/beans/spring-beans-3.2.xsd=org/springframework/beans/factory/xml/spring-beans-3.2.xsd, http://www.springframework.org/schema/aop/spring-aop-3.1.xsd=org/springframework/aop/config/spring-aop-3.1.xsd, http://www.springframework.org/schema/lang/spring-lang-4.0.xsd=org/springframework/scripting/config/spring-lang-4.0.xsd, http://www.springframework.org/schema/mvc/spring-mvc.xsd=org/springframework/web/servlet/config/spring-mvc-4.3.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/beans/spring-beans-4.1.xsd=org/springframework/beans/factory/xml/spring-beans-4.1.xsd, http://www.springframework.org/schema/tool/spring-tool-4.0.xsd=org/springframework/beans/factory/xml/spring-tool-4.0.xsd, http://www.springframework.org/schema/tx/spring-tx-3.2.xsd=org/springframework/transaction/config/spring-tx-3.2.xsd, http://www.springframework.org/schema/lang/spring-lang-3.1.xsd=org/springframework/scripting/config/spring-lang-3.1.xsd, http://www.springframework.org/schema/cache/spring-cache-3.1.xsd=org/springframework/cache/config/spring-cache-3.1.xsd, http://www.springframework.org/schema/jee/spring-jee-4.0.xsd=org/springframework/ejb/config/spring-jee-4.0.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd=org/springframework/jdbc/config/spring-jdbc-3.0.xsd, http://www.springframework.org/schema/task/spring-task-4.1.xsd=org/springframework/scheduling/config/spring-task-4.1.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc.xsd=org/springframework/jdbc/config/spring-jdbc-4.3.xsd, http://www.springframework.org/schema/tool/spring-tool-3.1.xsd=org/springframework/beans/factory/xml/spring-tool-3.1.xsd, http://www.springframework.org/schema/tx/spring-tx-4.1.xsd=org/springframework/transaction/config/spring-tx-4.1.xsd, http://www.springframework.org/schema/cache/spring-cache-4.0.xsd=org/springframework/cache/config/spring-cache-4.0.xsd, http://www.springframework.org/schema/jee/spring-jee-3.1.xsd=org/springframework/ejb/config/spring-jee-3.1.xsd, http://www.springframework.org/schema/task/spring-task-3.2.xsd=org/springframework/scheduling/config/spring-task-3.2.xsd, http://www.springframework.org/schema/util/spring-util-4.2.xsd=org/springframework/beans/factory/xml/spring-util-4.2.xsd, http://www.springframework.org/schema/beans/spring-beans-3.1.xsd=org/springframework/beans/factory/xml/spring-beans-3.1.xsd, http://www.springframework.org/schema/util/spring-util.xsd=org/springframework/beans/factory/xml/spring-util-4.3.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/mvc/spring-mvc-3.0.xsd=org/springframework/web/servlet/config/spring-mvc-3.0.xsd, http://www.springframework.org/schema/beans/spring-beans-4.0.xsd=org/springframework/beans/factory/xml/spring-beans-4.0.xsd, http://www.springframework.org/schema/beans/spring-beans.xsd=org/springframework/beans/factory/xml/spring-beans-4.3.xsd, http://www.springframework.org/schema/tx/spring-tx-3.1.xsd=org/springframework/transaction/config/spring-tx-3.1.xsd, http://www.springframework.org/schema/lang/spring-lang-3.0.xsd=org/springframework/scripting/config/spring-lang-3.0.xsd, http://mybatis.org/schema/mybatis-spring.xsd=org/mybatis/spring/config/mybatis-spring-1.2.xsd, http://www.springframework.org/schema/context/spring-context-2.5.xsd=org/springframework/context/config/spring-context-2.5.xsd, http://www.springframework.org/schema/context/spring-context-4.3.xsd=org/springframework/context/config/spring-context-4.3.xsd, http://www.springframework.org/schema/task/spring-task-4.0.xsd=org/springframework/scheduling/config/spring-task-4.0.xsd, http://www.springframework.org/schema/tool/spring-tool-3.0.xsd=org/springframework/beans/factory/xml/spring-tool-3.0.xsd, http://www.springframework.org/schema/tx/spring-tx-4.0.xsd=org/springframework/transaction/config/spring-tx-4.0.xsd, http://www.springframework.org/schema/aop/spring-aop-2.0.xsd=org/springframework/aop/config/spring-aop-2.0.xsd, http://www.springframework.org/schema/jee/spring-jee-3.0.xsd=org/springframework/ejb/config/spring-jee-3.0.xsd, http://www.springframework.org/schema/task/spring-task-3.1.xsd=org/springframework/scheduling/config/spring-task-3.1.xsd, http://www.springframework.org/schema/util/spring-util-4.1.xsd=org/springframework/beans/factory/xml/spring-util-4.1.xsd, http://www.springframework.org/schema/beans/spring-beans-3.0.xsd=org/springframework/beans/factory/xml/spring-beans-3.0.xsd, http://www.springframework.org/schema/jee/spring-jee.xsd=org/springframework/ejb/config/spring-jee-4.3.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/aop/spring-aop-4.3.xsd=org/springframework/aop/config/spring-aop-4.3.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-4.3.xsd=org/springframework/jdbc/config/spring-jdbc-4.3.xsd, http://www.springframework.org/schema/mvc/spring-mvc-4.3.xsd=org/springframework/web/servlet/config/spring-mvc-4.3.xsd, http://www.springframework.org/schema/util/spring-util-3.2.xsd=org/springframework/beans/factory/xml/spring-util-3.2.xsd, http://www.springframework.org/schema/task/spring-task.xsd=org/springframework/scheduling/config/spring-task-4.3.xsd, http://www.springframework.org/schema/tool/spring-tool-2.0.xsd=org/springframework/beans/factory/xml/spring-tool-2.0.xsd, http://www.springframework.org/schema/tx/spring-tx-3.0.xsd=org/springframework/transaction/config/spring-tx-3.0.xsd, http://www.springframework.org/schema/lang/spring-lang-2.5.xsd=org/springframework/scripting/config/spring-lang-2.5.xsd, http://www.springframework.org/schema/lang/spring-lang-4.3.xsd=org/springframework/scripting/config/spring-lang-4.3.xsd, http://www.springframework.org/schema/context/spring-context-4.2.xsd=org/springframework/context/config/spring-context-4.2.xsd, http://www.springframework.org/schema/jee/spring-jee-2.0.xsd=org/springframework/ejb/config/spring-jee-2.0.xsd, http://www.springframework.org/schema/tool/spring-tool-4.3.xsd=org/springframework/beans/factory/xml/spring-tool-4.3.xsd, http://www.springframework.org/schema/tool/spring-tool-2.5.xsd=org/springframework/beans/factory/xml/spring-tool-2.5.xsd, http://www.springframework.org/schema/jee/spring-jee-4.3.xsd=org/springframework/ejb/config/spring-jee-4.3.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/task/spring-task-3.0.xsd=org/springframework/scheduling/config/spring-task-3.0.xsd, http://www.springframework.org/schema/util/spring-util-4.0.xsd=org/springframework/beans/factory/xml/spring-util-4.0.xsd, http://www.springframework.org/schema/cache/spring-cache-4.3.xsd=org/springframework/cache/config/spring-cache-4.3.xsd, http://www.springframework.org/schema/aop/spring-aop-4.2.xsd=org/springframework/aop/config/spring-aop-4.2.xsd, http://www.springframework.org/schema/lang/spring-lang.xsd=org/springframework/scripting/config/spring-lang-4.3.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/jdbc/spring-jdbc-4.2.xsd=org/springframework/jdbc/config/spring-jdbc-4.2.xsd, http://www.springframework.org/schema/mvc/spring-mvc-4.2.xsd=org/springframework/web/servlet/config/spring-mvc-4.2.xsd, http://www.springframework.org/schema/util/spring-util-3.1.xsd=org/springframework/beans/factory/xml/spring-util-3.1.xsd, http://www.springframework.org/schema/beans/spring-beans-2.0.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd, http://www.springframework.org/schema/cache/spring-cache.xsd=org/springframework/cache/config/spring-cache-4.3.xsd, http://www.springframework.org/schema/tx/spring-tx.xsd=org/springframework/transaction/config/spring-tx-4.3.xsd, http://www.springframework.org/schema/lang/spring-lang-4.2.xsd=org/springframework/scripting/config/spring-lang-4.2.xsd, http://www.springframework.org/schema/context/spring-context-4.1.xsd=org/springframework/context/config/spring-context-4.1.xsd, http://www.springframework.org/schema/beans/spring-beans-2.5.xsd=org/springframework/beans/factory/xml/spring-beans-2.5.xsd, http://www.springframework.org/schema/beans/spring-beans-4.3.xsd=org/springframework/beans/factory/xml/spring-beans-4.3.xsd, http://www.springframework.org/schema/tool/spring-tool-4.2.xsd=org/springframework/beans/factory/xml/spring-tool-4.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/jee/spring-jee-4.2.xsd=org/springframework/ejb/config/spring-jee-4.2.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/task/spring-task-4.3.xsd=org/springframework/scheduling/config/spring-task-4.3.xsd, http://www.springframework.org/schema/aop/spring-aop.xsd=org/springframework/aop/config/spring-aop-4.3.xsd}
DEBUG [localhost-startStop-1] - Found XML schema [http://www.springframework.org/schema/beans/spring-beans-4.1.xsd] in classpath: org/springframework/beans/factory/xml/spring-beans-4.1.xsd
DEBUG [localhost-startStop-1] - Found XML schema [http://www.springframework.org/schema/context/spring-context-4.1.xsd] in classpath: org/springframework/context/config/spring-context-4.1.xsd
DEBUG [localhost-startStop-1] - Found XML schema [http://www.springframework.org/schema/tool/spring-tool-4.1.xsd] in classpath: org/springframework/beans/factory/xml/spring-tool-4.1.xsd
DEBUG [localhost-startStop-1] - Loading bean definitions
DEBUG [localhost-startStop-1] - 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-1] - Neither XML ''id'' nor ''name'' specified - using generated bean name [org.mybatis.spring.mapper.MapperScannerConfigurer#0]
INFO [localhost-startStop-1] - Loading XML bean definitions from ServletContext resource [/WEB-INF/classes/spring/applicationContext-transaction.xml]
DEBUG [localhost-startStop-1] - Using JAXP provider [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl]
DEBUG [localhost-startStop-1] - Found XML schema [http://www.springframework.org/schema/beans/spring-beans-4.1.xsd] in classpath: org/springframework/beans/factory/xml/spring-beans-4.1.xsd
DEBUG [localhost-startStop-1] - Found XML schema [http://www.springframework.org/schema/tx/spring-tx.xsd] in classpath: org/springframework/transaction/config/spring-tx-4.3.xsd
DEBUG [localhost-startStop-1] - Found XML schema [http://www.springframework.org/schema/tool/spring-tool-4.3.xsd] in classpath: org/springframework/beans/factory/xml/spring-tool-4.3.xsd
DEBUG [localhost-startStop-1] - Found XML schema [http://www.springframework.org/schema/aop/spring-aop.xsd] in classpath: org/springframework/aop/config/spring-aop-4.3.xsd
DEBUG [localhost-startStop-1] - Loading bean definitions
INFO [localhost-startStop-1] - Loading XML bean definitions from ServletContext resource [/WEB-INF/classes/spring/applicationContext-service.xml]
DEBUG [localhost-startStop-1] - Using JAXP provider [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl]
DEBUG [localhost-startStop-1] - Found XML schema [http://www.springframework.org/schema/beans/spring-beans-4.1.xsd] in classpath: org/springframework/beans/factory/xml/spring-beans-4.1.xsd
DEBUG [localhost-startStop-1] - Loading bean definitions
DEBUG [localhost-startStop-1] - Loaded 9 bean definitions from location pattern [/WEB-INF/classes/spring/applicationContext-*.xml]
DEBUG [localhost-startStop-1] - Bean factory for Root WebApplicationContext: org.springframework.beans.factory.support.DefaultListableBeanFactory@4d163357: defining beans [org.springframework.context.support.PropertySourcesPlaceholderConfigurer#0,dataSource,sqlSessionFactory,org.mybatis.spring.mapper.MapperScannerConfigurer#0,transactionManager,txAdvice,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,itemsService]; root of factory hierarchy
DEBUG [localhost-startStop-1] - Registering scope ''request'' with implementation [org.springframework.web.context.request.RequestScope@7242f8f4]
DEBUG [localhost-startStop-1] - Registering scope ''session'' with implementation [org.springframework.web.context.request.SessionScope@198c4e6d]
DEBUG [localhost-startStop-1] - Registering scope ''globalSession'' with implementation [org.springframework.web.context.request.SessionScope@4a786c08]
DEBUG [localhost-startStop-1] - Registering scope ''application'' with implementation [org.springframework.web.context.support.ServletContextScope@4f97263e]
DEBUG [localhost-startStop-1] - Creating shared instance of singleton bean ''org.mybatis.spring.mapper.MapperScannerConfigurer#0''
DEBUG [localhost-startStop-1] - Creating instance of bean ''org.mybatis.spring.mapper.MapperScannerConfigurer#0''
DEBUG [localhost-startStop-1] - Eagerly caching bean ''org.mybatis.spring.mapper.MapperScannerConfigurer#0'' to allow for resolving potential circular references
DEBUG [localhost-startStop-1] - Creating shared instance of singleton bean ''sqlSessionFactory''
DEBUG [localhost-startStop-1] - Creating instance of bean ''sqlSessionFactory''
DEBUG [localhost-startStop-1] - Eagerly caching bean ''sqlSessionFactory'' to allow for resolving potential circular references
DEBUG [localhost-startStop-1] - Creating shared instance of singleton bean ''dataSource''
DEBUG [localhost-startStop-1] - Creating instance of bean ''dataSource''
DEBUG [localhost-startStop-1] - Eagerly caching bean ''dataSource'' to allow for resolving potential circular references
DEBUG [localhost-startStop-1] - Finished creating instance of bean ''dataSource''
DEBUG [localhost-startStop-1] - No property editor [org.apache.ibatis.session.ConfigurationEditor] found for type org.apache.ibatis.session.Configuration according to ''Editor'' suffix convention
WARN [localhost-startStop-1] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ''org.mybatis.spring.mapper.MapperScannerConfigurer#0'' defined in ServletContext resource [/WEB-INF/classes/spring/applicationContext-dao.xml]: Cannot resolve reference to bean ''sqlSessionFactory'' while setting bean property ''sqlSessionFactoryBeanName''; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ''sqlSessionFactory'' defined in ServletContext resource [/WEB-INF/classes/spring/applicationContext-dao.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type ''java.lang.String'' to required type ''org.apache.ibatis.session.Configuration'' for property ''configuration''; nested exception is java.lang.IllegalStateException: Cannot convert value of type ''java.lang.String'' to required type ''org.apache.ibatis.session.Configuration'' for property ''configuration'': no matching editors or conversion strategy found
DEBUG [localhost-startStop-1] - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@4d163357: defining beans [org.springframework.context.support.PropertySourcesPlaceholderConfigurer#0,dataSource,sqlSessionFactory,org.mybatis.spring.mapper.MapperScannerConfigurer#0,transactionManager,txAdvice,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,itemsService]; root of factory hierarchy
DEBUG [localhost-startStop-1] - Invoking destroy method ''close'' on bean with name ''dataSource''
ERROR [localhost-startStop-1] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ''org.mybatis.spring.mapper.MapperScannerConfigurer#0'' defined in ServletContext resource [/WEB-INF/classes/spring/applicationContext-dao.xml]: Cannot resolve reference to bean ''sqlSessionFactory'' while setting bean property ''sqlSessionFactoryBeanName''; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ''sqlSessionFactory'' defined in ServletContext resource [/WEB-INF/classes/spring/applicationContext-dao.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type ''java.lang.String'' to required type ''org.apache.ibatis.session.Configuration'' for property ''configuration''; nested exception is java.lang.IllegalStateException: Cannot convert value of type ''java.lang.String'' to required type ''org.apache.ibatis.session.Configuration'' for property ''configuration'': no matching editors or conversion strategy found
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.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:115)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:686)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:524)
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:4793)
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.ContainerBase$StartChild.call(ContainerBase.java:1408)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ''sqlSessionFactory'' defined in ServletContext resource [/WEB-INF/classes/spring/applicationContext-dao.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type ''java.lang.String'' to required type ''org.apache.ibatis.session.Configuration'' for property ''configuration''; nested exception is java.lang.IllegalStateException: Cannot convert value of type ''java.lang.String'' to required type ''org.apache.ibatis.session.Configuration'' for property ''configuration'': no matching editors or conversion strategy found
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:564)
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)
... 24 more
Caused by: org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type ''java.lang.String'' to required type ''org.apache.ibatis.session.Configuration'' for property ''configuration''; nested exception is java.lang.IllegalStateException: Cannot convert value of type ''java.lang.String'' to required type ''org.apache.ibatis.session.Configuration'' for property ''configuration'': no matching editors or conversion strategy found
at org.springframework.beans.AbstractNestablePropertyAccessor.convertIfNecessary(AbstractNestablePropertyAccessor.java:605)
at org.springframework.beans.AbstractNestablePropertyAccessor.convertForProperty(AbstractNestablePropertyAccessor.java:617)
at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:216)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1577)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1536)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
... 30 more
Caused by: java.lang.IllegalStateException: Cannot convert value of type ''java.lang.String'' to required type ''org.apache.ibatis.session.Configuration'' for property ''configuration'': no matching editors or conversion strategy found
at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:306)
at org.springframework.beans.AbstractNestablePropertyAccessor.convertIfNecessary(AbstractNestablePropertyAccessor.java:590)
... 36 more
七月 05, 2018 10:27:00 上午 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 ''org.mybatis.spring.mapper.MapperScannerConfigurer#0'' defined in ServletContext resource [/WEB-INF/classes/spring/applicationContext-dao.xml]: Cannot resolve reference to bean ''sqlSessionFactory'' while setting bean property ''sqlSessionFactoryBeanName''; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ''sqlSessionFactory'' defined in ServletContext resource [/WEB-INF/classes/spring/applicationContext-dao.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type ''java.lang.String'' to required type ''org.apache.ibatis.session.Configuration'' for property ''configuration''; nested exception is java.lang.IllegalStateException: Cannot convert value of type ''java.lang.String'' to required type ''org.apache.ibatis.session.Configuration'' for property ''configuration'': no matching editors or conversion strategy found
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.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:115)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:686)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:524)
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:4793)
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.ContainerBase$StartChild.call(ContainerBase.java:1408)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ''sqlSessionFactory'' defined in ServletContext resource [/WEB-INF/classes/spring/applicationContext-dao.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type ''java.lang.String'' to required type ''org.apache.ibatis.session.Configuration'' for property ''configuration''; nested exception is java.lang.IllegalStateException: Cannot convert value of type ''java.lang.String'' to required type ''org.apache.ibatis.session.Configuration'' for property ''configuration'': no matching editors or conversion strategy found
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:564)
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)
... 24 more
Caused by: org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type ''java.lang.String'' to required type ''org.apache.ibatis.session.Configuration'' for property ''configuration''; nested exception is java.lang.IllegalStateException: Cannot convert value of type ''java.lang.String'' to required type ''org.apache.ibatis.session.Configuration'' for property ''configuration'': no matching editors or conversion strategy found
at org.springframework.beans.AbstractNestablePropertyAccessor.convertIfNecessary(AbstractNestablePropertyAccessor.java:605)
at org.springframework.beans.AbstractNestablePropertyAccessor.convertForProperty(AbstractNestablePropertyAccessor.java:617)
at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:216)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1577)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1536)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
... 30 more
Caused by: java.lang.IllegalStateException: Cannot convert value of type ''java.lang.String'' to required type ''org.apache.ibatis.session.Configuration'' for property ''configuration'': no matching editors or conversion strategy found
at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:306)
at org.springframework.beans.AbstractNestablePropertyAccessor.convertIfNecessary(AbstractNestablePropertyAccessor.java:590)
... 36 more

七月 05, 2018 10:27:00 上午 org.apache.catalina.core.StandardContext startInternal
严重: One or more listeners failed to start. Full details will be found in the appropriate container log file
七月 05, 2018 10:27:00 上午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/SSM] startup failed due to previous errors
七月 05, 2018 10:27:00 上午 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
七月 05, 2018 10:27:00 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\SERVER\tomcat-8.0.29\webapps\docs
七月 05, 2018 10:27:00 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\SERVER\tomcat-8.0.29\webapps\docs has finished in 95 ms
七月 05, 2018 10:27:00 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\SERVER\tomcat-8.0.29\webapps\examples
七月 05, 2018 10:27:01 上午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized ()
七月 05, 2018 10:27:01 上午 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized ()
七月 05, 2018 10:27:01 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\SERVER\tomcat-8.0.29\webapps\examples has finished in 719 ms
七月 05, 2018 10:27:01 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\SERVER\tomcat-8.0.29\webapps\host-manager
七月 05, 2018 10:27:01 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\SERVER\tomcat-8.0.29\webapps\host-manager has finished in 50 ms
七月 05, 2018 10:27:01 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\SERVER\tomcat-8.0.29\webapps\manager
七月 05, 2018 10:27:01 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\SERVER\tomcat-8.0.29\webapps\manager has finished in 46 ms
七月 05, 2018 10:27:01 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\SERVER\tomcat-8.0.29\webapps\ROOT
七月 05, 2018 10:27:01 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\SERVER\tomcat-8.0.29\webapps\ROOT has finished in 42 ms
七月 05, 2018 10:27:01 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-nio-8080"]
七月 05, 2018 10:27:01 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-nio-8009"]
七月 05, 2018 10:27:01 上午 org.apache.catalina.startup.Catalina start
信息: Server startup in 6350 ms

 

 

解决方案:

首先查看,代码是否正确,配置是否正确,确定完全正确了,检查 JDK1.7 和 jar 包 4.2 版本 Tomcat7.0 是否兼容

 

Application run failed org.springframework.beans.factory.BeanCreationException: Error creating b...

Application run failed org.springframework.beans.factory.BeanCreationException: Error creating b...

目前有发现的两种情况

第一种:是在继承jpa的时候检查实体类@id和@Entity引进的包是否是

import javax.persistence.Id
imprt javax.persistence.Entity;
import javax.persistence.Table;

第一次引进很容易引错包下面是错误的包

org.springframework.data.annotation.Id;

要不然你就得去找找你的dao与service的注解是不是漏掉了

第二种:情况属于比较少见的

无法注入Dao中的Bean!

SpringBoot项目的Bean装配默认规则是根据Application类所在的包位置从上往下扫描! “Application类”是指SpringBoot项目入口类。这个类的位置很关键:
如果Application类所在的包为:com.ssm.springboot
,则只会扫描com.ssm.springboot
包及其所有子包,如果service或dao所在包不在com.ssm.springboot
及其子包下,则不会被扫描!

 

这种情况也会导致注入不进去的错误

解决办法

将SpringbootApplication放在要扫描包包中

一定不要如下图另起一个包要不然

@ComponentScan他也救不了你

最简单的你是这样了

 

放置于自动扫描包的同一包名下

 

Bean实例化报错org.springframework.beans.factory.BeanCreationException

Bean实例化报错org.springframework.beans.factory.BeanCreationException

近日在使用Spring boot 2.0.0.RELEASE 运行时,抛出了bean注入异常

代码如下:

@Bean
public FilterRegistrationBean httpFilter(){
   FilterRegistrationBean registrationBean = new FilterRegistrationBean();
   registrationBean.setFilter(new HttpFilter());
   registrationBean.addUrlPatterns("/threadLocal/*");
   return registrationBean;
}

报错信息大致如下:

2018-03-31 14:00:30.356 ERROR 18536 --- [           main] o.s.boot.SpringApplication               : Application run failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ''httpFilter'' defined in com.mmall.concurrency.ConcurrencyApplication: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.web.servlet.FilterRegistrationBean]: Factory method ''httpFilter'' threw exception; nested exception is java.lang.NoClassDefFoundError: javax/servlet/Filter
    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:587) ~[spring-beans-5.0.4.RELEASE.jar:5.0.4.RELEASE]

..........
 

查看pom文件,找到是内置的tomcat的jar所引起的冲突报错

<dependency>
   <groupId>org.springframework.boot</groupId>
   <artifactId>spring-boot-starter-tomcat</artifactId>
   <scope>provided</scope>
</dependency>

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name...

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name...

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ''requestMappingHandlerMapping'' defined in class path resource [org/springframework/web/servlet/config/annotation/DelegatingWebMvcConfiguration.class]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping found. Cannot map ''portDetailController'' bean method
public java.util.List<cn.kkou.creditsys.back.dto.portdetail.PortStat> cn.kkou.creditsys.back.web.controller.portdetail.PortDetailController.getPorts()
to {[/port/port],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}: There is already ''portDetailController'' bean method
public java.util.List<cn.kkou.creditsys.back.dto.stat.AreaStat> cn.kkou.creditsys.back.web.controller.portdetail.PortDetailController.orderByPort(java.lang.String) mapped.
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1554) ~[spring-beans-4.0.8.RELEASE.jar:4.0.8.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) ~[spring-beans-4.0.8.RELEASE.jar:4.0.8.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) ~[spring-beans-4.0.8.RELEASE.jar:4.0.8.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) ~[spring-beans-4.0.8.RELEASE.jar:4.0.8.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) ~[spring-beans-4.0.8.RELEASE.jar:4.0.8.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) ~[spring-beans-4.0.8.RELEASE.jar:4.0.8.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) ~[spring-beans-4.0.8.RELEASE.jar:4.0.8.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1021) ~[spring-beans-4.0.8.RELEASE.jar:4.0.8.RELEASE]
29-May-2018 14:27:44.987 严重 [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
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:916) ~[spring-beans-4.0.8.RELEASE.jar:4.0.8.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:862) ~[spring-beans-4.0.8.RELEASE.jar:4.0.8.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:811) ~[spring-beans-4.0.8.RELEASE.jar:4.0.8.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:739) ~[spring-beans-4.0.8.RELEASE.jar:4.0.8.RELEASE]
... 68 common frames omitted
29-May-2018 14:27:44.988 严重 [RMI TCP Connection (3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors
Caused by: java.lang.IllegalStateException: Ambiguous mapping found. Cannot map ''portDetailController'' bean method
public java.util.List<cn.kkou.creditsys.back.dto.portdetail.PortStat> cn.kkou.creditsys.back.web.controller.portdetail.PortDetailController.getPorts()
to {[/port/port],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}: There is already ''portDetailController'' bean method
public java.util.List<cn.kkou.creditsys.back.dto.stat.AreaStat> cn.kkou.creditsys.back.web.controller.portdetail.PortDetailController.orderByPort(java.lang.String) mapped.
at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.registerHandlerMethod(AbstractHandlerMethodMapping.java:192) ~[spring-webmvc-4.0.8.RELEASE.jar:4.0.8.RELEASE]
at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.detectHandlerMethods(AbstractHandlerMethodMapping.java:164) ~[spring-webmvc-4.0.8.RELEASE.jar:4.0.8.RELEASE]
at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.initHandlerMethods(AbstractHandlerMethodMapping.java:124) ~[spring-webmvc-4.0.8.RELEASE.jar:4.0.8.RELEASE]
at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.afterPropertiesSet(AbstractHandlerMethodMapping.java:103) ~[spring-webmvc-4.0.8.RELEASE.jar:4.0.8.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.afterPropertiesSet(RequestMappingHandlerMapping.java:126) ~[spring-webmvc-4.0.8.RELEASE.jar:4.0.8.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1613) ~[spring-beans-4.0.8.RELEASE.jar:4.0.8.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1550) ~[spring-beans-4.0.8.RELEASE.jar:4.0.8.RELEASE]
... 79 common frames omitted
[2018-05-29 02:27:45,026] Artifact back-web:war: Error during artifact deployment. See server log for details.

 

 

报错原因:controller 中有两个相同的 requestMapping

Error starting Tomcat context. Exception: org.springframework.beans.factory.BeanCreationException

Error starting Tomcat context. Exception: org.springframework.beans.factory.BeanCreationException

Error starting Tomcat context. Exception: org.springframework.beans.factory.BeanCreationException. Message: Error creating bean with name ''servletEndpointRegistrar'' defined in class path resource [org/springframework/boot/actuate/autoconfigure/endpoint/web/ServletEndpointManagementContextConfiguration$WebMvcServletEndpointManagementContextConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.endpoint.web.ServletEndpointRegistrar]: Factory method ''servletEndpointRegistrar'' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ''healthEndpoint'' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Unsatisfied dependency expressed through method ''healthEndpoint'' parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ''healthIndicatorRegistry'' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthIndicatorAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.health.HealthIndicatorRegistry]: Factory method ''healthIndicatorRegistry'' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ''org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthIndicatorAutoConfiguration'': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ''dataSource'' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method ''dataSource'' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class

 

 

这是什么原因造成的呢?

我自己摸索了很久发现,该项目的在pom文件中的这个看图:

 

 

没错,packaging标签我们不应该写成pom,要嘛不写去掉,要嘛就写成jar。

然后重启springBoot项目就不会报这个错误了,希望能帮到大家。

 

我们今天的关于org.springframework.beans.factory.BeanCreationException: Error creating bean with name ''org.m...的分享已经告一段落,感谢您的关注,如果您想了解更多关于Application run failed org.springframework.beans.factory.BeanCreationException: Error creating b...、Bean实例化报错org.springframework.beans.factory.BeanCreationException、Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name...、Error starting Tomcat context. Exception: org.springframework.beans.factory.BeanCreationException的相关信息,请在本站查询。

本文标签: