Skip to content

Commit

Permalink
Add application.properties with default connection parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
SvenWoltmann committed Nov 7, 2023
1 parent 4a892cb commit 2c66d2d
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions bootstrap/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# No properties required for this demo application
# You would put database connection parameters here, for example.
# But in dev mode, Quarkus creates those auto-magically.
# Without this line, Quarkus would abort with the following error message:
# "Model classes are defined for the default persistence unit but configured datasource not found:
# the default EntityManagerFactory will not be created."
%prod.quarkus.datasource.jdbc.url=dummy
%prod.persistence=inmemory

%mysql.quarkus.datasource.jdbc.url=jdbc:mysql://localhost:3306/shop
%mysql.quarkus.datasource.username=root
%mysql.quarkus.datasource.password=test
%mysql.quarkus.hibernate-orm.database.generation=update
%mysql.persistence=mysql

0 comments on commit 2c66d2d

Please sign in to comment.