Skip to content

Commit c3dde7c

Browse files
committed
Add application.properties with default connection parameters
1 parent 46af738 commit c3dde7c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Without this line, Quarkus would abort with the following error message:
2+
# "Model classes are defined for the default persistence unit but configured datasource not found:
3+
# the default EntityManagerFactory will not be created."
4+
%prod.quarkus.datasource.jdbc.url=dummy
5+
%prod.persistence=inmemory
6+
7+
%mysql.quarkus.datasource.jdbc.url=jdbc:mysql://localhost:3306/shop
8+
%mysql.quarkus.datasource.username=root
9+
%mysql.quarkus.datasource.password=test
10+
%mysql.quarkus.hibernate-orm.database.generation=update
11+
%mysql.persistence=mysql

0 commit comments

Comments
 (0)