Skip to content

Commit

Permalink
Use application.properties for configuration
Browse files Browse the repository at this point in the history
Updated to quarkusio/quarkus#1110 change
  • Loading branch information
jmesnil committed Mar 6, 2019
1 parent bf4166d commit 860abca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions _guides/application-configuration-guide.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ public String hello() {

== Create the configuration

By default, Quarkus reads `META-INF/microprofile-config.properties`.
Edit the `src/main/resources/META-INF/microprofile-config.properties` with the following content:
By default, Quarkus reads `application.properties`.
Edit the `src/main/resources/application.properties` with the following content:

[source]
----
Expand All @@ -107,7 +107,7 @@ Once set, check the application with:

[source]
----
$ curl http://localhost:8080/greeting
$ curl http://localhost:8080/greeting
hello quarkus!
----

Expand Down Expand Up @@ -154,4 +154,4 @@ Changing the configuration file is immediately reflected.
You can add the `greeting.suffix`, remove the other properties, change the values, etc.

As usual, the application can be packaged using `mvn clean package` and executed using the `-runner.jar` file.
You can also generate the native executable with `mvn clean package -Pnative`.
You can also generate the native executable with `mvn clean package -Pnative`.

0 comments on commit 860abca

Please sign in to comment.