This commit is contained in:
ajaxfan
2021-02-07 15:24:16 +08:00
parent 530b0fa7f9
commit 3d225eadf0
3 changed files with 19 additions and 21 deletions

View File

@ -24,11 +24,11 @@
<groupId>com.chinaunicom.ebtp</groupId> <groupId>com.chinaunicom.ebtp</groupId>
<artifactId>mall-ebtp-cloud-apollo-starter</artifactId> <artifactId>mall-ebtp-cloud-apollo-starter</artifactId>
</dependency> </dependency>
<!--
<dependency> <dependency>
<groupId>org.apache.shardingsphere</groupId> <groupId>org.apache.shardingsphere</groupId>
<artifactId>sharding-jdbc-spring-boot-starter</artifactId> <artifactId>sharding-jdbc-spring-boot-starter</artifactId>
</dependency> </dependency> -->
<dependency> <dependency>
<groupId>mysql</groupId> <groupId>mysql</groupId>

View File

@ -1,18 +1,15 @@
package com.chinaunicom.mall.ebtp.project; package com.chinaunicom.mall.ebtp.project;
import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import org.mybatis.spring.annotation.MapperScan; import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient; import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients; import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.ComponentScan;
@SpringBootApplication(exclude = { //@SpringBootApplication(exclude = {
DataSourceAutoConfiguration.class, // DataSourceAutoConfiguration.class,
DruidDataSourceAutoConfigure.class // DruidDataSourceAutoConfigure.class
}) //})
@EnableFeignClients @EnableFeignClients
@EnableEurekaClient @EnableEurekaClient
@MapperScan({"com.chinaunicom.mall.ebtp.project.**.dao"}) @MapperScan({"com.chinaunicom.mall.ebtp.project.**.dao"})

View File

@ -1,13 +1,10 @@
package com.chinaunicom.mall.ebtp.project.baseoperlog.aop; package com.chinaunicom.mall.ebtp.project.baseoperlog.aop;
import com.chinaunicom.mall.ebtp.common.base.entity.BaseCacheUser; import java.util.ArrayList;
import com.chinaunicom.mall.ebtp.common.base.service.IBaseCacheUserService; import java.util.List;
import com.chinaunicom.mall.ebtp.common.util.HttpContextUtils;
import com.chinaunicom.mall.ebtp.common.util.IPUtils; import javax.servlet.http.HttpServletRequest;
import com.chinaunicom.mall.ebtp.common.util.JsonUtils;
import com.chinaunicom.mall.ebtp.project.baseoperlog.service.IBaseOperLogService;
import groovy.util.logging.Slf4j;
import io.swagger.annotations.ApiOperation;
import org.aspectj.lang.ProceedingJoinPoint; 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;
@ -19,16 +16,20 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;
import javax.servlet.http.HttpServletRequest; import com.chinaunicom.mall.ebtp.common.base.entity.BaseCacheUser;
import java.util.ArrayList; import com.chinaunicom.mall.ebtp.common.base.service.IBaseCacheUserService;
import java.util.List; import com.chinaunicom.mall.ebtp.common.util.HttpContextUtils;
import com.chinaunicom.mall.ebtp.common.util.IPUtils;
import com.chinaunicom.mall.ebtp.common.util.JsonUtils;
import com.chinaunicom.mall.ebtp.project.baseoperlog.service.IBaseOperLogService;
import io.swagger.annotations.ApiOperation;
/** /**
* 操作审计日志切面类 * 操作审计日志切面类
* *
* @author huangjl * @author huangjl
*/ */
@Slf4j
@Aspect @Aspect
@Component @Component
public class OperLogAspect { public class OperLogAspect {