Springboot启动遇到错误Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.Error starting ApplicationContext. To display the conditions report r...
摘要由CSDN通过智能技术生成
Springboot启动遇到错误Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2020-02-0801:19:27.966[main] ERROR org.springframework.boot.SpringApplication - Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in classpath resource [org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource:'file [I:\project\ego_parent\ego_dubbo\target\classes\mybatis\TbContentCategoryMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'file [I:\project\ego_parent\ego_dubbo\target\classes\mybatis\TbContentCategoryMapper.xml]'. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for com.ego.mapper.TbContentCategoryMapper.BaseResultMap
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:607)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555
Springboot启动错误Error starting ApplicationContext. To display the conditions
Springboot启动遇到错误Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.Error starting ApplicationContext. To display the conditions report r...