在配置文件application.properties中加入:
server.port=8081
server.context-path=/springboot
或者把application.properties改成application.yml,并加入:
server:
port: 8081
context-path: /springboot
在配置文件application.properties中加入:
server.port=8081
server.context-path=/springboot
或者把application.properties改成application.yml,并加入:
server:
port: 8081
context-path: /springboot