只需要在配置文件中添加访问端口和访问路径就OK,一般添加在配置文件开头
server.port=9090
server.context-path=/springboot //2.0之前
server.servlet.context-path=/springboot //2.0之后
现在只能用http://127.0.0.1:9090/springboot才能访问到项目
只需要在配置文件中添加访问端口和访问路径就OK,一般添加在配置文件开头
server.port=9090
server.context-path=/springboot //2.0之前
server.servlet.context-path=/springboot //2.0之后
现在只能用http://127.0.0.1:9090/springboot才能访问到项目