spring boot
利用idea建立spring boot項目
添加spring-boot-starter-web依靠
啟動spring boot項目,瀏覽器直接拜候8080端口,拜候路徑為"/"
點竄設置裝備擺設文件application.properties
添加server.servlet.context-path=/hello,代表拜候路徑為"/hello"
重啟項目,如下圖所示
0 篇文章
如果覺得我的文章對您有用,請隨意打賞。你的支持將鼓勵我繼續創作!