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)")
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 {
HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();

View File

@ -5,9 +5,9 @@ import java.lang.annotation.*;
/**
* MP数据权限注解
* <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
*/
@Documented
@ -21,6 +21,7 @@ public @interface DataPermission {
String deptAlias() default "";
String deptIdColumnName() default "dept_id";
String userAlias() default "";
String userIdColumnName() default "create_by";

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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