1、为了我们平时方便开发,我们可以在同一个idea窗口创建多个项目模块,创建方式如下

6、SpringBoot+MyBaits+Maven+Idea+pagehelper分页插件

6、SpringBoot+MyBaits+Maven+Idea+pagehelper分页插件

6、SpringBoot+MyBaits+Maven+Idea+pagehelper分页插件

6、SpringBoot+MyBaits+Maven+Idea+pagehelper分页插件

6、SpringBoot+MyBaits+Maven+Idea+pagehelper分页插件

6、SpringBoot+MyBaits+Maven+Idea+pagehelper分页插件

 

2、项目中pom.xm文件的内容如下

 1 <?xml version="1.0" encoding="UTF-8"?>
 2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 3     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 4     <modelVersion>4.0.0</modelVersion>
 5     <parent>
 6         <groupId>org.springframework.boot</groupId>
 7         <artifactId>spring-boot-starter-parent</artifactId>
 8         <version>2.1.3.RELEASE</version>
 9         <relativePath/> <!-- lookup parent from repository -->
10     </parent>
11     <groupId>cn.kgc</groupId>
12     <artifactId>springbootmybatis</artifactId>
13     <version>0.0.1-SNAPSHOT</version>
14     <name>springbootmybatis</name>
15     <description>Demo project for Spring Boot</description>
16 
17     <properties>
18         <java.version>1.8</java.version>
19     </properties>
20 
21     <dependencies>
22         <dependency>
23             <groupId>org.springframework.boot</groupId>
24             <artifactId>spring-boot-starter-jdbc</artifactId>
25         </dependency>
26         <dependency>
27             <groupId>org.springframework.boot</groupId>
28             <artifactId>spring-boot-starter-thymeleaf</artifactId>
29         </dependency>
30         <dependency>
31             <groupId>org.springframework.boot</groupId>
32             <artifactId>spring-boot-starter-web</artifactId>
33         </dependency>
34         <dependency>
35             <groupId>org.mybatis.spring.boot</groupId>
36             <artifactId>mybatis-spring-boot-starter</artifactId>
37             <version>2.0.0</version>
38         </dependency>
39         <!--一定注意版本号,此处需要修改,把默认score的删掉哦-->
40         <dependency>
41             <groupId>mysql</groupId>
42             <artifactId>mysql-connector-java</artifactId>
43             <version>5.1.38</version>
44         </dependency>
45 
46         <dependency>
47             <groupId>org.springframework.boot</groupId>
48             <artifactId>spring-boot-starter-test</artifactId>
49             <scope>test</scope>
50         </dependency>
51        <!--spring boot 分页查询,需要手动配置-->
52         <dependency>
53             <groupId>com.github.pagehelper</groupId>
54             <artifactId>pagehelper-spring-boot-starter</artifactId>
55             <version>1.2.3</version>
56         </dependency>
57 
58     </dependencies>
59 
60     <build>
61         <plugins>
62             <plugin>
63                 <groupId>org.springframework.boot</groupId>
64                 <artifactId>spring-boot-maven-plugin</artifactId>
65             </plugin>
66         </plugins>
67     </build>
68 
69 </project>
pom.xml

相关文章:

  • 2022-12-23
  • 2021-05-23
  • 2022-12-23
  • 2021-08-09
  • 2021-05-03
  • 2021-06-04
  • 2022-01-19
  • 2022-12-23
猜你喜欢
  • 2021-04-07
  • 2021-06-10
  • 2021-07-19
  • 2022-12-23
  • 2021-09-24
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案