Database support fixed with the latest spring boot upgrade.
Issue-ID: CCSDK-4033
Change-Id: I852d8e4f7476c602be6e976b14c735cd1409ee6d
Signed-off-by: aravind.est <aravindhan.a@est.tech>
</dependency>
<dependency>
<groupId>org.flywaydb</groupId>
- <artifactId>flyway-core</artifactId>
+ <artifactId>flyway-database-postgresql</artifactId>
+ <scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
@Bean
public PolicyTypes getPolicyTypes(@Autowired ApplicationConfig applicationConfig) {
PolicyTypes types = new PolicyTypes(applicationConfig);
- types.restoreFromDatabase().blockLast();
+ types.restoreFromDatabase().subscribe();
return types;
}
@DependsOn({ "springContextProvider", "flywayInitializer" })
public PolicyTypes getPolicyTypes(@Autowired ApplicationConfig applicationConfig) {
PolicyTypes types = new PolicyTypes(applicationConfig);
- types.restoreFromDatabase().blockLast();
+ types.restoreFromDatabase().subscribe();
return types;
}