Support option to disable external access during CDS training #924
Labels
in: event publication registry
Event publication registry
meta: investigating
Stuff that needs more investigation
type: improvement
Minor improvements
The following error occurred during CDS training in an app that uses
spring-modulith-starter-jdbc
(1.2).This seems to be caused by opening a connection at runtime to determine the
DatabaseType
.I haven't tried it with other modules, but I would like them to support CDS builds by adding an option such as
-Dspring.flyway.enabled=false
that does not make an external connection during CDS training, or, in the case of JDBC, an option to specify theDatabaseType
statically.The current workaround is to add
-Dspring.autoconfigure.exclude=org.springframework.modulith.events.jdbc.JdbcEventPublicationAutoConfiguration
during training.The text was updated successfully, but these errors were encountered: