Home > Back-end >  Org. Springframework. Beans. Factory. BeanCreationException
Org. Springframework. Beans. Factory. BeanCreationException

Time:01-31

What a great god can help me find the problem
The Exception in the thread "main" org. Springframework. Beans. Factory. BeanCreationException: Error creating bean with the name 'sqlSessionFactory defined in the class path resource [the applicationcontext.xml] : Invocation of the init method failed; Nested exception is org. Springframework. Core. NestedIOException: Failed to parse the config resource: the class path resource [mybatis - config. XML]; Nested exception is org. Apache. Ibatis. Builder. BuilderException: Error parsing SQL Mapper Configuration. The Cause: org. Apache. Ibatis. Builder. BuilderException: Error parsing XML Mapper. Cause: org. Apache. Ibatis. Builder. BuilderException: Error resolving class. Cause: org. Apache. Ibatis. The TypeException: Could not resolve the type alias' customer '. The Cause: Java. Lang. ClassNotFoundException: always find a class: the customer
The at org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. InitializeBean (AbstractAutowireCapableBeanFactory. Java: 1628)
The at org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. DoCreateBean (AbstractAutowireCapableBeanFactory. Java: 555)
The at org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. CreateBean (AbstractAutowireCapableBeanFactory. Java: 483)
The at org. Springframework. Beans. Factory. Support. AbstractBeanFactory $1. GetObject (AbstractBeanFactory. Java: 306)
The at org. Springframework. Beans. Factory. Support. DefaultSingletonBeanRegistry. GetSingleton (DefaultSingletonBeanRegistry. Java: 230)
The at org. Springframework. Beans. Factory. Support. AbstractBeanFactory. DoGetBean (AbstractBeanFactory. Java: 302)
The at org. Springframework. Beans. Factory. Support. AbstractBeanFactory. GetBean (AbstractBeanFactory. Java: 197)
The at org. Springframework. Beans. Factory. Support. DefaultListableBeanFactory. PreInstantiateSingletons (DefaultListableBeanFactory. Java: 742)
The at org. Springframework. Context. Support. AbstractApplicationContext. FinishBeanFactoryInitialization (AbstractApplicationContext. Java: 866)
The at org. Springframework. Context. Support. AbstractApplicationContext. Refresh (AbstractApplicationContext. Java: 542)
The at org. Springframework. Context. Support. ClassPathXmlApplicationContext. & lt; init> (ClassPathXmlApplicationContext. Java: 139)
The at org. Springframework. Context. Support. ClassPathXmlApplicationContext. & lt; init> (ClassPathXmlApplicationContext. Java: 83)
At com. Wu. Test. DaoTest. Main (DaoTest. Java: 19)
Under Caused by: org. Springframework. Core. NestedIOException: Failed to parse the config resource: the class path resource [mybatis - config. XML]; Nested exception is org. Apache. Ibatis. Builder. BuilderException: Error parsing SQL Mapper Configuration. The Cause: org. Apache. Ibatis. Builder. BuilderException: Error parsing XML Mapper. Cause: org. Apache. Ibatis. Builder. BuilderException: Error resolving class. Cause: org. Apache. Ibatis. The TypeException: Could not resolve the type alias' customer '. The Cause: Java. Lang. ClassNotFoundException: always find a class: the customer
The at org. Mybatis. Spring. SqlSessionFactoryBean. BuildSqlSessionFactory (SqlSessionFactoryBean. Java: 500)
The at org. Mybatis. Spring. SqlSessionFactoryBean. AfterPropertiesSet (SqlSessionFactoryBean. Java: 380)
The at org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. InvokeInitMethods (AbstractAutowireCapableBeanFactory. Java: 1687)
The at org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. InitializeBean (AbstractAutowireCapableBeanFactory. Java: 1624)
. 12 more
Under Caused by: org. Apache. Ibatis. Builder. BuilderException: Error parsing SQL Mapper Configuration. The Cause: org. Apache. Ibatis. Builder. BuilderException: Error parsing XML Mapper. Cause: org. Apache. Ibatis. Builder. BuilderException: Error resolving class. Cause: org. Apache. Ibatis. The TypeException: Could not resolve the type alias' customer '. The Cause: Java. Lang. ClassNotFoundException: always find a class: the customer
The at org. Apache. Ibatis. Builder. XML. XMLConfigBuilder. ParseConfiguration (XMLConfigBuilder. Java: 120)
The at org. Apache. Ibatis. Builder. XML. XMLConfigBuilder. Parse (XMLConfigBuilder. Java: 98)
The at org. Mybatis. Spring. SqlSessionFactoryBean. BuildSqlSessionFactory (SqlSessionFactoryBean. Java: 494)
. 15 more
Under Caused by: org. Apache. Ibatis. Builder. BuilderException: Error parsing XML Mapper. Cause: org. Apache. Ibatis. Builder. BuilderException: Error resolving class. Cause: org. Apache. Ibatis. The TypeException: Could not resolve the type alias' customer '. The Cause: Java. Lang. ClassNotFoundException: always find a class: the customer
The at org. Apache. Ibatis. Builder. XML. XMLMapperBuilder. ConfigurationElement (XMLMapperBuilder. Java: 120)
The at org. Apache. Ibatis. Builder. XML. XMLMapperBuilder. Parse (XMLMapperBuilder. Java: 92)
The at org. Apache. Ibatis. Builder. XML. XMLConfigBuilder. MapperElement (XMLConfigBuilder. Java: 369)
The at org. Apache. Ibatis. Builder. XML. XMLConfigBuilder. ParseConfiguration (XMLConfigBuilder. Java: 118)
. 17 more
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related