Skip to content

Commit

Permalink
Set proxyBeanMethods to true on @Configurations
Browse files Browse the repository at this point in the history
Since no beans defined in the configuration classes are referenced using their methods, it's safe to set proxyBeanMethods to false for performance improvements.
  • Loading branch information
drumonii committed Oct 24, 2019
1 parent c78c3b1 commit 7ce8a0c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/**
* Configuration for batch components.
*/
@Configuration
@Configuration(proxyBeanMethods = false)
@EnableBatchProcessing
public class BatchConfig {
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/**
* Configuration for cache components.
*/
@Configuration
@Configuration(proxyBeanMethods = false)
@EnableCaching
public class CacheConfig {
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/**
* Configuration for Data JPA components.
*/
@Configuration
@Configuration(proxyBeanMethods = false)
@EnableJpaAuditing
public class JpaConfig {
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/**
* Configuration for using a {@link RestTemplate} to retrieve models from Riot's API.
*/
@Configuration
@Configuration(proxyBeanMethods = false)
public class RiotApiConfig {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/**
* Configuration for scheduling components.
*/
@Configuration
@Configuration(proxyBeanMethods = false)
@EnableScheduling
public class SchedulingConfig {
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Configuration for web mvc related beans.
*/
@Configuration
@Configuration(proxyBeanMethods = false)
public class WebMvcConfig {

@Bean
Expand Down

0 comments on commit 7ce8a0c

Please sign in to comment.