SpringBoot中如何修改配置端口,context-path

SpringBoot中的參數修改一般都是在application.properties下修改 配置文件路徑: src/main/resources/application.properties 修改端口只需要加上 我這裏更改成80端口 server.port=80 更改context-path server.servlet.context-path= /demo demo 爲你想更改的映射名稱,記
相關文章
相關標籤/搜索