springboot启动没报错但是访问不到url

检查下有没有输出如下部分,没有的话就是没有启动内置的tomcat,可以注释掉scope解决


<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<!--<scope>provided</scope>-->                        <---------注释掉这行
</dependency>

猜你喜欢

转载自blog.csdn.net/the_knife/article/details/78381050