spring boot的项目名称问题

spring boot直接执行main函数时是不需要加项目名称,但是可以在application配置文件中配置server.context-path=/*来配置项目名称;

spring mvc的运行方式是将打成的war包在tomcat中运行,这种情况下访问需要在url中加入项目名。

posted on 2019-02-16 02:09  Mofitor  阅读(261)  评论(0编辑  收藏  举报

导航