Reduce need for bean method proxying and disable where not needed
Closes gh-9068
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -5,7 +5,7 @@ package org.test
|
||||
import java.util.concurrent.CountDownLatch
|
||||
|
||||
@Log
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableJms
|
||||
class JmsExample implements CommandLineRunner {
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package org.test
|
||||
|
||||
@Grab("hsqldb")
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableBatchProcessing
|
||||
class JobConfig {
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package org.test
|
||||
import java.util.concurrent.CountDownLatch
|
||||
|
||||
@Log
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableRabbit
|
||||
class RabbitExample implements CommandLineRunner {
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ package org.test
|
||||
|
||||
@Grab("hsqldb")
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableTransactionManagement
|
||||
class Example implements CommandLineRunner {
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ class Example {
|
||||
}
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@Log
|
||||
class MvcConfiguration extends WebMvcConfigurerAdapter {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user