update 移除自定义注解 改为框架统一配置

This commit is contained in:
疯狂的狮子Li
2022-02-27 22:58:56 +08:00
parent 710864a4f2
commit e167ba5539
6 changed files with 17 additions and 24 deletions

View File

@@ -0,0 +1,16 @@
package com.ruoyi.common.core.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
/**
* 程序注解配置
*
* @author Lion Li
*/
@Configuration
// 表示通过aop框架暴露该代理对象,AopContext能够访问
@EnableAspectJAutoProxy(exposeProxy = true)
public class ApplicationConfig {
}

View File

@@ -1,5 +1,6 @@
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
com.ruoyi.common.core.utils.SpringUtils,\
com.ruoyi.common.core.config.ApplicationConfig,\
com.ruoyi.common.core.config.JacksonConfig,\
com.ruoyi.common.core.config.ValidatorConfig