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