优化,使用 @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; import javax.annotation.Resource;
@Configuration @Configuration(proxyBeanMethods = false)
public class SecurityConfiguration extends WebSecurityConfigurerAdapter { public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
@Resource @Resource

View File

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

View File

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

View File

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

View File

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

View File

@ -15,7 +15,7 @@ import org.springframework.context.annotation.Configuration;
* *
* @author jason * @author jason
*/ */
@Configuration @Configuration(proxyBeanMethods = false)
public class BpmFlowableConfiguration { 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.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
@Configuration @Configuration(proxyBeanMethods = false)
@EnableConfigurationProperties(CodegenProperties.class) @EnableConfigurationProperties(CodegenProperties.class)
public class CodegenConfiguration { 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 de.codecentric.boot.admin.server.config.EnableAdminServer;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
@Configuration @Configuration(proxyBeanMethods = false)
@EnableAdminServer @EnableAdminServer
public class AdminServerConfiguration { public class AdminServerConfiguration {
} }

View File

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

View File

@ -6,7 +6,7 @@ import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.ThreadPoolExecutor;
@Configuration @Configuration(proxyBeanMethods = false)
public class PayJobConfiguration { public class PayJobConfiguration {
public static final String NOTIFY_THREAD_POOL_TASK_EXECUTOR = "NOTIFY_THREAD_POOL_TASK_EXECUTOR"; 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.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
@Configuration @Configuration(proxyBeanMethods = false)
@EnableConfigurationProperties(SmsCodeProperties.class) @EnableConfigurationProperties(SmsCodeProperties.class)
public class SmsCodeConfiguration { public class SmsCodeConfiguration {
} }

View File

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

View File

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