通過修改application.properties內容來改變訪問的端口號和上下文路徑(很簡單!)
spring.mvc.view.prefix=/WEB-INF/jsp/ spring.mvc.view.suffix=.jsp server.port=9090 server.context-path=/test
訪問路徑為:http://127.0.0.1:9090/test/hello
效果圖:
通過修改application.properties內容來改變訪問的端口號和上下文路徑(很簡單!)
spring.mvc.view.prefix=/WEB-INF/jsp/ spring.mvc.view.suffix=.jsp server.port=9090 server.context-path=/test
訪問路徑為:http://127.0.0.1:9090/test/hello
效果圖:
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。