Commit 0f895997 authored by jiaorz's avatar jiaorz

添加admin日志拦截

parent b3259442
...@@ -57,6 +57,7 @@ public class XxLogInterceptor{ ...@@ -57,6 +57,7 @@ public class XxLogInterceptor{
try{ try{
//###################上面代码为方法执行前##################### //###################上面代码为方法执行前#####################
result = pjp.proceed();//执行方法,获取返回参数 result = pjp.proceed();//执行方法,获取返回参数
log.info("接口调用返回:{}", xxLogEntity.toString());
//###################下面代码为方法执行后##################### //###################下面代码为方法执行后#####################
if(result instanceof JSONObject) { if(result instanceof JSONObject) {
commonLogService.initCommonLogLastPart(xxLogEntity, ((JSONObject) result).toJSONString()); commonLogService.initCommonLogLastPart(xxLogEntity, ((JSONObject) result).toJSONString());
......
...@@ -24,7 +24,8 @@ import tk.mybatis.spring.annotation.MapperScan; ...@@ -24,7 +24,8 @@ import tk.mybatis.spring.annotation.MapperScan;
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableCircuitBreaker @EnableCircuitBreaker
@SpringBootApplication(scanBasePackages = { @SpringBootApplication(scanBasePackages = {
"com.github.wxiaoqi.security.common.log" "com.github.wxiaoqi.security.common.log",
"com.github.wxiaoqi.security.admin"
}) })
@EnableFeignClients(value = {"com.github.wxiaoqi.security","com.xxfc.platform"},defaultConfiguration = HeaderConfig.class) @EnableFeignClients(value = {"com.github.wxiaoqi.security","com.xxfc.platform"},defaultConfiguration = HeaderConfig.class)
@EnableScheduling @EnableScheduling
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment