springboot本身提供了内部tomcat,可以使用main方法直接启动即可,此时在访问项目请求时,不需要加上项目名称。例如:http://localhost:8088/user/

springboot使用内部tomcat启动和外部tomcat启动的区别

如果使用外部tomcat启动时,则需要加上项目名称,例如:http://localhost:8081/springboot-mybatis-demo/user/

springboot使用内部tomcat启动和外部tomcat启动的区别

可能有方法使用外部tomcat启动可以不用加项目名称,现在先做记录。

 

相关文章:

  • 2022-02-17
  • 2022-12-23
  • 2021-08-18
  • 2021-11-23
  • 2021-04-05
  • 2022-01-19
  • 2022-12-23
  • 2021-11-10
猜你喜欢
  • 2022-12-23
  • 2021-11-19
  • 2021-12-13
  • 2022-12-23
相关资源
相似解决方案