Polish contribution

Closes gh-6367
This commit is contained in:
Stephane Nicoll
2016-10-05 13:35:10 +02:00
parent d07f689446
commit 2d75cc79c0
9 changed files with 31 additions and 45 deletions

View File

@@ -13,6 +13,7 @@ class Example implements CommandLineRunner {
println getClass().getResource('/resources/resource.txt')
println getClass().getResource('/static/static.txt')
println getClass().getResource('/templates/template.txt')
println getClass().getResource('/root.properties')
println template('template.txt', [world:'Mama'])
}
}

View File

@@ -10,6 +10,7 @@ class WarExample implements CommandLineRunner {
void run(String... args) {
println getClass().getResource('/org/apache/tomcat/InstanceManager.class')
println getClass().getResource('/root.properties')
throw new RuntimeException("onStart error")
}