springboot的依赖

Posted 互联网蜜蜂

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了springboot的依赖相关的知识,希望对你有一定的参考价值。

 1 <parent>
 2 <groupId>org.springframework.boot</groupId>
 3 <artifactId>spring-boot-starter-parent</artifactId>
 4 <version>2.0.2.RELEASE</version>
 5 </parent>
 6 <dependencies>
 7 <dependency>
 8 <groupId>org.springframework.boot</groupId>
 9 <artifactId>spring-boot-starter-web</artifactId>
10 </dependency>
11 <!-- springBoot JPA的起步依赖 -->
12 <dependency>
13 <groupId>org.springframework.boot</groupId>
14 <artifactId>spring-boot-starter-data-jpa</artifactId>
15 </dependency>
16 
17 <dependency>
18 <groupId>mysql</groupId>
19 <artifactId>mysql-connector-java</artifactId>
20 </dependency>
21 <dependency>
22 <groupId>org.springframework.boot</groupId>
23 <artifactId>spring-boot-starter-freemarker</artifactId>
24 </dependency>
25 
26 <dependency>
27 <groupId>org.mybatis.spring.boot</groupId>
28 <artifactId>mybatis-spring-boot-starter</artifactId>
29 <version>1.1.1</version>
30 </dependency>
31 
32 <dependency>
33 <groupId>org.springframework.boot</groupId>
34 <artifactId>spring-boot-starter-test</artifactId>
35 <scope>test</scope>
36 </dependency>
37 
38 <dependency>
39 <groupId>org.springframework.boot</groupId>
40 <artifactId>spring-boot-starter-data-redis</artifactId>
41 </dependency>
42 <dependency>
43 <groupId>org.springframework.boot</groupId>
44 <artifactId>spring-boot-starter-data-elasticsearch</artifactId>
45 </dependency>
46 </dependencies>
47 <build>
48 <resources>
49 <resource>
50 <directory>src/main/java</directory>
51 <includes>
52 <include>**/*.properties</include>
53 <include>**/*.xml</include>
54 </includes>
55 <filtering>false</filtering>
56 </resource>
57 <resource>
58 <directory>src/main/resources</directory>
59 <includes>
60 <include>**/*.*</include>
61 </includes>
62 <filtering>false</filtering>
63 </resource>
64 </resources>
65 <plugins>
66 <plugin>
67 <groupId>org.springframework.boot</groupId>
68 <artifactId>spring-boot-maven-plugin</artifactId>
69 </plugin>
70 </plugins>
71 </build>

注意版本问题!

以上是关于springboot的依赖的主要内容,如果未能解决你的问题,请参考以下文章

SpringBoot中表单提交报错“Content type ‘application/x-www-form-urlencoded;charset=UTF-8‘ not supported“(代码片段

Spring boot:thymeleaf 没有正确渲染片段

11SpringBoot-CRUD-thymeleaf公共页面元素抽取

学习小片段——springboot 错误处理

spring练习,在Eclipse搭建的Spring开发环境中,使用set注入方式,实现对象的依赖关系,通过ClassPathXmlApplicationContext实体类获取Bean对象(代码片段

SpringBoot2.6.x默认禁用循环依赖后的应对策略