Enable cglib proxy for configuration classes if necessary

This commit updates code generation to customize the instantiation of
a configuration class that requires a proxy. Rather than instantiating
the raw class, the proxy is used.

Closes gh-29107
This commit is contained in:
Stephane Nicoll
2022-09-13 12:49:03 +02:00
parent f2e9d112b1
commit 2f20d6322b
11 changed files with 259 additions and 45 deletions

View File

@@ -31,7 +31,7 @@ import org.springframework.transaction.PlatformTransactionManager;
* @author Sam Brannen
* @since 4.1
*/
@Configuration(proxyBeanMethods = false)
@Configuration
public class EmptyDatabaseConfig {
@Bean