Skip to content

Check database structure during boot

To prevent tampering with the database structure (tables, configurations etc.) we need to check it during boot.

If the database is setup exactly how SPC needs it, start. Otherwise, SPC needs to quit to prevent any errors due to tampering with the database structure.

https://www.baeldung.com/spring-data-jpa-generate-db-schema