SpringBoot項目修改訪問端口和訪問路徑的方法

建立SpringBoot項目,啓動後,默認的訪問路徑即主機IP+默認端口號8080:http://localhost:8080/web 此時,咱們就能夠訪問Controller層的接口了,如:http://localhost:8080/hellospring package com.springboot.test; import org.springframework.web.bind.an
相關文章
相關標籤/搜索