springboot在配置文件中配置訪問路徑的寫法改變了.

springboot的application.properties文件中可配置訪問地址的路徑,spring 好比以前是http://localhost/,如今想用http://localhost/test/.springboot 以前老版本中寫法是server.context-path=/testapp 如今版本中寫法是server.servlet.context-path=/testserver
相關文章
相關標籤/搜索