Skip to content
This repository has been archived by the owner on Jun 14, 2018. It is now read-only.

Warning messages during startup #56

Closed
sergeykad opened this issue Feb 15, 2017 · 3 comments
Closed

Warning messages during startup #56

sergeykad opened this issue Feb 15, 2017 · 3 comments
Assignees
Labels
Milestone

Comments

@sergeykad
Copy link

Spring reports the following warnings on Startup:

WARN o.s.c.a.ConfigurationClassEnhancer - @bean method ResteasySpringBootConfig.springBeanProcessor 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.
WARN o.s.c.a.ConfigurationClassEnhancer - @bean method ResteasySpringBootConfig.resteasyEmbeddedServletInitializer 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.

@fabiocarvalho777
Copy link
Member

Thanks for reporting it. I will get that fixed and release a new version with the fix very soon.

@fabiocarvalho777
Copy link
Member

RESTEasy Spring Boot starter version 2.3.0 has just been released with this fix. Notice that it also has RESTEasy and Spring Boot revved up to their latest release versions.

@fabiocarvalho777
Copy link
Member

By the way, it takes some time before Maven public release repositories synchronize, so give it some time before trying to use version 2.3.0. Usually it doesn't take more than one day.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants