How to inject ApplicationContext itself

Previous comments are ok, but I usually prefer:

@Autowired private ApplicationContext applicationContext;

Leave a Comment