代码拉取完成,页面将自动刷新
讲springboot项目默认servlet替换成smart-servlet,
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.smartboot.servlet</groupId>
<artifactId>smart-servlet-spring-boot-starter</artifactId>
<version>0.6</version>
</dependency>
运行项目提示:Caused by: java.io.FileNotFoundException: class path resource [org/springframework/boot/web/servlet/server/AbstractServletWebServerFactory.class] cannot be opened because it does not exist,如图:
其中报错是在SpringApplication.run(AppConfig.class, args);中抛出来的。
大佬看看 麻烦了 感谢!!!!