build: 一些优化

This commit is contained in:
曹鹏飞 2025-01-25 14:58:14 +08:00
parent b2bd4cdb10
commit 5f49260837
7 changed files with 29 additions and 30 deletions

1
.gitignore vendored
View File

@ -31,3 +31,4 @@ build/
### VS Code ### ### VS Code ###
.vscode/ .vscode/
logs

View File

@ -45,7 +45,6 @@
<dependency> <dependency>
<groupId>com.baomidou</groupId> <groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-core</artifactId> <artifactId>mybatis-plus-core</artifactId>
<version>3.4.3.1</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework</groupId> <groupId>org.springframework</groupId>

View File

@ -28,7 +28,6 @@
<dependency> <dependency>
<groupId>com.baomidou</groupId> <groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId> <artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.5.9</version>
</dependency> </dependency>
<!-- <dependency>--> <!-- <dependency>-->
<!-- <groupId>com.baomidou</groupId>--> <!-- <groupId>com.baomidou</groupId>-->
@ -37,18 +36,15 @@
<dependency> <dependency>
<groupId>com.baomidou</groupId> <groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter-test</artifactId> <artifactId>mybatis-plus-boot-starter-test</artifactId>
<version>3.5.9</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.baomidou</groupId> <groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-generator</artifactId> <artifactId>mybatis-plus-generator</artifactId>
<version>3.5.9</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId> <artifactId>spring-boot-starter-test</artifactId>
<version>2.3.5.RELEASE</version>
<scope>test</scope> <scope>test</scope>
<exclusions> <exclusions>
<exclusion> <exclusion>
@ -80,11 +76,4 @@
</plugins> </plugins>
</build> </build>
<repositories>
<repository>
<id>central</id>
<url>https://repo1.maven.org/maven2/</url>
</repository>
</repositories>
</project> </project>

View File

@ -17,7 +17,7 @@ public class CodeGenerator {
FastAutoGenerator.create("jdbc:mysql://112.74.186.154:13151/mobilebroken?useUnicode=true&characterEncoding=UTF-8&tinyInt1isBit=false&useSSL=false&rewriteBatchedStatements=true&allowMultiQueries=true&serverTimezone=GMT%2B8&remarks=true&useInformationSchema=true&tinyInt1isBit=true" FastAutoGenerator.create("jdbc:mysql://112.74.186.154:13151/mobilebroken?useUnicode=true&characterEncoding=UTF-8&tinyInt1isBit=false&useSSL=false&rewriteBatchedStatements=true&allowMultiQueries=true&serverTimezone=GMT%2B8&remarks=true&useInformationSchema=true&tinyInt1isBit=true"
, "nflg", "Aciga@2022") , "nflg", "Aciga@2022")
.globalConfig(builder -> builder .globalConfig(builder -> builder
.author("曹鹏飞") .author("代码生成器生成")
.disableOpenDir() .disableOpenDir()
.outputDir(Paths.get(System.getProperty("user.dir")) + "/src/main/java") .outputDir(Paths.get(System.getProperty("user.dir")) + "/src/main/java")
.commentDate("yyyy-MM-dd") .commentDate("yyyy-MM-dd")

View File

@ -29,6 +29,10 @@
<groupId>com.baomidou</groupId> <groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId> <artifactId>mybatis-plus-boot-starter</artifactId>
</dependency> </dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-jsqlparser</artifactId>
</dependency>
<!-- <dependency>--> <!-- <dependency>-->
<!-- <groupId>com.baomidou</groupId>--> <!-- <groupId>com.baomidou</groupId>-->
<!-- <artifactId>mybatis-plus-jsqlparser</artifactId>--> <!-- <artifactId>mybatis-plus-jsqlparser</artifactId>-->

View File

@ -99,10 +99,10 @@ public class MysqlDataSourceConfig {
return sqlSessionFactoryBean.getObject(); return sqlSessionFactoryBean.getObject();
} }
// @Bean @Bean
// public MybatisPlusInterceptor mybatisPlusInterceptor() { public MybatisPlusInterceptor mybatisPlusInterceptor() {
// MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor(); MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
// interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.MYSQL)); interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.MYSQL));
// return interceptor; return interceptor;
// } }
} }

28
pom.xml
View File

@ -33,13 +33,12 @@
<cglib.version>3.3.0</cglib.version> <cglib.version>3.3.0</cglib.version>
<lombok.version>1.18.34</lombok.version> <lombok.version>1.18.34</lombok.version>
<maven-surefire-plugin.version>3.2.5</maven-surefire-plugin.version> <maven-surefire-plugin.version>3.2.5</maven-surefire-plugin.version>
<junit.version>5.11.0</junit.version>
<mybatis-plus.version>3.4.3.1</mybatis-plus.version> <mybatis-plus.version>3.5.9</mybatis-plus.version>
<druid.version>1.1.22</druid.version> <druid.version>1.2.23</druid.version>
<freemarker.version>2.3.31</freemarker.version> <freemarker.version>2.3.31</freemarker.version>
<sa-token.version>1.39.0</sa-token.version> <sa-token.version>1.39.0</sa-token.version>
<weixin.version>4.7.0</weixin.version> <weixin.version>4.7.0</weixin.version>
</properties> </properties>
<dependencies> <dependencies>
<dependency> <dependency>
@ -103,7 +102,14 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.baomidou</groupId> <groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId> <artifactId>mybatis-plus-bom</artifactId>
<version>${mybatis-plus.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-core</artifactId>
<version>${mybatis-plus.version}</version> <version>${mybatis-plus.version}</version>
</dependency> </dependency>
<dependency> <dependency>
@ -136,12 +142,12 @@
<artifactId>sa-token-jwt</artifactId> <artifactId>sa-token-jwt</artifactId>
<version>${sa-token.version}</version> <version>${sa-token.version}</version>
</dependency> </dependency>
<!-- <dependency>--> <dependency>
<!-- <groupId>org.junit.jupiter</groupId>--> <groupId>org.junit.jupiter</groupId>
<!-- <artifactId>junit-jupiter</artifactId>--> <artifactId>junit-jupiter</artifactId>
<!-- <version>${junit.version}</version>--> <version>${junit.version}</version>
<!-- <scope>test</scope>--> <scope>test</scope>
<!-- </dependency>--> </dependency>
<dependency> <dependency>
<groupId>com.github.binarywang</groupId> <groupId>com.github.binarywang</groupId>
<artifactId>weixin-java-mp</artifactId> <artifactId>weixin-java-mp</artifactId>