标签:figure cat err one tomcat protected tomcat7 creation cte
java -jar xx.jar
方式运行,一定是jar包 <packaging>war</packaging>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
public class ServletInitializer extends SpringBootServletInitializer {
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(SpringBootApplication.class);
}
}
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultValidator' defined in class path
标签:figure cat err one tomcat protected tomcat7 creation cte
原文地址:https://www.cnblogs.com/Lyn4ever/p/11495048.html