springboot依賴注入需要引入什么包
springboot依賴注入需要引入什么包
溫溫醬
2019-02-18 13:12:22
TA貢獻(xiàn)1725條經(jīng)驗(yàn) 獲得超8個(gè)贊
<!-- 核心模塊,包括自動(dòng)配置支持、日志和YAML -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<!-- 測(cè)試模塊,包括JUnit、Hamcrest、Mockito -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<!-- 引入Web模塊 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
舉報(bào)