Use static factory methods and proxyBeanMethods = false

It is better to be explicit about beans of type `Module` and make
sure they don't interfere with Spring trying to enhance
`@Configuration` classes. The tests are now clear of the pesky
warning logs, and there is a new section in the README.
This commit is contained in:
Dave Syer
2022-03-20 16:27:23 +00:00
committed by GitHub
parent c22fb6a976
commit e71d6aca56
21 changed files with 54 additions and 25 deletions

View File

@@ -361,7 +361,7 @@ public class SuperClassTests {
static class DisableJITConfig {
@Bean
AbstractModule disableJITModule() {
static AbstractModule disableJITModule() {
return new AbstractModule() {
@Override
protected void configure() {