繁星淼淼
<parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>1.5.9.RELEASE</version></parent><dependencies><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId></dependency></dependencies>这个parent 和下面那个web的约束要匹配我之前分开来取的,然后就是tomcat启动访问404所以你改一下依赖就好了,两个记得要配对