Skip to content

Commit 3b1c6f1

Browse files
committed
fix: unbreak application startup due to non-existing site_parsers table.
Regression for 2658b09 commit. Related to #975
1 parent 8bdb2f2 commit 3b1c6f1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/ru/mystamps/web/feature/series/importing/event/EventsConfig.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import org.springframework.context.ApplicationListener;
2525
import org.springframework.context.annotation.Bean;
2626
import org.springframework.context.annotation.Configuration;
27+
import org.springframework.context.annotation.DependsOn;
2728
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
2829

2930
import lombok.RequiredArgsConstructor;
@@ -69,6 +70,9 @@ public ApplicationListener<ImportRequestCreated> getImportRequestCreatedEventLis
6970
);
7071
}
7172

73+
// This bean has logic that access database. To ensure that all migrations have been applied
74+
// we need this dependency. This annotation shouldn't be needed in Spring Boot 2.
75+
@DependsOn("liquibase")
7276
@Bean
7377
public ApplicationListener<DownloadingSucceeded> getDownloadingSucceededEventListener(
7478
SiteParserService siteParserService

0 commit comments

Comments
 (0)