日志打印
This commit is contained in:
parent
59b978fdb0
commit
b850045f72
|
|
@ -10,16 +10,21 @@ import org.aspectj.lang.ProceedingJoinPoint;
|
||||||
import org.aspectj.lang.annotation.Around;
|
import org.aspectj.lang.annotation.Around;
|
||||||
import org.aspectj.lang.annotation.Aspect;
|
import org.aspectj.lang.annotation.Aspect;
|
||||||
import org.aspectj.lang.annotation.Pointcut;
|
import org.aspectj.lang.annotation.Pointcut;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
|
import org.springframework.context.annotation.Profile;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 方法调用统一切面处理
|
* 方法调用统一切面处理
|
||||||
*/
|
*/
|
||||||
@Aspect
|
@Aspect
|
||||||
@Component
|
@Component
|
||||||
@Slf4j
|
@Slf4j
|
||||||
|
@Profile({"dev"})
|
||||||
public class AppApiMethodAspect {
|
public class AppApiMethodAspect {
|
||||||
|
|
||||||
@Pointcut("!execution(public * (com.sqx.modules.sys.controller.SysLoginController).*(..)) " +
|
@Pointcut("!execution(public * (com.sqx.modules.sys.controller.SysLoginController).*(..)) " +
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ spring:
|
||||||
# sharding-jdbc 配置
|
# sharding-jdbc 配置
|
||||||
shardingsphere:
|
shardingsphere:
|
||||||
# 显示sharding-jdbc改写的sql语句
|
# 显示sharding-jdbc改写的sql语句
|
||||||
show-sql: true
|
show-sql: false
|
||||||
|
|
||||||
center-tables-data-node: duanju.%s
|
center-tables-data-node: duanju.%s
|
||||||
# 区域表的数据源节点
|
# 区域表的数据源节点
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ spring:
|
||||||
# sharding-jdbc 配置
|
# sharding-jdbc 配置
|
||||||
shardingsphere:
|
shardingsphere:
|
||||||
# 显示sharding-jdbc改写的sql语句
|
# 显示sharding-jdbc改写的sql语句
|
||||||
show-sql: true
|
show-sql: false
|
||||||
|
|
||||||
center-tables-data-node: duanju.%s
|
center-tables-data-node: duanju.%s
|
||||||
# 区域表的数据源节点
|
# 区域表的数据源节点
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue