Skip to content

Commit f7ecb78

Browse files
authored
Fix Default Resources README
1 parent 139bd7a commit f7ecb78

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.adoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,11 @@ static CommonsExecWebServerFactoryBean authorizationServer() {
137137
}
138138
----
139139

140-
=== Default application.yml / application.properties
140+
=== Default Resources
141141

142-
If present, `CommonsExecWebServerFactoryBean` will add the resources `webjars/$beanName/application.yml` or `webjars/$beanName/application.properties` exists, then it is automatically added to the classpath as `application.yml` and `application.properties` respectively.
142+
If present, `CommonsExecWebServerFactoryBean` will add the resources `testjars/$beanName/**`, then it is automatically added to the classpath as resources renamed without the path of `testjars/$beanName`.
143+
For example, if the bean name is `authorizationServer`, then the resource `testjars/authorizationServer/application.yml` will automatically be added to the classpath as `application.yml`.
144+
Furthermore, a resource named `testjars/authorizationServer/foo/bar.txt` will automatically be added to the classpath as `foo/bar.txt`.
143145

144146
=== Adding Additional Classes to the ApplicationContext
145147

0 commit comments

Comments
 (0)