* shutdown boot app * test the ctx.close() * application shutdown test * BAEL-1625 * /shutdown endpoint test * bring back the closeApplication * @Ignore shutdown endpoint test
12 lines
232 B
Java
12 lines
232 B
Java
package com.baeldung.shutdown;
|
|
|
|
import javax.annotation.PreDestroy;
|
|
|
|
public class TerminateBean {
|
|
|
|
@PreDestroy
|
|
public void onDestroy() throws Exception {
|
|
System.out.println("Spring Container is destroyed!");
|
|
}
|
|
}
|