/
NikolayIvkin
/
tutorials1
Обзор
Документация
Войти
/
NikolayIvkin
/
tutorials1
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
spring-exceptions/src/main/java/com/baeldung/persistence/Setup.java
26 строк
578 B
Krzysztof Woyke
BAEL-20262: Migrate spring-exceptions module to the com.baeldung package
20 дек 2019, 14:32
20 дек 2019, 14:32
98bdc46
Код
Авторство
О чём код?
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; } } }