Class org.springframework.context.annotation.configuration.ConfigurationClassWithPlaceholderConfigurerBeanTests
Tests
| Test |
Duration |
Result |
| valueFieldsAreNotProcessedWhenPlaceholderConfigurerIsIntegrated |
0.019s |
passed |
| valueFieldsAreProcessedWhenPlaceholderConfigurerIsSegregated |
0.030s |
passed |
| valueFieldsAreProcessedWhenStaticPlaceholderConfigurerIsIntegrated |
0.031s |
passed |
| valueFieldsResolveToPlaceholderSpecifiedDefaultValuesWithPlaceholderConfigurer |
0.007s |
passed |
| valueFieldsResolveToPlaceholderSpecifiedDefaultValuesWithoutPlaceholderConfigurer |
0.005s |
passed |
Standard output
16:45:35.412 [Test worker] WARN org.springframework.context.annotation.ConfigurationClassEnhancer - @Bean method ConfigWithPlaceholderConfigurer.ppc is non-static and returns an object assignable to Spring's BeanFactoryPostProcessor interface. This will result in a failure to process annotations such as @Autowired, @Resource and @PostConstruct within the method's declaring @Configuration class. Add the 'static' modifier to this method to avoid these container lifecycle issues; see @Bean javadoc for complete details.
16:45:35.443 [Test worker] WARN org.springframework.context.annotation.ConfigurationClassEnhancer - @Bean method ConfigWithValueFieldAndPlaceholderConfigurer.ppc is non-static and returns an object assignable to Spring's BeanFactoryPostProcessor interface. This will result in a failure to process annotations such as @Autowired, @Resource and @PostConstruct within the method's declaring @Configuration class. Add the 'static' modifier to this method to avoid these container lifecycle issues; see @Bean javadoc for complete details.
16:45:35.450 [Test worker] WARN org.springframework.context.annotation.ConfigurationClassEnhancer - @Bean method ConfigWithPlaceholderConfigurer.ppc is non-static and returns an object assignable to Spring's BeanFactoryPostProcessor interface. This will result in a failure to process annotations such as @Autowired, @Resource and @PostConstruct within the method's declaring @Configuration class. Add the 'static' modifier to this method to avoid these container lifecycle issues; see @Bean javadoc for complete details.