文件名从 ruoyi/src/main/java/com/ruoyi/framework/aspectj/DataSourceAspect.java 修改 |
| | |
| | | import org.springframework.core.annotation.AnnotationUtils;
|
| | | import org.springframework.core.annotation.Order;
|
| | | import org.springframework.stereotype.Component;
|
| | | import com.ruoyi.common.annotation.DataSource;
|
| | | import com.ruoyi.common.utils.StringUtils;
|
| | | import com.ruoyi.framework.aspectj.lang.annotation.DataSource;
|
| | | import com.ruoyi.framework.datasource.DynamicDataSourceContextHolder;
|
| | |
|
| | | /**
|
| | |
| | | {
|
| | | protected Logger logger = LoggerFactory.getLogger(getClass());
|
| | |
|
| | | @Pointcut("@annotation(com.ruoyi.framework.aspectj.lang.annotation.DataSource)"
|
| | | + "|| @within(com.ruoyi.framework.aspectj.lang.annotation.DataSource)")
|
| | | @Pointcut("@annotation(com.ruoyi.common.annotation.DataSource)"
|
| | | + "|| @within(com.ruoyi.common.annotation.DataSource)")
|
| | | public void dsPointCut()
|
| | | {
|
| | |
|