refactor: 整理pom文件 移除yml无用属性

This commit is contained in:
valarchie 2022-12-18 23:11:09 +08:00
parent fee029a051
commit b9f67ede15
9 changed files with 38 additions and 55 deletions

View File

@ -18,29 +18,12 @@
<dependencies>
<!-- spring-boot-devtools -->
<!--<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
&lt;!&ndash; 表示依赖不会传递 &ndash;&gt;
<optional>true</optional>
</dependency>-->
<!-- Mysql驱动包 -->
<!-- <dependency>-->
<!-- <groupId>mysql</groupId>-->
<!-- <artifactId>mysql-connector-java</artifactId>-->
<!-- </dependency>-->
<!-- 核心模块-->
<dependency>
<groupId>com.agileboot</groupId>
<artifactId>agileboot-infrastructure</artifactId>
</dependency>
<!-- 业务领域 -->
<dependency>
<groupId>com.agileboot</groupId>
@ -59,7 +42,6 @@
</exclusions>
</dependency>
</dependencies>
<build>

View File

@ -18,30 +18,18 @@
<dependencies>
<!-- 定时任务 暂时不用 -->
<!--<dependency>
<groupId>org.quartz-scheduler</groupId>
<artifactId>quartz</artifactId>
<exclusions>
<exclusion>
<groupId>com.mchange</groupId>
<artifactId>c3p0</artifactId>
</exclusion>
</exclusions>
</dependency>-->
<!-- 核心模块-->
<dependency>
<groupId>com.agileboot</groupId>
<artifactId>agileboot-infrastructure</artifactId>
</dependency>
<!-- 业务领域 -->
<dependency>
<groupId>com.agileboot</groupId>
<artifactId>agileboot-domain</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -35,7 +35,7 @@
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<!-- pagehelper 分页插件 -->
<!-- page helper 分页插件 -->
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
@ -151,14 +151,12 @@
<dependency>
<groupId>org.lionsoul</groupId>
<artifactId>ip2region</artifactId>
<version>2.6.5</version>
</dependency>
<!-- 防止进入swagger页面报类型转换错误排除3.0.0中的引用手动增加1.6.2版本 -->
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-models</artifactId>
<version>1.6.2</version>
</dependency>
<dependency>
@ -171,11 +169,9 @@
<artifactId>commons-validator</artifactId>
</dependency>
<!-- TODO 正式环境请注释掉 version需要统一管理 -->
<dependency>
<groupId>it.ozimov</groupId>
<artifactId>embedded-redis</artifactId>
<version>0.7.3</version>
<!-- 不排除掉slf4j的话 会冲突-->
<exclusions>
<exclusion>

View File

@ -46,12 +46,6 @@
</exclusion>
</exclusions>
</dependency>
<!--
&lt;!&ndash; 核心模块&ndash;&gt;
<dependency>
<groupId>com.agileboot</groupId>
<artifactId>agileboot-infrastructure</artifactId>
</dependency>-->
</dependencies>

View File

@ -3,6 +3,8 @@ package com.agileboot.domain.common.command;
import cn.hutool.core.collection.CollUtil;
import com.agileboot.common.exception.ApiException;
import com.agileboot.common.exception.error.ErrorCode;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import lombok.Data;
@ -16,10 +18,10 @@ public class BulkOperationCommand<T> {
if (CollUtil.isEmpty(idList)) {
throw new ApiException(ErrorCode.Business.BULK_DELETE_IDS_IS_INVALID);
}
this.ids = idList;
// 移除重复元素
this.ids = new HashSet<>(idList);
}
private List<T> ids;
private Collection<T> ids;
}

View File

@ -96,7 +96,6 @@
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>31.0.1-jre</version>
</dependency>
<dependency>

View File

@ -48,12 +48,6 @@ public class TokenService {
@Value("${token.secret}")
private String secret;
/**
* 令牌有效期
*/
@Value("${token.expireTime}")
private int expireTime;
/**
* 自动刷新token的时间
*/

View File

@ -85,8 +85,6 @@ token:
header: Authorization
# 令牌密钥 TODO 记得更换
secret: sdhfkjshBN6rr32df38
# 令牌有效期默认30分钟
expireTime: 30
# 自动刷新token的时间
autoRefreshTime: 20

32
pom.xml
View File

@ -32,12 +32,15 @@
<velocity.version>2.3</velocity.version>
<jwt.version>0.9.1</jwt.version>
<hutool.version>5.7.22</hutool.version>
<!-- TODO 确定不用可删除 找个时间 整理pom文件 <junit.version>4.13.1</junit.version>-->
<lombok.version>1.18.24</lombok.version>
<mybatis-plus.version>3.5.2</mybatis-plus.version>
<mybatis-plus-generator.version>3.5.1</mybatis-plus-generator.version>
<mockito.version>1.10.19</mockito.version>
<common-validator.version>1.7</common-validator.version>
<it.ozimov.version>0.7.3</it.ozimov.version>
<io.swagger.version>1.6.2</io.swagger.version>
<org.lionsoul.version>2.6.5</org.lionsoul.version>
<com.google.guava.version>31.0.1-jre</com.google.guava.version>
</properties>
<!-- 依赖声明 -->
@ -242,6 +245,33 @@
<scope>test</scope>
</dependency>
<!-- 获取系统信息 -->
<dependency>
<groupId>it.ozimov</groupId>
<artifactId>embedded-redis</artifactId>
<version>${it.ozimov.version}</version>
</dependency>
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-models</artifactId>
<version>${io.swagger.version}</version>
</dependency>
<!-- 本地ip库 -->
<dependency>
<groupId>org.lionsoul</groupId>
<artifactId>ip2region</artifactId>
<version>${org.lionsoul.version}</version>
</dependency>
<!-- 引入guava包 -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${com.google.guava.version}</version>
</dependency>
</dependencies>
</dependencyManagement>