[fix] 修改标签

This commit is contained in:
hhyykk 2024-10-09 14:42:26 +08:00
parent 550f4cbdae
commit 6eec60e9dd
116 changed files with 133 additions and 139 deletions

View File

@ -30,8 +30,7 @@
</modules> </modules>
<name>${project.artifactId}</name> <name>${project.artifactId}</name>
<description>芋道项目基础脚手架</description> <description>项目基础脚手架</description>
<url>https://github.com/YunaiV/ruoyi-vue-pro</url>
<properties> <properties>
<revision>2.3.0-SNAPSHOT</revision> <revision>2.3.0-SNAPSHOT</revision>

View File

@ -3,7 +3,7 @@ package cn.iocoder.yudao.framework.common.core;
/** /**
* 可生成 Int 数组的接口 * 可生成 Int 数组的接口
* *
* @author 芋道源码 * @author hhyykk
*/ */
public interface IntArrayValuable { public interface IntArrayValuable {

View File

@ -9,7 +9,7 @@ import java.io.Serializable;
/** /**
* Key Value 的键值对 * Key Value 的键值对
* *
* @author 芋道源码 * @author hhyykk
*/ */
@Data @Data
@NoArgsConstructor @NoArgsConstructor

View File

@ -10,7 +10,7 @@ import java.util.Arrays;
/** /**
* 通用状态枚举 * 通用状态枚举
* *
* @author 芋道源码 * @author hhyykk
*/ */
@Getter @Getter
@AllArgsConstructor @AllArgsConstructor

View File

@ -6,7 +6,7 @@ import lombok.Getter;
/** /**
* 文档地址 * 文档地址
* *
* @author 芋道源码 * @author hhyykk
*/ */
@Getter @Getter
@AllArgsConstructor @AllArgsConstructor

View File

@ -9,7 +9,7 @@ import java.util.Arrays;
/** /**
* 终端的枚举 * 终端的枚举
* *
* @author 芋道源码 * @author hhyykk
*/ */
@RequiredArgsConstructor @RequiredArgsConstructor
@Getter @Getter

View File

@ -5,7 +5,7 @@ package cn.iocoder.yudao.framework.common.enums;
* *
* 考虑到每个 starter 都需要用到该工具类所以放到 common 模块下的 enums 包下 * 考虑到每个 starter 都需要用到该工具类所以放到 common 模块下的 enums 包下
* *
* @author 芋道源码 * @author hhyykk
*/ */
public interface WebFilterOrderEnum { public interface WebFilterOrderEnum {

View File

@ -10,7 +10,7 @@ import cn.iocoder.yudao.framework.common.exception.ErrorCode;
* 虽然说HTTP 响应状态码作为业务使用表达能力偏弱但是使用在系统层面还是非常不错的 * 虽然说HTTP 响应状态码作为业务使用表达能力偏弱但是使用在系统层面还是非常不错的
* 比较特殊的是因为之前一直使用 0 作为成功就不使用 200 * 比较特殊的是因为之前一直使用 0 作为成功就不使用 200
* *
* @author 芋道源码 * @author hhyykk
*/ */
public interface GlobalErrorCodeConstants { public interface GlobalErrorCodeConstants {

View File

@ -25,7 +25,7 @@ package cn.iocoder.yudao.framework.common.exception.enums;
* 不限制规则 * 不限制规则
* 一般建议每个模块自增 * 一般建议每个模块自增
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class ServiceErrorCodeRange { public class ServiceErrorCodeRange {

View File

@ -10,7 +10,7 @@ import java.util.concurrent.Executors;
/** /**
* Cache 工具类 * Cache 工具类
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class CacheUtils { public class CacheUtils {

View File

@ -13,7 +13,7 @@ import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils.
/** /**
* Array 工具类 * Array 工具类
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class ArrayUtils { public class ArrayUtils {

View File

@ -15,7 +15,7 @@ import static java.util.Arrays.asList;
/** /**
* Collection 工具类 * Collection 工具类
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class CollectionUtils { public class CollectionUtils {

View File

@ -16,7 +16,7 @@ import java.util.function.Consumer;
/** /**
* Map 工具类 * Map 工具类
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class MapUtils { public class MapUtils {

View File

@ -7,7 +7,7 @@ import java.util.Set;
/** /**
* Set 工具类 * Set 工具类
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class SetUtils { public class SetUtils {

View File

@ -9,7 +9,7 @@ import java.util.Date;
/** /**
* 时间工具类 * 时间工具类
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class DateUtils { public class DateUtils {

View File

@ -17,7 +17,7 @@ import java.util.List;
/** /**
* 时间工具类用于 {@link java.time.LocalDateTime} * 时间工具类用于 {@link java.time.LocalDateTime}
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class LocalDateTimeUtils { public class LocalDateTimeUtils {

View File

@ -19,7 +19,7 @@ import java.util.Map;
/** /**
* HTTP 工具类 * HTTP 工具类
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class HttpUtils { public class HttpUtils {

View File

@ -14,7 +14,7 @@ import java.io.File;
/** /**
* 文件工具类 * 文件工具类
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class FileUtils { public class FileUtils {

View File

@ -9,7 +9,7 @@ import java.io.InputStream;
/** /**
* IO 工具类用于 {@link cn.hutool.core.io.IoUtil} 缺失的方法 * IO 工具类用于 {@link cn.hutool.core.io.IoUtil} 缺失的方法
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class IoUtils { public class IoUtils {

View File

@ -21,7 +21,7 @@ import java.util.List;
/** /**
* JSON 工具类 * JSON 工具类
* *
* @author 芋道源码 * @author hhyykk
*/ */
@Slf4j @Slf4j
public class JsonUtils { public class JsonUtils {

View File

@ -7,7 +7,7 @@ import org.apache.skywalking.apm.toolkit.trace.TraceContext;
* *
* 考虑到每个 starter 都需要用到该工具类所以放到 common 模块下的 util 包下 * 考虑到每个 starter 都需要用到该工具类所以放到 common 模块下的 util 包下
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class TracerUtils { public class TracerUtils {

View File

@ -9,7 +9,7 @@ import java.math.RoundingMode;
/** /**
* 金额工具类 * 金额工具类
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class MoneyUtils { public class MoneyUtils {

View File

@ -8,7 +8,7 @@ import java.math.BigDecimal;
/** /**
* 数字的工具类补全 {@link cn.hutool.core.util.NumberUtil} 的功能 * 数字的工具类补全 {@link cn.hutool.core.util.NumberUtil} 的功能
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class NumberUtils { public class NumberUtils {

View File

@ -13,7 +13,7 @@ import java.util.function.Consumer;
* 1. 默认使用 {@link cn.hutool.core.bean.BeanUtil} 作为实现类虽然不同 bean 工具的性能有差别但是对绝大多数同学的项目不用在意这点性能 * 1. 默认使用 {@link cn.hutool.core.bean.BeanUtil} 作为实现类虽然不同 bean 工具的性能有差别但是对绝大多数同学的项目不用在意这点性能
* 2. 针对复杂的对象转换可以搜参考 AuthConvert 实现通过 mapstruct + default 配合实现 * 2. 针对复杂的对象转换可以搜参考 AuthConvert 实现通过 mapstruct + default 配合实现
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class BeanUtils { public class BeanUtils {

View File

@ -10,7 +10,7 @@ import java.util.function.Consumer;
/** /**
* Object 工具类 * Object 工具类
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class ObjectUtils { public class ObjectUtils {

View File

@ -14,7 +14,7 @@ import static java.util.Collections.singletonList;
/** /**
* {@link cn.iocoder.yudao.framework.common.pojo.PageParam} 工具类 * {@link cn.iocoder.yudao.framework.common.pojo.PageParam} 工具类
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class PageUtils { public class PageUtils {

View File

@ -16,7 +16,7 @@ import java.util.Map;
/** /**
* 客户端工具类 * 客户端工具类
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class ServletUtils { public class ServletUtils {

View File

@ -7,7 +7,7 @@ import java.util.Objects;
/** /**
* Spring 工具类 * Spring 工具类
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class SpringUtils extends SpringUtil { public class SpringUtils extends SpringUtil {

View File

@ -13,7 +13,7 @@ import java.util.stream.Collectors;
/** /**
* 字符串工具类 * 字符串工具类
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class StrUtils { public class StrUtils {

View File

@ -14,7 +14,7 @@ import java.util.regex.Pattern;
/** /**
* 校验工具类 * 校验工具类
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class ValidationUtils { public class ValidationUtils {

View File

@ -15,7 +15,7 @@ import java.util.List;
* *
* 数据可见 resources/area.csv 文件 * 数据可见 resources/area.csv 文件
* *
* @author 芋道源码 * @author hhyykk
*/ */
@Data @Data
@AllArgsConstructor @AllArgsConstructor

View File

@ -9,7 +9,7 @@ import java.util.Arrays;
/** /**
* 区域类型枚举 * 区域类型枚举
* *
* @author 芋道源码 * @author hhyykk
*/ */
@AllArgsConstructor @AllArgsConstructor
@Getter @Getter

View File

@ -22,7 +22,7 @@ import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils.
/** /**
* 区域工具类 * 区域工具类
* *
* @author 芋道源码 * @author hhyykk
*/ */
@Slf4j @Slf4j
public class AreaUtils { public class AreaUtils {

View File

@ -6,6 +6,6 @@
* 2. 城市功能查询城市编码对应的城市信息 * 2. 城市功能查询城市编码对应的城市信息
* 基于 https://github.com/modood/Administrative-divisions-of-China 实现 * 基于 https://github.com/modood/Administrative-divisions-of-China 实现
* *
* @author 芋道源码 * @author hhyykk
*/ */
package cn.iocoder.yudao.framework.ip; package cn.iocoder.yudao.framework.ip;

View File

@ -10,7 +10,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
/** /**
* {@link AreaUtils} 的单元测试 * {@link AreaUtils} 的单元测试
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class AreaUtilsTest { public class AreaUtilsTest {

View File

@ -16,7 +16,7 @@ import java.util.List;
/** /**
* 字典工具类 * 字典工具类
* *
* @author 芋道源码 * @author hhyykk
*/ */
@Slf4j @Slf4j
public class DictFrameworkUtils { public class DictFrameworkUtils {

View File

@ -14,7 +14,7 @@ import lombok.extern.slf4j.Slf4j;
/** /**
* Excel 数据字典转换器 * Excel 数据字典转换器
* *
* @author 芋道源码 * @author hhyykk
*/ */
@Slf4j @Slf4j
public class DictConvert implements Converter<Object> { public class DictConvert implements Converter<Object> {

View File

@ -10,7 +10,7 @@ import com.alibaba.excel.metadata.property.ExcelContentProperty;
/** /**
* Excel Json 转换器 * Excel Json 转换器
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class JsonConvert implements Converter<Object> { public class JsonConvert implements Converter<Object> {

View File

@ -14,7 +14,7 @@ import java.math.RoundingMode;
* *
* 金额单位 * 金额单位
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class MoneyConvert implements Converter<Integer> { public class MoneyConvert implements Converter<Integer> {

View File

@ -15,7 +15,7 @@ import java.util.List;
/** /**
* Excel 工具类 * Excel 工具类
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class ExcelUtils { public class ExcelUtils {

View File

@ -3,7 +3,7 @@ package cn.iocoder.yudao.framework.quartz.core.handler;
/** /**
* 任务处理器 * 任务处理器
* *
* @author 芋道源码 * @author hhyykk
*/ */
public interface JobHandler { public interface JobHandler {

View File

@ -21,7 +21,7 @@ import static cn.hutool.core.exceptions.ExceptionUtil.getRootCauseMessage;
/** /**
* 基础 Job 调用者负责调用 {@link JobHandler#execute(String)} 执行任务 * 基础 Job 调用者负责调用 {@link JobHandler#execute(String)} 执行任务
* *
* @author 芋道源码 * @author hhyykk
*/ */
@DisallowConcurrentExecution @DisallowConcurrentExecution
@PersistJobDataAfterExecution @PersistJobDataAfterExecution

View File

@ -16,7 +16,7 @@ import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionU
* *
* 另外jobHandlerName 对应到 Spring Bean 的名字直接调用 * 另外jobHandlerName 对应到 Spring Bean 的名字直接调用
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class SchedulerManager { public class SchedulerManager {

View File

@ -7,7 +7,7 @@ import java.time.LocalDateTime;
/** /**
* Job 日志 Framework Service 接口 * Job 日志 Framework Service 接口
* *
* @author 芋道源码 * @author hhyykk
*/ */
public interface JobLogFrameworkService { public interface JobLogFrameworkService {

View File

@ -12,7 +12,7 @@ import java.util.List;
/** /**
* Quartz Cron 表达式的工具类 * Quartz Cron 表达式的工具类
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class CronUtils { public class CronUtils {

View File

@ -11,7 +11,7 @@ import org.springframework.context.annotation.Bean;
/** /**
* Metrics 配置类 * Metrics 配置类
* *
* @author 芋道源码 * @author hhyykk
*/ */
@AutoConfiguration @AutoConfiguration
@ConditionalOnClass({MeterRegistryCustomizer.class}) @ConditionalOnClass({MeterRegistryCustomizer.class})

View File

@ -12,7 +12,7 @@ import java.io.IOException;
/** /**
* Trace 过滤器打印 traceId header 中返回 * Trace 过滤器打印 traceId header 中返回
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class TraceFilter extends OncePerRequestFilter { public class TraceFilter extends OncePerRequestFilter {

View File

@ -11,7 +11,7 @@ import java.util.Map;
/** /**
* 链路追踪 Util * 链路追踪 Util
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class TracerFrameworkUtils { public class TracerFrameworkUtils {

View File

@ -1,6 +1,6 @@
/** /**
* 使用 SkyWalking 组件作为链路追踪日志中心 * 使用 SkyWalking 组件作为链路追踪日志中心
* *
* @author 芋道源码 * @author hhyykk
*/ */
package cn.iocoder.yudao.framework.tracer; package cn.iocoder.yudao.framework.tracer;

View File

@ -10,7 +10,7 @@ import org.springframework.context.annotation.Bean;
/** /**
* RabbitMQ 消息队列配置类 * RabbitMQ 消息队列配置类
* *
* @author 芋道源码 * @author hhyykk
*/ */
@AutoConfiguration @AutoConfiguration
@Slf4j @Slf4j

View File

@ -33,7 +33,7 @@ import java.util.Properties;
/** /**
* Redis 消息队列 Consumer 配置类 * Redis 消息队列 Consumer 配置类
* *
* @author 芋道源码 * @author hhyykk
*/ */
@Slf4j @Slf4j
@EnableScheduling // 启用定时任务用于 RedisPendingMessageResendJob 重发消息 @EnableScheduling // 启用定时任务用于 RedisPendingMessageResendJob 重发消息

View File

@ -13,7 +13,7 @@ import java.util.List;
/** /**
* Redis 消息队列 Producer 配置类 * Redis 消息队列 Producer 配置类
* *
* @author 芋道源码 * @author hhyykk
*/ */
@Slf4j @Slf4j
@AutoConfiguration(after = YudaoRedisAutoConfiguration.class) @AutoConfiguration(after = YudaoRedisAutoConfiguration.class)

View File

@ -17,7 +17,7 @@ import java.util.List;
/** /**
* Redis MQ 操作模板类 * Redis MQ 操作模板类
* *
* @author 芋道源码 * @author hhyykk
*/ */
@AllArgsConstructor @AllArgsConstructor
public class RedisMQTemplate { public class RedisMQTemplate {

View File

@ -7,7 +7,7 @@ import cn.iocoder.yudao.framework.mq.redis.core.message.AbstractRedisMessage;
* 通过拦截器作为插件机制实现拓展 * 通过拦截器作为插件机制实现拓展
* 例如说多租户场景下的 MQ 消息处理 * 例如说多租户场景下的 MQ 消息处理
* *
* @author 芋道源码 * @author hhyykk
*/ */
public interface RedisMessageInterceptor { public interface RedisMessageInterceptor {

View File

@ -8,7 +8,7 @@ import java.util.Map;
/** /**
* Redis 消息抽象基类 * Redis 消息抽象基类
* *
* @author 芋道源码 * @author hhyykk
*/ */
@Data @Data
public abstract class AbstractRedisMessage { public abstract class AbstractRedisMessage {

View File

@ -6,7 +6,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
/** /**
* Redis Channel Message 抽象类 * Redis Channel Message 抽象类
* *
* @author 芋道源码 * @author hhyykk
*/ */
public abstract class AbstractRedisChannelMessage extends AbstractRedisMessage { public abstract class AbstractRedisChannelMessage extends AbstractRedisMessage {

View File

@ -18,7 +18,7 @@ import java.util.List;
* *
* @param <T> 消息类型一定要填写噢不然会报错 * @param <T> 消息类型一定要填写噢不然会报错
* *
* @author 芋道源码 * @author hhyykk
*/ */
public abstract class AbstractRedisChannelMessageListener<T extends AbstractRedisChannelMessage> implements MessageListener { public abstract class AbstractRedisChannelMessageListener<T extends AbstractRedisChannelMessage> implements MessageListener {

View File

@ -6,7 +6,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
/** /**
* Redis Stream Message 抽象类 * Redis Stream Message 抽象类
* *
* @author 芋道源码 * @author hhyykk
*/ */
public abstract class AbstractRedisStreamMessage extends AbstractRedisMessage { public abstract class AbstractRedisStreamMessage extends AbstractRedisMessage {

View File

@ -20,7 +20,7 @@ import java.util.List;
* *
* @param <T> 消息类型一定要填写噢不然会报错 * @param <T> 消息类型一定要填写噢不然会报错
* *
* @author 芋道源码 * @author hhyykk
*/ */
public abstract class AbstractRedisStreamMessageListener<T extends AbstractRedisStreamMessage> public abstract class AbstractRedisStreamMessageListener<T extends AbstractRedisStreamMessage>
implements StreamListener<String, ObjectRecord<String, String>> { implements StreamListener<String, ObjectRecord<String, String>> {

View File

@ -15,7 +15,7 @@ import java.util.Set;
/** /**
* IdType {@link IdType#NONE} 根据 PRIMARY 数据源所使用的数据库自动设置 * IdType {@link IdType#NONE} 根据 PRIMARY 数据源所使用的数据库自动设置
* *
* @author 芋道源码 * @author hhyykk
*/ */
@Slf4j @Slf4j
public class IdTypeEnvironmentPostProcessor implements EnvironmentPostProcessor { public class IdTypeEnvironmentPostProcessor implements EnvironmentPostProcessor {

View File

@ -23,7 +23,7 @@ import java.util.concurrent.TimeUnit;
/** /**
* MyBaits 配置类 * MyBaits 配置类
* *
* @author 芋道源码 * @author hhyykk
*/ */
@AutoConfiguration(before = MybatisPlusAutoConfiguration.class) // 目的先于 MyBatis Plus 自动配置避免 @MapperScan 可能扫描不到 Mapper 打印 warn 日志 @AutoConfiguration(before = MybatisPlusAutoConfiguration.class) // 目的先于 MyBatis Plus 自动配置避免 @MapperScan 可能扫描不到 Mapper 打印 warn 日志
@MapperScan(value = "${yudao.info.base-package}", annotationClass = Mapper.class, @MapperScan(value = "${yudao.info.base-package}", annotationClass = Mapper.class,

View File

@ -17,7 +17,7 @@ import java.time.LocalDateTime;
* 为什么实现 {@link TransPojo} 接口 * 为什么实现 {@link TransPojo} 接口
* 因为使用 Easy-Trans TransType.SIMPLE 模式集成 MyBatis Plus 查询 * 因为使用 Easy-Trans TransType.SIMPLE 模式集成 MyBatis Plus 查询
* *
* @author 芋道源码 * @author hhyykk
*/ */
@Data @Data
@JsonIgnoreProperties(value = "transMap") // 由于 Easy-Trans 会添加 transMap 属性避免 Jackson Spring Cache 反序列化报错 @JsonIgnoreProperties(value = "transMap") // 由于 Easy-Trans 会添加 transMap 属性避免 Jackson Spring Cache 反序列化报错

View File

@ -16,7 +16,7 @@ import java.sql.SQLException;
* 字段字段的 TypeHandler 实现类基于 {@link cn.hutool.crypto.symmetric.AES} 实现 * 字段字段的 TypeHandler 实现类基于 {@link cn.hutool.crypto.symmetric.AES} 实现
* 可通过 jasypt.encryptor.password 配置项设置密钥 * 可通过 jasypt.encryptor.password 配置项设置密钥
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class EncryptTypeHandler extends BaseTypeHandler<String> { public class EncryptTypeHandler extends BaseTypeHandler<String> {

View File

@ -16,7 +16,7 @@ import java.util.List;
/** /**
* List<Long> 的类型转换器实现类对应数据库的 varchar 类型 * List<Long> 的类型转换器实现类对应数据库的 varchar 类型
* *
* @author 芋道源码 * @author hhyykk
*/ */
@MappedJdbcTypes(JdbcType.VARCHAR) @MappedJdbcTypes(JdbcType.VARCHAR)
@MappedTypes(List.class) @MappedTypes(List.class)

View File

@ -15,7 +15,7 @@ import java.sql.SQLException;
/** /**
* JDBC 工具类 * JDBC 工具类
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class JdbcUtils { public class JdbcUtils {

View File

@ -16,7 +16,7 @@ import java.time.Duration;
* {@link Cacheable#cacheNames()} 格式为 "key#ttl" # 后面的 ttl 为过期时间 * {@link Cacheable#cacheNames()} 格式为 "key#ttl" # 后面的 ttl 为过期时间
* 单位为最后一个字母支持的单位有d h 小时m 分钟s 默认单位为 s * 单位为最后一个字母支持的单位有d h 小时m 分钟s 默认单位为 s
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class TimeoutRedisCacheManager extends RedisCacheManager { public class TimeoutRedisCacheManager extends RedisCacheManager {

View File

@ -12,7 +12,7 @@ import java.io.IOException;
/** /**
* Redis 测试 Configuration主要实现内嵌 Redis 的启动 * Redis 测试 Configuration主要实现内嵌 Redis 的启动
* *
* @author 芋道源码 * @author hhyykk
*/ */
@Configuration(proxyBeanMethods = false) @Configuration(proxyBeanMethods = false)
@Lazy(false) // 禁止延迟加载 @Lazy(false) // 禁止延迟加载

View File

@ -21,7 +21,7 @@ import javax.sql.DataSource;
* 因为我们在单元测试会使用 spring.main.lazy-initialization true开启延迟加载此时会导致 DataSourceInitializationConfiguration 初始化 * 因为我们在单元测试会使用 spring.main.lazy-initialization true开启延迟加载此时会导致 DataSourceInitializationConfiguration 初始化
* 不过呢当前类的实现代码基本是复制 DataSourceInitializationConfiguration 的哈 * 不过呢当前类的实现代码基本是复制 DataSourceInitializationConfiguration 的哈
* *
* @author 芋道源码 * @author hhyykk
*/ */
@Configuration(proxyBeanMethods = false) @Configuration(proxyBeanMethods = false)
@ConditionalOnMissingBean(AbstractScriptDatabaseInitializer.class) @ConditionalOnMissingBean(AbstractScriptDatabaseInitializer.class)

View File

@ -22,7 +22,7 @@ import org.springframework.test.context.jdbc.Sql;
* *
* 相比 {@link BaseDbUnitTest} 来说额外增加了内存 Redis * 相比 {@link BaseDbUnitTest} 来说额外增加了内存 Redis
* *
* @author 芋道源码 * @author hhyykk
*/ */
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.NONE, classes = BaseDbAndRedisUnitTest.Application.class) @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.NONE, classes = BaseDbAndRedisUnitTest.Application.class)
@ActiveProfiles("unit-test") // 设置使用 application-unit-test 配置文件 @ActiveProfiles("unit-test") // 设置使用 application-unit-test 配置文件

View File

@ -19,7 +19,7 @@ import org.springframework.test.context.jdbc.Sql;
* *
* 注意Service 层同样适用对于 Service 层的单元测试我们针对自己模块的 Mapper 走的是 H2 内存数据库针对别的模块的 Service 走的是 Mock 方法 * 注意Service 层同样适用对于 Service 层的单元测试我们针对自己模块的 Mapper 走的是 H2 内存数据库针对别的模块的 Service 走的是 Mock 方法
* *
* @author 芋道源码 * @author hhyykk
*/ */
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.NONE, classes = BaseDbUnitTest.Application.class) @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.NONE, classes = BaseDbUnitTest.Application.class)
@ActiveProfiles("unit-test") // 设置使用 application-unit-test 配置文件 @ActiveProfiles("unit-test") // 设置使用 application-unit-test 配置文件

View File

@ -6,7 +6,7 @@ import org.mockito.junit.jupiter.MockitoExtension;
/** /**
* Mockito 的单元测试 * Mockito 的单元测试
* *
* @author 芋道源码 * @author hhyykk
*/ */
@ExtendWith(MockitoExtension.class) @ExtendWith(MockitoExtension.class)
public class BaseMockitoUnitTest { public class BaseMockitoUnitTest {

View File

@ -14,7 +14,7 @@ import org.springframework.test.context.ActiveProfiles;
* *
* 相比 {@link BaseDbUnitTest} 来说从内存 DB 改成了内存 Redis * 相比 {@link BaseDbUnitTest} 来说从内存 DB 改成了内存 Redis
* *
* @author 芋道源码 * @author hhyykk
*/ */
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.NONE, classes = BaseRedisUnitTest.Application.class) @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.NONE, classes = BaseRedisUnitTest.Application.class)
@ActiveProfiles("unit-test") // 设置使用 application-unit-test 配置文件 @ActiveProfiles("unit-test") // 设置使用 application-unit-test 配置文件

View File

@ -17,7 +17,7 @@ import static org.junit.jupiter.api.Assertions.assertThrows;
/** /**
* 单元测试assert 断言工具类 * 单元测试assert 断言工具类
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class AssertUtils { public class AssertUtils {

View File

@ -21,7 +21,7 @@ import java.util.stream.Stream;
/** /**
* 随机工具类 * 随机工具类
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class RandomUtils { public class RandomUtils {

View File

@ -10,7 +10,7 @@ import java.lang.annotation.Target;
/** /**
* 访问日志注解 * 访问日志注解
* *
* @author 芋道源码 * @author hhyykk
*/ */
@Target({ElementType.METHOD}) @Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)

View File

@ -44,7 +44,7 @@ import static cn.iocoder.yudao.framework.common.util.json.JsonUtils.toJsonString
* *
* 目的记录 API 访问日志到数据库中 * 目的记录 API 访问日志到数据库中
* *
* @author 芋道源码 * @author hhyykk
*/ */
@Slf4j @Slf4j
public class ApiAccessLogFilter extends ApiRequestFilter { public class ApiAccessLogFilter extends ApiRequestFilter {

View File

@ -24,7 +24,7 @@ import java.util.stream.IntStream;
* *
* 目的在非 prod 环境时打印 request response 两条日志到日志文件控制台 * 目的在非 prod 环境时打印 request response 两条日志到日志文件控制台
* *
* @author 芋道源码 * @author hhyykk
*/ */
@Slf4j @Slf4j
public class ApiAccessLogInterceptor implements HandlerInterceptor { public class ApiAccessLogInterceptor implements HandlerInterceptor {

View File

@ -3,6 +3,6 @@
* 1. API 访问日志记录用户访问 API 的访问日志定期归档历史日志 * 1. API 访问日志记录用户访问 API 的访问日志定期归档历史日志
* 2. 异常日志记录用户访问 API 的系统异常方便日常排查问题与告警 * 2. 异常日志记录用户访问 API 的系统异常方便日常排查问题与告警
* *
* @author 芋道源码 * @author hhyykk
*/ */
package cn.iocoder.yudao.framework.apilog; package cn.iocoder.yudao.framework.apilog;

View File

@ -7,7 +7,7 @@ import org.springframework.context.annotation.Bean;
/** /**
* Banner 的自动配置类 * Banner 的自动配置类
* *
* @author 芋道源码 * @author hhyykk
*/ */
@AutoConfiguration @AutoConfiguration
public class YudaoBannerAutoConfiguration { public class YudaoBannerAutoConfiguration {

View File

@ -11,7 +11,7 @@ import java.util.concurrent.TimeUnit;
/** /**
* 项目启动成功后提供文档相关的地址 * 项目启动成功后提供文档相关的地址
* *
* @author 芋道源码 * @author hhyykk
*/ */
@Slf4j @Slf4j
public class BannerApplicationRunner implements ApplicationRunner { public class BannerApplicationRunner implements ApplicationRunner {

View File

@ -1,6 +1,6 @@
/** /**
* Banner 用于在 console 控制台打印开发文档接口文档等 * Banner 用于在 console 控制台打印开发文档接口文档等
* *
* @author 芋道源码 * @author hhyykk
*/ */
package cn.iocoder.yudao.framework.banner; package cn.iocoder.yudao.framework.banner;

View File

@ -8,7 +8,7 @@ import jakarta.validation.constraints.NotEmpty;
/** /**
* Swagger 配置属性 * Swagger 配置属性
* *
* @author 芋道源码 * @author hhyykk
*/ */
@ConfigurationProperties("yudao.swagger") @ConfigurationProperties("yudao.swagger")
@Data @Data

View File

@ -40,7 +40,7 @@ import static cn.iocoder.yudao.framework.web.core.util.WebFrameworkUtils.HEADER_
* 1. Springdoc 文档地址<a href="https://github.com/springdoc/springdoc-openapi">仓库</a> * 1. Springdoc 文档地址<a href="https://github.com/springdoc/springdoc-openapi">仓库</a>
* 2. Swagger 规范 2015 更名为 OpenAPI 规范本质是一个东西 * 2. Swagger 规范 2015 更名为 OpenAPI 规范本质是一个东西
* *
* @author 芋道源码 * @author hhyykk
*/ */
@AutoConfiguration @AutoConfiguration
@ConditionalOnClass({OpenAPI.class}) @ConditionalOnClass({OpenAPI.class})

View File

@ -1,6 +1,6 @@
/** /**
* 基于 Swagger + Knife4j 实现 API 接口文档 * 基于 Swagger + Knife4j 实现 API 接口文档
* *
* @author 芋道源码 * @author hhyykk
*/ */
package cn.iocoder.yudao.framework.swagger; package cn.iocoder.yudao.framework.swagger;

View File

@ -10,7 +10,7 @@ import jakarta.servlet.http.HttpServletRequest;
/** /**
* 过滤 /admin-api/app-api API 请求的过滤器 * 过滤 /admin-api/app-api API 请求的过滤器
* *
* @author 芋道源码 * @author hhyykk
*/ */
@RequiredArgsConstructor @RequiredArgsConstructor
public abstract class ApiRequestFilter extends OncePerRequestFilter { public abstract class ApiRequestFilter extends OncePerRequestFilter {

View File

@ -12,7 +12,7 @@ import java.io.IOException;
/** /**
* Request Body 缓存 Filter实现它的可重复读取 * Request Body 缓存 Filter实现它的可重复读取
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class CacheRequestBodyFilter extends OncePerRequestFilter { public class CacheRequestBodyFilter extends OncePerRequestFilter {

View File

@ -14,7 +14,7 @@ import java.io.InputStreamReader;
/** /**
* Request Body 缓存 Wrapper * Request Body 缓存 Wrapper
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class CacheRequestBodyWrapper extends HttpServletRequestWrapper { public class CacheRequestBodyWrapper extends HttpServletRequestWrapper {

View File

@ -15,7 +15,7 @@ import static cn.iocoder.yudao.framework.common.exception.enums.GlobalErrorCodeC
/** /**
* 演示 Filter禁止用户发起写操作避免影响测试数据 * 演示 Filter禁止用户发起写操作避免影响测试数据
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class DemoFilter extends OncePerRequestFilter { public class DemoFilter extends OncePerRequestFilter {

View File

@ -45,7 +45,7 @@ import static cn.iocoder.yudao.framework.common.exception.enums.GlobalErrorCodeC
/** /**
* 全局异常处理器 Exception 翻译成 CommonResult + 对应的异常编号 * 全局异常处理器 Exception 翻译成 CommonResult + 对应的异常编号
* *
* @author 芋道源码 * @author hhyykk
*/ */
@RestControllerAdvice @RestControllerAdvice
@AllArgsConstructor @AllArgsConstructor

View File

@ -17,7 +17,7 @@ import jakarta.servlet.http.HttpServletRequest;
/** /**
* 专属于 web 包的工具类 * 专属于 web 包的工具类
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class WebFrameworkUtils { public class WebFrameworkUtils {

View File

@ -10,7 +10,7 @@ import java.util.List;
/** /**
* Xss 配置属性 * Xss 配置属性
* *
* @author 芋道源码 * @author hhyykk
*/ */
@ConfigurationProperties(prefix = "yudao.xss") @ConfigurationProperties(prefix = "yudao.xss")
@Validated @Validated

View File

@ -15,7 +15,7 @@ import java.io.IOException;
/** /**
* Xss 过滤器 * Xss 过滤器
* *
* @author 芋道源码 * @author hhyykk
*/ */
@AllArgsConstructor @AllArgsConstructor
public class XssFilter extends OncePerRequestFilter { public class XssFilter extends OncePerRequestFilter {

View File

@ -10,7 +10,7 @@ import java.util.Map;
/** /**
* Xss 请求 Wrapper * Xss 请求 Wrapper
* *
* @author 芋道源码 * @author hhyykk
*/ */
public class XssRequestWrapper extends HttpServletRequestWrapper { public class XssRequestWrapper extends HttpServletRequestWrapper {

View File

@ -23,7 +23,7 @@ public class DesensitizeTest {
public void test() { public void test() {
// 准备参数 // 准备参数
DesensitizeDemo desensitizeDemo = new DesensitizeDemo(); DesensitizeDemo desensitizeDemo = new DesensitizeDemo();
desensitizeDemo.setNickname("芋道源码"); desensitizeDemo.setNickname("hhyykk");
desensitizeDemo.setBankCard("9988002866797031"); desensitizeDemo.setBankCard("9988002866797031");
desensitizeDemo.setCarLicense("粤A66666"); desensitizeDemo.setCarLicense("粤A66666");
desensitizeDemo.setFixedPhone("01086551122"); desensitizeDemo.setFixedPhone("01086551122");
@ -34,9 +34,9 @@ public class DesensitizeTest {
desensitizeDemo.setSlider2("ABCDEFG"); desensitizeDemo.setSlider2("ABCDEFG");
desensitizeDemo.setSlider3("ABCDEFG"); desensitizeDemo.setSlider3("ABCDEFG");
desensitizeDemo.setEmail("1@email.com"); desensitizeDemo.setEmail("1@email.com");
desensitizeDemo.setRegex("你好,我是芋道源码"); desensitizeDemo.setRegex("你好,我是hhyykk");
desensitizeDemo.setAddress("北京市海淀区上地十街10号"); desensitizeDemo.setAddress("北京市海淀区上地十街10号");
desensitizeDemo.setOrigin("芋道源码"); desensitizeDemo.setOrigin("hhyykk");
// 调用 // 调用
DesensitizeDemo d = JsonUtils.parseObject(JsonUtils.toJsonString(desensitizeDemo), DesensitizeDemo.class); DesensitizeDemo d = JsonUtils.parseObject(JsonUtils.toJsonString(desensitizeDemo), DesensitizeDemo.class);
@ -55,7 +55,7 @@ public class DesensitizeTest {
assertEquals("1****@email.com", d.getEmail()); assertEquals("1****@email.com", d.getEmail());
assertEquals("你好,我是*", d.getRegex()); assertEquals("你好,我是*", d.getRegex());
assertEquals("北京市海淀区上地十街10号*", d.getAddress()); assertEquals("北京市海淀区上地十街10号*", d.getAddress());
assertEquals("芋道源码", d.getOrigin()); assertEquals("hhyykk", d.getOrigin());
} }
@Data @Data
@ -83,7 +83,7 @@ public class DesensitizeTest {
private String slider3; private String slider3;
@EmailDesensitize @EmailDesensitize
private String email; private String email;
@RegexDesensitize(regex = "芋道源码", replacer = "*") @RegexDesensitize(regex = "hhyykk", replacer = "*")
private String regex; private String regex;
@Address @Address
private String address; private String address;

View File

@ -20,7 +20,7 @@ public class AiKnowledgeDocumentRespVO extends PageParam {
@Schema(description = "内容", requiredMode = Schema.RequiredMode.REQUIRED, example = "Java 是一门面向对象的语言.....") @Schema(description = "内容", requiredMode = Schema.RequiredMode.REQUIRED, example = "Java 是一门面向对象的语言.....")
private String content; private String content;
@Schema(description = "文档 url", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://doc.iocoder.cn") @Schema(description = "文档 url", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://hhyykk.cn")
private String url; private String url;
@Schema(description = "token 数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") @Schema(description = "token 数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")

View File

@ -19,7 +19,7 @@ public class AiKnowledgeDocumentCreateReqVO {
@NotBlank(message = "文档名称不能为空") @NotBlank(message = "文档名称不能为空")
private String name; private String name;
@Schema(description = "文档 URL", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://doc.iocoder.cn") @Schema(description = "文档 URL", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://hhyykk.cn")
@URL(message = "文档 URL 格式不正确") @URL(message = "文档 URL 格式不正确")
private String url; private String url;

View File

@ -10,7 +10,7 @@ import lombok.ToString;
@Data @Data
public class BpmFormPageReqVO extends PageParam { public class BpmFormPageReqVO extends PageParam {
@Schema(description = "表单名称", example = "芋道") @Schema(description = "表单名称", example = "hhyykk")
private String name; private String name;
} }

View File

@ -14,7 +14,7 @@ public class BpmFormRespVO {
@Schema(description = "表单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") @Schema(description = "表单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
private Long id; private Long id;
@Schema(description = "表单名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道") @Schema(description = "表单名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "hhyykk")
@NotNull(message = "表单名称不能为空") @NotNull(message = "表单名称不能为空")
private String name; private String name;

View File

@ -12,7 +12,7 @@ public class BpmFormSaveReqVO {
@Schema(description = "表单编号", example = "1024") @Schema(description = "表单编号", example = "1024")
private Long id; private Long id;
@Schema(description = "表单名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道") @Schema(description = "表单名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "hhyykk")
@NotNull(message = "表单名称不能为空") @NotNull(message = "表单名称不能为空")
private String name; private String name;

View File

@ -17,7 +17,7 @@ public class BpmUserGroupPageReqVO extends PageParam {
@Schema(description = "编号", example = "1024") @Schema(description = "编号", example = "1024")
private Long id; private Long id;
@Schema(description = "组名", example = "芋道") @Schema(description = "组名", example = "hhyykk")
private String name; private String name;
@Schema(description = "状态", example = "1") @Schema(description = "状态", example = "1")

Some files were not shown because too many files have changed in this diff Show More