BAEL-20262: Migrate spring-exceptions module to the com.baeldung package

This commit is contained in:
Krzysztof Woyke
2019-12-20 12:32:07 +01:00
parent b6dc27ac04
commit 875aa5250a
143 changed files with 326 additions and 337 deletions

View File

@@ -0,0 +1,26 @@
package com.baeldung.persistence;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.stereotype.Component;
@Component
public class Setup implements ApplicationListener<ContextRefreshedEvent> {
private boolean setupDone;
public Setup() {
super();
}
//
@Override
public final void onApplicationEvent(final ContextRefreshedEvent event) {
if (!setupDone) {
System.out.println();
setupDone = true;
}
}
}