🔨 规范化包结构.

This commit is contained in:
lijiahang
2024-06-07 15:41:52 +08:00
parent 5113aa63bd
commit c39049e5f5
33 changed files with 99 additions and 41 deletions

View File

@@ -0,0 +1,17 @@
package com.orion.visor.framework.common.annotation;
import java.lang.annotation.*;
/**
* 保留
*
* @author Jiahang Li
* @version 1.0.0
* @since 2024/6/6 15:26
*/
@Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Keep {
}

View File

@@ -14,13 +14,19 @@ import lombok.Getter;
@AllArgsConstructor
public enum MovePosition {
// 拖拽到目标元素上
/**
* 拖拽到目标元素上
*/
TOP(-1),
// 拖拽到目标元素中
/**
* 拖拽到目标元素中
*/
IN(0),
// 拖拽到目标元素下
/**
* 拖拽到目标元素下
*/
BOTTOM(1),
;

View File

@@ -72,9 +72,9 @@ public class PrettyLogPrinterInterceptor extends AbstractLogPrinterInterceptor {
}
Method method = invocation.getMethod();
// 方法签名
requestLog.append("\tmethodSign: ").append(method.getDeclaringClass().getName()).append('#')
.append(method.getName()).append("\n");
// 参数
// requestLog.append("\tmethodSign: ").append(method.getDeclaringClass().getName()).append('#')
// .append(method.getName()).append("\n");
// 方法参数
requestLog.append("\tparameter: ").append(this.requestToString(method, invocation.getArguments()));
log.info(requestLog.toString());
}

View File

@@ -73,8 +73,8 @@ public class RowLogPrinterInterceptor extends AbstractLogPrinterInterceptor impl
}
Method method = invocation.getMethod();
// 方法签名
fields.put(METHOD_SIGN, method.getDeclaringClass().getName() + "#" + method.getName());
// 参数
// fields.put(METHOD_SIGN, method.getDeclaringClass().getName() + "#" + method.getName());
// 方法参数
fields.put(PARAMETER, this.requestToString(method, invocation.getArguments()));
log.info("api请求-开始 {}", JSON.toJSONString(fields));
fields.clear();

View File

@@ -15,6 +15,7 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Lazy;
import org.springframework.context.annotation.Primary;
import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.serializer.RedisSerializer;
@@ -36,6 +37,7 @@ public class OrionRedisAutoConfiguration {
* @param redisConnectionFactory factory
* @return RedisTemplate
*/
@Primary
@Bean
public RedisTemplate<String, String> redisTemplate(RedisConnectionFactory redisConnectionFactory) {
RedisTemplate<String, String> redisTemplate = new RedisTemplate<>();