Skip to content

Commit

Permalink
Fix config method
Browse files Browse the repository at this point in the history
(cherry picked from commit 0af2285)
  • Loading branch information
SIMULATAN authored and gsmet committed Jun 13, 2022
1 parent 1b16be9 commit 3f597e6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/src/main/asciidoc/reactive-sql-clients.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,7 @@ But for development we can simply drop and create the tables on startup, and the
@ConfigProperty(name = "myapp.schema.create", defaultValue = "true") // <1>
boolean schemaCreate;
@PostConstruct
void config() {
void config(@Observes StartupEvent ev) {
if (schemaCreate) {
initdb();
}
Expand Down

0 comments on commit 3f597e6

Please sign in to comment.