When creating a new Spring application, for example, through
final ApplicationContext ac = new AnnotationConfigApplicationContext(AppConfiguration.class);
Eclipse (STS 3.2.0) marks this as a potential resource leak, complaining that it never closes ("resource leak:" ac "never closes).
So far so good. Then I tried to study this question and could not find close() or shutdown() or a similar method that would even allow me to close ApplicationContext . Is this an Eclipse warning about leaving, a design intended, or am I missing something?
source share