spring mybatis整合错误

四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version: Apache Tomcat/7.0.77
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built: Mar 28 2017 16:01:48 UTC
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number: 7.0.77.0
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name: Windows 10
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version: 10.0
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture: amd64
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home: E:\command_tool\jdk\jdk1.8\jre
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version: 1.8.0_131-b11
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor: Oracle Corporation
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE: E:\command_tool\tomcat7\apache-tomcat-7.0.77
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME: E:\command_tool\tomcat7\apache-tomcat-7.0.77
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=E:\command_tool\tomcat7\apache-tomcat-7.0.77
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=E:\command_tool\tomcat7\apache-tomcat-7.0.77
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dwtp.deploy=E:\command_tool\tomcat7\apache-tomcat-7.0.77\webapps
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=E:\command_tool\tomcat7\apache-tomcat-7.0.77\endorsed
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dfile.encoding=GBK
四月 06, 2018 10:44:50 下午 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: E:\command_tool\jdk\jdk1.8\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;F:/computer_Software/eclipse/jre/bin/client;F:/computer_Software/eclipse/jre/bin;F:/computer_Software/eclipse/jre/lib/i386;G:\oracle\product\10.2.0\db_1\bin;E:\command_tool\apache-maven-3.3.9\bin;E:\command_tool\jdk\jdk1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Users\admin.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;H:\software tool\uml建模软件\common;C:\Program Files (x86)\GtkSharp\2.12\bin;F:\computer_Software\ultraedit;C:\Program Files\IDM Computer Solutions\UltraCompare;F:\resource\platform-tools;;F:\resource\platform-tools;F:\computer_Software\mysql\bin;;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Users\admin\AppData\Local\Microsoft\WindowsApps;E:\modulesim\win64;F:\resource\platform-tools\adb.exe;C:\Users\admin\AppData\Local\GitHubDesktop\bin;F:\computer_Software\eclipse;;.
四月 06, 2018 10:44:50 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler [“http-bio-8080”]
四月 06, 2018 10:44:50 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler [“ajp-bio-8009”]
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1407 ms
四月 06, 2018 10:44:50 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
四月 06, 2018 10:44:50 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.77
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor E:\command_tool\tomcat7\apache-tomcat-7.0.77\conf\Catalina\localhost\spring_mybatis_mvc.xml
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.HostConfig deployDescriptor
警告: A docBase E:\command_tool\tomcat7\apache-tomcat-7.0.77\webapps\spring_mybatis_mvc inside the host appBase has been specified, and will be ignored
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.SetContextPropertiesRule begin
警告: [SetContextPropertiesRule]{Context} Setting property ‘source’ to ‘org.eclipse.jst.jee.server:spring_mybatis_mvc’ did not find a matching property.
四月 06, 2018 10:44:54 下午 org.apache.catalina.startup.TldConfig execute
信息: 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.
四月 06, 2018 10:44:54 下午 org.apache.catalina.core.ApplicationContext log
信息: No Spring WebApplicationInitializer types detected on classpath
四月 06, 2018 10:44:54 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
四月 06, 2018 10:44:54 下午 org.springframework.web.context.ContextLoader initWebApplicationContext
信息: Root WebApplicationContext: initialization started
四月 06, 2018 10:44:54 下午 org.springframework.web.context.support.XmlWebApplicationContext prepareRefresh
信息: Refreshing Root WebApplicationContext: startup date [Fri Apr 06 22:44:54 CST 2018]; root of context hierarchy
四月 06, 2018 10:44:54 下午 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
信息: Loading XML bean definitions from ServletContext resource [/WEB-INF/SpringConf.xml]
四月 06, 2018 10:44:55 下午 org.springframework.jdbc.datasource.DriverManagerDataSource setDriverClassName
信息: Loaded JDBC driver: com.mysql.jdbc.Driver
四月 06, 2018 10:44:56 下午 org.springframework.web.context.support.XmlWebApplicationContext refresh
警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘userMapper’ defined in ServletContext resource [/WEB-INF/SpringConf.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type ‘org.apache.ibatis.session.defaults.DefaultSqlSessionFactory’ to required type ‘java.lang.String’ for property ‘sqlSessionFactoryBeanName’; nested exception is java.lang.IllegalStateException: Cannot convert value of type ‘org.apache.ibatis.session.defaults.DefaultSqlSessionFactory’ to required type ‘java.lang.String’ for property ‘sqlSessionFactoryBeanName’: no matching editors or conversion strategy found
四月 06, 2018 10:44:56 下午 org.springframework.beans.factory.support.DefaultListableBeanFactory destroyBean
严重: Destroy method on bean with name ‘sqlSessionFactory’ threw an exception
java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call ‘refresh’ before multicasting events via the context: Root WebApplicationContext: startup date [Fri Apr 06 22:44:54 CST 2018]; root of context hierarchy
at org.springframework.context.support.AbstractApplicationContext.getApplicationEventMulticaster(AbstractApplicationContext.java:404)
at org.springframework.context.support.ApplicationListenerDetector.postProcessBeforeDestruction(ApplicationListenerDetector.java:97)
at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:253)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:578)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:554)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:959)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:523)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons(DefaultListableBeanFactory.java:966)
at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1033)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:555)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5118)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5634)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:679)
at org.apache.catalina.startup.HostConfig DeployDescriptor.run(HostConfig.java:1966)atjava.util.concurrent.Executors D e p l o y D e s c r i p t o r . r u n ( H o s t C o n f i g . j a v a : 1966 ) a t j a v a . u t i l . c o n c u r r e n t . E x e c u t o r s RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)

四月 06, 2018 10:44:56 下午 org.springframework.web.context.ContextLoader initWebApplicationContext
严重: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘userMapper’ defined in ServletContext resource [/WEB-INF/SpringConf.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type ‘org.apache.ibatis.session.defaults.DefaultSqlSessionFactory’ to required type ‘java.lang.String’ for property ‘sqlSessionFactoryBeanName’; nested exception is java.lang.IllegalStateException: Cannot convert value of type ‘org.apache.ibatis.session.defaults.DefaultSqlSessionFactory’ to required type ‘java.lang.String’ for property ‘sqlSessionFactoryBeanName’: no matching editors or conversion strategy found
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:563)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory 1.getObject(AbstractBeanFactory.java:306)atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)atorg.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:115)atorg.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:686)atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:524)atorg.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444)atorg.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326)atorg.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)atorg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5118)atorg.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5634)atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)atorg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)atorg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)atorg.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)atorg.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:679)atorg.apache.catalina.startup.HostConfig 1. g e t O b j e c t ( A b s t r a c t B e a n F a c t o r y . j a v a : 306 ) a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . D e f a u l t S i n g l e t o n B e a n R e g i s t r y . g e t S i n g l e t o n ( D e f a u l t S i n g l e t o n B e a n R e g i s t r y . j a v a : 230 ) a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t B e a n F a c t o r y . d o G e t B e a n ( A b s t r a c t B e a n F a c t o r y . j a v a : 302 ) a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t B e a n F a c t o r y . g e t B e a n ( A b s t r a c t B e a n F a c t o r y . j a v a : 202 ) a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . s u p p o r t . P o s t P r o c e s s o r R e g i s t r a t i o n D e l e g a t e . i n v o k e B e a n F a c t o r y P o s t P r o c e s s o r s ( P o s t P r o c e s s o r R e g i s t r a t i o n D e l e g a t e . j a v a : 115 ) a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . s u p p o r t . A b s t r a c t A p p l i c a t i o n C o n t e x t . i n v o k e B e a n F a c t o r y P o s t P r o c e s s o r s ( A b s t r a c t A p p l i c a t i o n C o n t e x t . j a v a : 686 ) a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . s u p p o r t . A b s t r a c t A p p l i c a t i o n C o n t e x t . r e f r e s h ( A b s t r a c t A p p l i c a t i o n C o n t e x t . j a v a : 524 ) a t o r g . s p r i n g f r a m e w o r k . w e b . c o n t e x t . C o n t e x t L o a d e r . c o n f i g u r e A n d R e f r e s h W e b A p p l i c a t i o n C o n t e x t ( C o n t e x t L o a d e r . j a v a : 444 ) a t o r g . s p r i n g f r a m e w o r k . w e b . c o n t e x t . C o n t e x t L o a d e r . i n i t W e b A p p l i c a t i o n C o n t e x t ( C o n t e x t L o a d e r . j a v a : 326 ) a t o r g . s p r i n g f r a m e w o r k . w e b . c o n t e x t . C o n t e x t L o a d e r L i s t e n e r . c o n t e x t I n i t i a l i z e d ( C o n t e x t L o a d e r L i s t e n e r . j a v a : 107 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . S t a n d a r d C o n t e x t . l i s t e n e r S t a r t ( S t a n d a r d C o n t e x t . j a v a : 5118 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . S t a n d a r d C o n t e x t . s t a r t I n t e r n a l ( S t a n d a r d C o n t e x t . j a v a : 5634 ) a t o r g . a p a c h e . c a t a l i n a . u t i l . L i f e c y c l e B a s e . s t a r t ( L i f e c y c l e B a s e . j a v a : 145 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . C o n t a i n e r B a s e . a d d C h i l d I n t e r n a l ( C o n t a i n e r B a s e . j a v a : 899 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . C o n t a i n e r B a s e . a d d C h i l d ( C o n t a i n e r B a s e . j a v a : 875 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . S t a n d a r d H o s t . a d d C h i l d ( S t a n d a r d H o s t . j a v a : 652 ) a t o r g . a p a c h e . c a t a l i n a . s t a r t u p . H o s t C o n f i g . d e p l o y D e s c r i p t o r ( H o s t C o n f i g . j a v a : 679 ) a t o r g . a p a c h e . c a t a l i n a . s t a r t u p . H o s t C o n f i g DeployDescriptor.run(HostConfig.java:1966)
at java.util.concurrent.Executors RunnableAdapter.call(Executors.java:511)atjava.util.concurrent.FutureTask.run(FutureTask.java:266)atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)atjava.util.concurrent.ThreadPoolExecutor R u n n a b l e A d a p t e r . c a l l ( E x e c u t o r s . j a v a : 511 ) a t j a v a . u t i l . c o n c u r r e n t . F u t u r e T a s k . r u n ( F u t u r e T a s k . j a v a : 266 ) a t j a v a . u t i l . c o n c u r r e n t . T h r e a d P o o l E x e c u t o r . r u n W o r k e r ( T h r e a d P o o l E x e c u t o r . j a v a : 1142 ) a t j a v a . u t i l . c o n c u r r e n t . T h r e a d P o o l E x e c u t o r Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type ‘org.apache.ibatis.session.defaults.DefaultSqlSessionFactory’ to required type ‘java.lang.String’ for property ‘sqlSessionFactoryBeanName’; nested exception is java.lang.IllegalStateException: Cannot convert value of type ‘org.apache.ibatis.session.defaults.DefaultSqlSessionFactory’ to required type ‘java.lang.String’ for property ‘sqlSessionFactoryBeanName’: no matching editors or conversion strategy found
at org.springframework.beans.AbstractNestablePropertyAccessor.convertIfNecessary(AbstractNestablePropertyAccessor.java:591)
at org.springframework.beans.AbstractNestablePropertyAccessor.convertForProperty(AbstractNestablePropertyAccessor.java:603)
at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:216)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1538)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1497)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1237)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:552)
… 24 more
Caused by: java.lang.IllegalStateException: Cannot convert value of type ‘org.apache.ibatis.session.defaults.DefaultSqlSessionFactory’ to required type ‘java.lang.String’ for property ‘sqlSessionFactoryBeanName’: no matching editors or conversion strategy found
at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:306)
at org.springframework.beans.AbstractNestablePropertyAccessor.convertIfNecessary(AbstractNestablePropertyAccessor.java:576)
… 30 more

四月 06, 2018 10:44:56 下午 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 ‘userMapper’ defined in ServletContext resource [/WEB-INF/SpringConf.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type ‘org.apache.ibatis.session.defaults.DefaultSqlSessionFactory’ to required type ‘java.lang.String’ for property ‘sqlSessionFactoryBeanName’; nested exception is java.lang.IllegalStateException: Cannot convert value of type ‘org.apache.ibatis.session.defaults.DefaultSqlSessionFactory’ to required type ‘java.lang.String’ for property ‘sqlSessionFactoryBeanName’: no matching editors or conversion strategy found
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:563)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory 1.getObject(AbstractBeanFactory.java:306)atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)atorg.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:115)atorg.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:686)atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:524)atorg.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444)atorg.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326)atorg.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)atorg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5118)atorg.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5634)atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)atorg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)atorg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)atorg.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)atorg.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:679)atorg.apache.catalina.startup.HostConfig 1. g e t O b j e c t ( A b s t r a c t B e a n F a c t o r y . j a v a : 306 ) a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . D e f a u l t S i n g l e t o n B e a n R e g i s t r y . g e t S i n g l e t o n ( D e f a u l t S i n g l e t o n B e a n R e g i s t r y . j a v a : 230 ) a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t B e a n F a c t o r y . d o G e t B e a n ( A b s t r a c t B e a n F a c t o r y . j a v a : 302 ) a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t B e a n F a c t o r y . g e t B e a n ( A b s t r a c t B e a n F a c t o r y . j a v a : 202 ) a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . s u p p o r t . P o s t P r o c e s s o r R e g i s t r a t i o n D e l e g a t e . i n v o k e B e a n F a c t o r y P o s t P r o c e s s o r s ( P o s t P r o c e s s o r R e g i s t r a t i o n D e l e g a t e . j a v a : 115 ) a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . s u p p o r t . A b s t r a c t A p p l i c a t i o n C o n t e x t . i n v o k e B e a n F a c t o r y P o s t P r o c e s s o r s ( A b s t r a c t A p p l i c a t i o n C o n t e x t . j a v a : 686 ) a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . s u p p o r t . A b s t r a c t A p p l i c a t i o n C o n t e x t . r e f r e s h ( A b s t r a c t A p p l i c a t i o n C o n t e x t . j a v a : 524 ) a t o r g . s p r i n g f r a m e w o r k . w e b . c o n t e x t . C o n t e x t L o a d e r . c o n f i g u r e A n d R e f r e s h W e b A p p l i c a t i o n C o n t e x t ( C o n t e x t L o a d e r . j a v a : 444 ) a t o r g . s p r i n g f r a m e w o r k . w e b . c o n t e x t . C o n t e x t L o a d e r . i n i t W e b A p p l i c a t i o n C o n t e x t ( C o n t e x t L o a d e r . j a v a : 326 ) a t o r g . s p r i n g f r a m e w o r k . w e b . c o n t e x t . C o n t e x t L o a d e r L i s t e n e r . c o n t e x t I n i t i a l i z e d ( C o n t e x t L o a d e r L i s t e n e r . j a v a : 107 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . S t a n d a r d C o n t e x t . l i s t e n e r S t a r t ( S t a n d a r d C o n t e x t . j a v a : 5118 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . S t a n d a r d C o n t e x t . s t a r t I n t e r n a l ( S t a n d a r d C o n t e x t . j a v a : 5634 ) a t o r g . a p a c h e . c a t a l i n a . u t i l . L i f e c y c l e B a s e . s t a r t ( L i f e c y c l e B a s e . j a v a : 145 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . C o n t a i n e r B a s e . a d d C h i l d I n t e r n a l ( C o n t a i n e r B a s e . j a v a : 899 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . C o n t a i n e r B a s e . a d d C h i l d ( C o n t a i n e r B a s e . j a v a : 875 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . S t a n d a r d H o s t . a d d C h i l d ( S t a n d a r d H o s t . j a v a : 652 ) a t o r g . a p a c h e . c a t a l i n a . s t a r t u p . H o s t C o n f i g . d e p l o y D e s c r i p t o r ( H o s t C o n f i g . j a v a : 679 ) a t o r g . a p a c h e . c a t a l i n a . s t a r t u p . H o s t C o n f i g DeployDescriptor.run(HostConfig.java:1966)
at java.util.concurrent.Executors RunnableAdapter.call(Executors.java:511)atjava.util.concurrent.FutureTask.run(FutureTask.java:266)atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)atjava.util.concurrent.ThreadPoolExecutor R u n n a b l e A d a p t e r . c a l l ( E x e c u t o r s . j a v a : 511 ) a t j a v a . u t i l . c o n c u r r e n t . F u t u r e T a s k . r u n ( F u t u r e T a s k . j a v a : 266 ) a t j a v a . u t i l . c o n c u r r e n t . T h r e a d P o o l E x e c u t o r . r u n W o r k e r ( T h r e a d P o o l E x e c u t o r . j a v a : 1142 ) a t j a v a . u t i l . c o n c u r r e n t . T h r e a d P o o l E x e c u t o r Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type ‘org.apache.ibatis.session.defaults.DefaultSqlSessionFactory’ to required type ‘java.lang.String’ for property ‘sqlSessionFactoryBeanName’; nested exception is java.lang.IllegalStateException: Cannot convert value of type ‘org.apache.ibatis.session.defaults.DefaultSqlSessionFactory’ to required type ‘java.lang.String’ for property ‘sqlSessionFactoryBeanName’: no matching editors or conversion strategy found
at org.springframework.beans.AbstractNestablePropertyAccessor.convertIfNecessary(AbstractNestablePropertyAccessor.java:591)
at org.springframework.beans.AbstractNestablePropertyAccessor.convertForProperty(AbstractNestablePropertyAccessor.java:603)
at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:216)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1538)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1497)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1237)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:552)
… 24 more
Caused by: java.lang.IllegalStateException: Cannot convert value of type ‘org.apache.ibatis.session.defaults.DefaultSqlSessionFactory’ to required type ‘java.lang.String’ for property ‘sqlSessionFactoryBeanName’: no matching editors or conversion strategy found
at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:306)
at org.springframework.beans.AbstractNestablePropertyAccessor.convertIfNecessary(AbstractNestablePropertyAccessor.java:576)
… 30 more

四月 06, 2018 10:44:56 下午 org.apache.catalina.core.StandardContext startInternal
严重: One or more listeners failed to start. Full details will be found in the appropriate container log file
四月 06, 2018 10:44:56 下午 org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
信息: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [381] milliseconds.
四月 06, 2018 10:44:56 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/spring_mybatis_mvc] startup failed due to previous errors
四月 06, 2018 10:44:56 下午 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
四月 06, 2018 10:44:56 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
严重: The web application [/spring_mybatis_mvc] 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.
四月 06, 2018 10:44:56 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
严重: The web application [/spring_mybatis_mvc] 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.
四月 06, 2018 10:44:56 下午 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deployment of configuration descriptor E:\command_tool\tomcat7\apache-tomcat-7.0.77\conf\Catalina\localhost\spring_mybatis_mvc.xml has finished in 6,093 ms
四月 06, 2018 10:44:56 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\command_tool\tomcat7\apache-tomcat-7.0.77\webapps\docs
四月 06, 2018 10:44:56 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\command_tool\tomcat7\apache-tomcat-7.0.77\webapps\docs has finished in 159 ms
四月 06, 2018 10:44:56 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\command_tool\tomcat7\apache-tomcat-7.0.77\webapps\examples
四月 06, 2018 10:44:57 下午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
四月 06, 2018 10:44:57 下午 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
四月 06, 2018 10:44:57 下午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: attributeAdded(‘org.apache.jasper.compiler.TldLocationsCache’, ‘org.apache.jasper.compiler.TldLocationsCache@1314a86a’)
四月 06, 2018 10:44:57 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\command_tool\tomcat7\apache-tomcat-7.0.77\webapps\examples has finished in 718 ms
四月 06, 2018 10:44:57 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\command_tool\tomcat7\apache-tomcat-7.0.77\webapps\host-manager
四月 06, 2018 10:44:57 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\command_tool\tomcat7\apache-tomcat-7.0.77\webapps\host-manager has finished in 161 ms
四月 06, 2018 10:44:57 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\command_tool\tomcat7\apache-tomcat-7.0.77\webapps\manager
四月 06, 2018 10:44:57 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\command_tool\tomcat7\apache-tomcat-7.0.77\webapps\manager has finished in 148 ms
四月 06, 2018 10:44:57 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\command_tool\tomcat7\apache-tomcat-7.0.77\webapps\ROOT
四月 06, 2018 10:44:58 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\command_tool\tomcat7\apache-tomcat-7.0.77\webapps\ROOT has finished in 133 ms
四月 06, 2018 10:44:58 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler [“http-bio-8080”]
四月 06, 2018 10:44:58 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler [“ajp-bio-8009”]
四月 06, 2018 10:44:58 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 7565 ms
四月 06, 2018 10:45:00 下午 org.apache.catalina.loader.WebappClassLoaderBase findResourceInternal
信息: Illegal access: this web application instance has been stopped already. Could not load . The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.


解决方案:

< bean class=”org.mybatis.spring.mapper.MapperScannerConfigurer”>
< property name=”sqlSessionFactoryBeanName” value=”sqlSessionFactory”/>
//不能是ref=”sqlSessionFactory”
< property name=”basePackage” value=”com.ccut.DAO”>
< /bean>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值