📝 修改文档.
This commit is contained in:
@@ -17,11 +17,16 @@ public interface BeanOrderConst {
|
||||
/**
|
||||
* 演示模式切面
|
||||
*/
|
||||
int DEMO_DISABLE_API_ASPECT = 20;
|
||||
int DEMO_DISABLE_API_ASPECT = Integer.MIN_VALUE + 10;
|
||||
|
||||
/**
|
||||
* 全局日志打印
|
||||
*/
|
||||
int LOG_PRINT_ASPECT = Integer.MIN_VALUE + 20;
|
||||
|
||||
/**
|
||||
* 操作日志切面
|
||||
*/
|
||||
int OPERATOR_LOG_ASPECT = 30;
|
||||
int OPERATOR_LOG_ASPECT = Integer.MIN_VALUE + 30;
|
||||
|
||||
}
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
package com.orion.visor.framework.common.constant;
|
||||
|
||||
/**
|
||||
* 拦截器排序常量
|
||||
*
|
||||
* @author Jiahang Li
|
||||
* @version 1.0.0
|
||||
* @since 2023/6/16 18:15
|
||||
*/
|
||||
public interface InterceptorOrderConst {
|
||||
|
||||
int LOG_FILTER = Integer.MIN_VALUE;
|
||||
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.orion.visor.framework.log.configuration;
|
||||
|
||||
import com.orion.visor.framework.common.constant.AutoConfigureOrderConst;
|
||||
import com.orion.visor.framework.common.constant.InterceptorOrderConst;
|
||||
import com.orion.visor.framework.common.constant.BeanOrderConst;
|
||||
import com.orion.visor.framework.log.configuration.config.LogPrinterConfig;
|
||||
import com.orion.visor.framework.log.core.interceptor.LogPrinterInterceptor;
|
||||
import com.orion.visor.framework.log.core.interceptor.PrettyLogPrinterInterceptor;
|
||||
@@ -59,7 +59,7 @@ public class OrionLogPrinterConfiguration {
|
||||
AspectJExpressionPointcutAdvisor advisor = new AspectJExpressionPointcutAdvisor();
|
||||
advisor.setExpression(config.getExpression());
|
||||
advisor.setAdvice(logPrinterInterceptor);
|
||||
advisor.setOrder(InterceptorOrderConst.LOG_FILTER);
|
||||
advisor.setOrder(BeanOrderConst.LOG_PRINT_ASPECT);
|
||||
return advisor;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user