关于springboot如何添加其他依赖
2 回答
慕桂英3389331
TA贡献2036条经验 获得超8个赞
spring boot 基本依赖
1.基础核心依赖
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId> <version>1.5.1.RELEASE</version>
</parent>
2.web应用依赖
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
</dependencies>
3.使用freemark依赖(不和web应用依赖共存)
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-freemarker</artifactId>
</dependency>
</dependencies>
扩充一下:
添加回答
举报
0/150
提交
取消