You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TestContext: define PropertySourcesPlaceholderConfigurer as static.
Fix the warning from Spring Test Framework:
2016-08-22 23:30:28.746 WARN --- [ main] o.s.c.a.ConfigurationClassEnhancer:
@bean method TestContext.getPropertySourcesPlaceholderConfigurer 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.
No functional changes.
0 commit comments