Skip to content

Commit 91fa115

Browse files
committed
Reorder yml properties
1 parent 3a65264 commit 91fa115

File tree

2 files changed

+10
-22
lines changed

2 files changed

+10
-22
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ You can download the Suricate Widget Tester as a fat jar from the [GitHub releas
3434
## Install
3535

3636
The Suricate Widget Tester is built on the [Spring Boot framework](https://spring.io/) and can be configured using a Spring Boot
37-
configuration file, which includes a sample file located at `src/main/resources/application.properties`.
37+
configuration file, which includes a sample file located at `src/main/resources/application.yml`.
3838

39-
If necessary, you can override the properties from the default `application.properties` file by following
39+
If necessary, you can override the properties from the default `application.yml` file by following
4040
the [Spring Boot externalized configuration guide](https://docs.spring.io/spring-boot/reference/features/external-config.html).
4141
For example, you can create a custom `/config/application.properties` or set the `--spring.config.location` system
4242
property when running the fat jar file:
@@ -57,7 +57,9 @@ The repository must follow the required structure (see the [official open-source
5757
The repository location can be configured with the following property:
5858

5959
```yml
60-
application.widgets.repository: <path-to-repository>
60+
application:
61+
widgets:
62+
repository: <path-to-repository>
6163
```
6264
6365
It is set to `/tmp` by default.

src/main/resources/application.yml

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,3 @@
1-
#######################################################################################################################
2-
## SERVER ##
3-
#######################################################################################################################
4-
5-
server:
6-
port: 8085
7-
8-
#######################################################################################################################
9-
## SPRING ##
10-
#######################################################################################################################
11-
12-
spring:
13-
autoconfigure:
14-
exclude: org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration
15-
16-
#######################################################################################################################
17-
## APPLICATION ##
18-
#######################################################################################################################
19-
201
application:
212
cors:
223
allowedHeaders: 'Content-Type, Accept, Authorization, X-Requested-With'
@@ -25,3 +6,8 @@ application:
256
maxAge: 3600
267
widgets:
278
repository: '/tmp'
9+
server:
10+
port: 8085
11+
spring:
12+
autoconfigure:
13+
exclude: 'org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration'

0 commit comments

Comments
 (0)