From c582accbda5aa6ddcb9c8061a11f83e9e023659e Mon Sep 17 00:00:00 2001 From: azwar Date: Wed, 30 Sep 2020 17:07:49 +0700 Subject: [PATCH] Tell ebean server config to make setDdlGenerate and setDdlRun true, so there is no error Exception table not found --- src/main/java/org/example/sboot/service/EbeanFactoryBean.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/example/sboot/service/EbeanFactoryBean.java b/src/main/java/org/example/sboot/service/EbeanFactoryBean.java index 7c643e9..c2b980b 100644 --- a/src/main/java/org/example/sboot/service/EbeanFactoryBean.java +++ b/src/main/java/org/example/sboot/service/EbeanFactoryBean.java @@ -33,7 +33,9 @@ public EbeanServer getObject() throws Exception { config.loadFromProperties(); config.loadTestProperties(); - + config.setDdlGenerate(true); + config.setDdlRun(true); + return EbeanServerFactory.create(config); }