java - How do you make @Resource optional? -


is there way make @resource optional? means if don't have bean of type requested @resource, won't exception, set null.

ok looks isn't possible. had use @autowired(required = false). not wanted, do.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -