问题描述:
*************************** APPLICATION FAILED TO START *************************** Description: The bean 'localeResolver', defined in class path resource [com/botany/spore/core/config/CommonConfig.class], could not be registered. A bean with that name has already been defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class] and overriding is disabled. Action: Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true
解决办法:
这个包反正也不用,直接移除,并且把pom.xml里的配置信息也删掉,即
<dependency>
<groupId>com.botany</groupId>
<artifactId>spore-base-mvc</artifactId>
<version>3.0-SNAPSHOT</version>
</dependency>