fix: 修复结构调整后system服务无法启动的问题

This commit is contained in:
Ray.Hao 2024-09-03 08:28:42 +08:00
parent a7f2332881
commit a5c0081885
10 changed files with 17 additions and 15 deletions

View File

@ -40,10 +40,10 @@ public class RepeatSubmitAspect {
* 防重复提交切点 * 防重复提交切点
*/ */
@Pointcut("@annotation(repeatSubmit)") @Pointcut("@annotation(repeatSubmit)")
public void preventDuplicateSubmitPointCut(RepeatSubmit repeatSubmit) { public void repeatSubmitPointCut(RepeatSubmit repeatSubmit) {
} }
@Around(value = "preventDuplicateSubmitPointCut(repeatSubmit)", argNames = "pjp,preventDuplicateResubmit") @Around(value = "repeatSubmitPointCut(repeatSubmit)", argNames = "pjp,repeatSubmit")
public Object doAround(ProceedingJoinPoint pjp, RepeatSubmit repeatSubmit) throws Throwable { public Object doAround(ProceedingJoinPoint pjp, RepeatSubmit repeatSubmit) throws Throwable {
HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest(); HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();

View File

@ -5,9 +5,9 @@ import java.lang.annotation.*;
/** /**
* MP数据权限注解 * MP数据权限注解
* <p> * <p>
* https://gitee.com/baomidou/mybatis-plus/issues/I37I90
* *
* @author <a href="mailto:2256222053@qq.com">zc</a> * @author zc
* @link https://gitee.com/baomidou/mybatis-plus/issues/I37I90
* @since 2021-12-10 15:48 * @since 2021-12-10 15:48
*/ */
@Documented @Documented
@ -21,6 +21,7 @@ public @interface DataPermission {
String deptAlias() default ""; String deptAlias() default "";
String deptIdColumnName() default "dept_id"; String deptIdColumnName() default "dept_id";
String userAlias() default ""; String userAlias() default "";
String userIdColumnName() default "create_by"; String userIdColumnName() default "create_by";

View File

@ -9,6 +9,7 @@ import lombok.Getter;
* @author Ray * @author Ray
* @since 2022/10/14 * @since 2022/10/14
*/ */
@Getter
public enum DataScopeEnum implements IBaseEnum<Integer> { public enum DataScopeEnum implements IBaseEnum<Integer> {
/** /**
@ -19,11 +20,9 @@ public enum DataScopeEnum implements IBaseEnum<Integer> {
DEPT(2, "本部门数据"), DEPT(2, "本部门数据"),
SELF(3, "本人数据"); SELF(3, "本人数据");
@Getter private final Integer value;
private Integer value;
@Getter private final String label;
private String label;
DataScopeEnum(Integer value, String label) { DataScopeEnum(Integer value, String label) {
this.value = value; this.value = value;

View File

@ -1,2 +1,2 @@
com.youlai.common.core.config.MybatisPlusConfig com.youlai.common.mybatis.config.MybatisPlusConfig
com.youlai.common.mybatis.handler.MyMetaObjectHandler com.youlai.common.mybatis.handler.MyMetaObjectHandler

View File

@ -43,10 +43,10 @@ public class ResourceServerConfig {
@Autowired @Autowired
private AccessDeniedHandler accessDeniedHandler; private AccessDeniedHandler accessDeniedHandler;
@Autowired @Autowired
private AuthenticationEntryPoint authenticationEntryPoint; private AuthenticationEntryPoint authenticationEntryPoint;
/** /**
* 白名单路径列表 * 白名单路径列表
*/ */

View File

@ -9,8 +9,9 @@ import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
/** /**
* RabbitMQ 配置
*
* @author huawei * @author huawei
* @email huawei_code@163.com
* @since 2021/1/17 * @since 2021/1/17
*/ */
@Configuration @Configuration
@ -24,7 +25,7 @@ public class RabbitConfig {
public RabbitListenerContainerFactory<?> rabbitListenerContainerFactory(ConnectionFactory connectionFactory) { public RabbitListenerContainerFactory<?> rabbitListenerContainerFactory(ConnectionFactory connectionFactory) {
SimpleRabbitListenerContainerFactory factory = new SimpleRabbitListenerContainerFactory(); SimpleRabbitListenerContainerFactory factory = new SimpleRabbitListenerContainerFactory();
factory.setConnectionFactory(connectionFactory); factory.setConnectionFactory(connectionFactory);
factory.setMessageConverter( new Jackson2JsonMessageConverter()); factory.setMessageConverter(new Jackson2JsonMessageConverter());
return factory; return factory;
} }
} }

View File

@ -16,6 +16,7 @@ import org.springframework.data.redis.serializer.RedisSerializer;
* Redis缓存配置 * Redis缓存配置
* *
* @author Ray * @author Ray
* @since 2022/7/2
*/ */
@EnableConfigurationProperties(CacheProperties.class) @EnableConfigurationProperties(CacheProperties.class)
@Configuration @Configuration

View File

@ -23,7 +23,7 @@
<artifactId>spring-boot-starter-web</artifactId> <artifactId>spring-boot-starter-web</artifactId>
</dependency> </dependency>
<!-- 分布式对象存储 --> <!-- MinIO -->
<dependency> <dependency>
<groupId>io.minio</groupId> <groupId>io.minio</groupId>
<artifactId>minio</artifactId> <artifactId>minio</artifactId>

View File

@ -1,7 +1,7 @@
package com.youlai.system.controller; package com.youlai.system.controller;
import com.youlai.common.oss.model.FileInfo; import com.youlai.common.file.model.FileInfo;
import com.youlai.common.oss.service.OssService; import com.youlai.common.file.service.OssService;
import com.youlai.common.result.Result; import com.youlai.common.result.Result;
import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Operation;