File tree 1 file changed +4
-0
lines changed
src/main/java/ru/mystamps/web/feature/series/importing/event 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 24
24
import org .springframework .context .ApplicationListener ;
25
25
import org .springframework .context .annotation .Bean ;
26
26
import org .springframework .context .annotation .Configuration ;
27
+ import org .springframework .context .annotation .DependsOn ;
27
28
import org .springframework .jdbc .core .namedparam .NamedParameterJdbcTemplate ;
28
29
29
30
import lombok .RequiredArgsConstructor ;
@@ -69,6 +70,9 @@ public ApplicationListener<ImportRequestCreated> getImportRequestCreatedEventLis
69
70
);
70
71
}
71
72
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" )
72
76
@ Bean
73
77
public ApplicationListener <DownloadingSucceeded > getDownloadingSucceededEventListener (
74
78
SiteParserService siteParserService
You can’t perform that action at this time.
0 commit comments