优化,使用 @Configuration(proxyBeanMethods = false) 提升启动速度

pull/2/head
YunaiV 2022-11-12 20:22:09 +08:00
parent f5ef87094d
commit c5b547e0f3
13 changed files with 13 additions and 13 deletions

View File

@ -11,7 +11,7 @@ import org.springframework.security.web.authentication.UsernamePasswordAuthentic
import javax.annotation.Resource;
@Configuration
@Configuration(proxyBeanMethods = false)
public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
@Resource

View File

@ -11,7 +11,7 @@ import org.springframework.security.web.authentication.UsernamePasswordAuthentic
import javax.annotation.Resource;
@Configuration
@Configuration(proxyBeanMethods = false)
public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
@Resource

View File

@ -17,7 +17,7 @@ import java.util.List;
*
* @author
*/
@Configuration
@Configuration(proxyBeanMethods = false)
public class YudaoDataPermissionAutoConfiguration {
@Bean

View File

@ -16,7 +16,7 @@ import java.util.List;
*
* @author
*/
@Configuration
@Configuration(proxyBeanMethods = false)
@ConditionalOnClass(LoginUser.class)
@ConditionalOnBean(value = {PermissionApi.class, DeptDataPermissionRuleCustomizer.class})
public class YudaoDeptDataPermissionAutoConfiguration {

View File

@ -8,7 +8,7 @@ import org.springframework.context.annotation.Configuration;
/**
* BPM Configuration Activiti Flowable
*/
@Configuration
@Configuration(proxyBeanMethods = false)
public class BpmCommonConfiguration {
@Bean

View File

@ -15,7 +15,7 @@ import org.springframework.context.annotation.Configuration;
*
* @author jason
*/
@Configuration
@Configuration(proxyBeanMethods = false)
public class BpmFlowableConfiguration {
/**

View File

@ -3,7 +3,7 @@ package cn.iocoder.yudao.module.infra.framework.codegen.config;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
@Configuration
@Configuration(proxyBeanMethods = false)
@EnableConfigurationProperties(CodegenProperties.class)
public class CodegenConfiguration {
}

View File

@ -3,7 +3,7 @@ package cn.iocoder.yudao.module.infra.framework.monitor.config;
import de.codecentric.boot.admin.server.config.EnableAdminServer;
import org.springframework.context.annotation.Configuration;
@Configuration
@Configuration(proxyBeanMethods = false)
@EnableAdminServer
public class AdminServerConfiguration {
}

View File

@ -10,7 +10,7 @@ import org.springframework.security.config.annotation.web.configurers.Expression
/**
* Infra Security
*/
@Configuration("infraSecurityConfiguration")
@Configuration(proxyBeanMethods = false, value = "infraSecurityConfiguration")
public class SecurityConfiguration {
@Value("${spring.boot.admin.context-path:''}")

View File

@ -6,7 +6,7 @@ import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import java.util.concurrent.ThreadPoolExecutor;
@Configuration
@Configuration(proxyBeanMethods = false)
public class PayJobConfiguration {
public static final String NOTIFY_THREAD_POOL_TASK_EXECUTOR = "NOTIFY_THREAD_POOL_TASK_EXECUTOR";

View File

@ -3,7 +3,7 @@ package cn.iocoder.yudao.module.system.framework.sms;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
@Configuration
@Configuration(proxyBeanMethods = false)
@EnableConfigurationProperties(SmsCodeProperties.class)
public class SmsCodeConfiguration {
}

View File

@ -12,7 +12,7 @@ import org.springframework.context.annotation.Configuration;
*
* @author
*/
@Configuration
@Configuration(proxyBeanMethods = false)
@ComponentScan(basePackages = "org.jeecg.modules.jmreport") // 扫描积木报表的包
public class JmReportConfiguration {

View File

@ -11,7 +11,7 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
*
* @author
*/
@Configuration
@Configuration(proxyBeanMethods = false)
public class AdminUiConfiguration implements WebMvcConfigurer {
@Override