-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add application.properties with default connection parameters
- Loading branch information
1 parent
4a892cb
commit 2c66d2d
Showing
1 changed file
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |