报错 SpringBootApplication cannot be resolved to a type
是多模块项目.在web项目启动时,报错
在父项目里,springboot 父依赖 就parent里提升springboot依赖的版本就可以了.
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.1.RELEASE</version>
</parent>
之前的版本是 1.3.1