Add templates/** to list of default includes for CLI jars
Boot promotes the use of a templates directory for housing view templates. Include this directory by default when building a jar file from a CLI app. Fixes #455
This commit is contained in:
@@ -8,7 +8,10 @@ class Example implements CommandLineRunner {
|
||||
|
||||
void run(String... args) {
|
||||
println "Hello ${this.myService.sayWorld()}"
|
||||
println getClass().getResource('/static/test.txt')
|
||||
println getClass().getResource('/public/public.txt')
|
||||
println getClass().getResource('/resources/resource.txt')
|
||||
println getClass().getResource('/static/static.txt')
|
||||
println getClass().getResource('/templates/template.txt')
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user