Browse Source

添加 mybatisplus

lfj 3 years ago
parent
commit
8479dae578
3 changed files with 34 additions and 43 deletions
  1. 4 0
      fjs-scenic-entity/pom.xml
  2. 30 21
      fjs-scenic-mapper/pom.xml
  3. 0 22
      pom.xml

+ 4 - 0
fjs-scenic-entity/pom.xml

@@ -12,5 +12,9 @@
       <artifactId>fjs-scenic-common</artifactId>
       <version>0.0.1-SNAPSHOT</version>
     </dependency>
+      <dependency>
+          <groupId>org.projectlombok</groupId>
+          <artifactId>lombok</artifactId>
+      </dependency>
   </dependencies>
 </project>

+ 30 - 21
fjs-scenic-mapper/pom.xml

@@ -9,36 +9,45 @@
 	<artifactId>fjs-scenic-mapper</artifactId>
 	<dependencies>
 		<dependency>
+			<groupId>com.baomidou</groupId>
+			<artifactId>mybatis-plus-boot-starter</artifactId>
+			<version>3.4.3</version>
+		</dependency>
+		<dependency>
+			<groupId>com.github.pagehelper</groupId>
+			<artifactId>pagehelper-spring-boot-starter</artifactId>
+			<version>1.3.1</version>
+			<exclusions>
+				<exclusion>
+					<groupId>org.mybatis</groupId>
+					<artifactId>mybatis</artifactId>
+				</exclusion>
+				<exclusion>
+					<groupId>org.mybatis</groupId>
+					<artifactId>mybatis-spring</artifactId>
+				</exclusion>
+			</exclusions>
+		</dependency>
+		<dependency>
 			<groupId>com.fjs.scenic</groupId>
 			<artifactId>fjs-scenic-common</artifactId>
 			<version>0.0.1-SNAPSHOT</version>
+			<exclusions>
+				<exclusion>
+					<artifactId>guava</artifactId>
+					<groupId>com.google.guava</groupId>
+				</exclusion>
+				<exclusion>
+					<artifactId>commons-io</artifactId>
+					<groupId>commons-io</groupId>
+				</exclusion>
+			</exclusions>
 		</dependency>
 		<dependency>
 			<groupId>com.fjs.scenic</groupId>
 			<artifactId>fjs-scenic-entity</artifactId>
 			<version>0.0.1-SNAPSHOT</version>
 		</dependency>
-		<!-- mybatis -->
-		<dependency>
-			<groupId>org.mybatis.spring.boot</groupId>
-			<artifactId>mybatis-spring-boot-starter</artifactId>
-		</dependency>
-		<!--分页-->
-		<dependency>
-			<groupId>com.github.pagehelper</groupId>
-			<artifactId>pagehelper</artifactId>
-			<version>5.1.8</version>
-		</dependency>
-		<dependency>
-			<groupId>com.github.pagehelper</groupId>
-			<artifactId>pagehelper-spring-boot-autoconfigure</artifactId>
-			<version>1.2.3</version>
-		</dependency>
-		<dependency>
-			<groupId>com.github.pagehelper</groupId>
-			<artifactId>pagehelper-spring-boot-starter</artifactId>
-			<version>1.2.3</version>
-		</dependency>
 		<!-- MYSQL包 -->
 		<dependency>
 			<groupId>mysql</groupId>

+ 0 - 22
pom.xml

@@ -41,25 +41,11 @@
 				<artifactId>mybatis-spring-boot-starter</artifactId>
 				<version>1.3.2</version>
 			</dependency>
-			<!-- 支付相关 -->
-			<!-- https://mvnrepository.com/artifact/com.alipay.sdk/alipay-sdk-java -->
-			<!-- <dependency>
-				<groupId>com.alipay.sdk</groupId>
-				<artifactId>alipay-sdk-java</artifactId>
-				<version>3.7.4.ALL</version>
-			</dependency> -->
-			<!-- https://mvnrepository.com/artifact/com.github.wxpay/wxpay-sdk -->
 			<dependency>
 				<groupId>com.github.wxpay</groupId>
 				<artifactId>wxpay-sdk</artifactId>
 				<version>0.0.3</version>
 			</dependency>
-			<!--热部署工具-->
-			<!-- <dependency>
-				<groupId>org.springframework.boot</groupId>
-				<artifactId>spring-boot-devtools</artifactId>
-				<optional>true</optional>
-			</dependency> -->
 		</dependencies>
 
 	</dependencyManagement>
@@ -85,14 +71,6 @@
 	</profiles>
 	<build>
 		<plugins>
-			<!-- <plugin>
-				<groupId>org.springframework.boot</groupId>
-				<artifactId>spring-boot-maven-plugin</artifactId>
-				热启动
-				<configuration>
-					<fork>true</fork>
-				</configuration>
-			</plugin> -->
 		</plugins>
 	</build>
 	<modules>