How can (can) at the end of the program call the destroy-method without calling appContext.close() ?
void main(){ appContext = new ClassPathXmlApplicationContext("spring.xml"); ... blablabla... // завершаю программу без вызова appContext.close() }