課程
/后端開發
/Java
/2小時學會Spring Boot
用@GetMapping這個注解,pom.xml文件要配置什么jar包?
2018-01-18
源自:2小時學會Spring Boot 5-2
正在回答
import org.springframework.web.bind.annotation.GetMapping;
GetMapping 是要上面這個包,pom中導入
<dependency> ? <groupId>org.springframework.boot</groupId> ? <artifactId>spring-boot-starter-web</artifactId></dependency>
qq_李東遠_0 提問者
使用@RestController的時候,無需在pom.xml中配任何jar包
舉報
Spring Boot入門視頻教程,你將學會使用Spring Boot快速構建應用程序
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2018-01-18
import org.springframework.web.bind.annotation.GetMapping;
GetMapping 是要上面這個包,pom中導入
<dependency>
? <groupId>org.springframework.boot</groupId>
? <artifactId>spring-boot-starter-web</artifactId>
</dependency>
2018-01-18
使用@RestController的時候,無需在pom.xml中配任何jar包