Reduce need for bean method proxying and disable where not needed

Closes gh-9068
This commit is contained in:
Andy Wilkinson
2019-02-08 14:51:38 +00:00
parent 0f71f22f3c
commit 68bfb020aa
887 changed files with 2574 additions and 2542 deletions

View File

@@ -2,7 +2,7 @@ package org.test
import java.util.concurrent.atomic.AtomicLong
@Configuration
@Configuration(proxyBeanMethods = false)
@EnableCaching
class Sample {
@@ -18,9 +18,9 @@ class Sample {
@Autowired
MyClient(MyService myService) {
this.myService = myService
}
}
void run(String... args) {
void run(String... args) {
long counter = myService.get('someKey')
long counter2 = myService.get('someKey')
if (counter == counter2) {

View File

@@ -5,7 +5,7 @@ package org.test
import java.util.concurrent.CountDownLatch
@Log
@Configuration
@Configuration(proxyBeanMethods = false)
@EnableJms
class JmsExample implements CommandLineRunner {

View File

@@ -1,7 +1,7 @@
package org.test
@Grab("hsqldb")
@Configuration
@Configuration(proxyBeanMethods = false)
@EnableBatchProcessing
class JobConfig {

View File

@@ -3,7 +3,7 @@ package org.test
import java.util.concurrent.CountDownLatch
@Log
@Configuration
@Configuration(proxyBeanMethods = false)
@EnableRabbit
class RabbitExample implements CommandLineRunner {

View File

@@ -2,7 +2,7 @@ package org.test
@Grab("hsqldb")
@Configuration
@Configuration(proxyBeanMethods = false)
@EnableTransactionManagement
class Example implements CommandLineRunner {

View File

@@ -11,7 +11,7 @@ class Example {
}
}
@Configuration
@Configuration(proxyBeanMethods = false)
@Log
class MvcConfiguration extends WebMvcConfigurerAdapter {