SpringBoot系列教材 (八)- springboot设置端口和上下文路径

SpringBoot系列教材 (八)- 基础 - springboot设置端口和上下文路径


步骤1:端口和上下文路径

步骤 1 : 端口和上下文路径

如图所示,可以通过修改application.properties,修改访问的端口号和上下文路径

端口和上下文路径

spring.mvc.view.prefix=/WEB-INF/jsp/

spring.mvc.view.suffix=.jsp

server.port=8888

server.context-path=/test


更多内容,点击了解: http://how2j.cn/k/springboot/springboot-port-contextpath/1658.html

猜你喜欢

转载自blog.csdn.net/wanghuiwei888/article/details/88080752