Startup time for CLI app much quicker now
The Boot resolver didn't transfer enough of the settings of the default ChainResolver. Adding a boolean flag was enough to make the chatter die down for dependencies that were unneeded. [Fixes #55358344] [bs-291]
This commit is contained in:
19
spring-boot-cli/samples/http.groovy
Normal file
19
spring-boot-cli/samples/http.groovy
Normal file
@@ -0,0 +1,19 @@
|
||||
package org.test
|
||||
|
||||
@Grab("org.codehaus.groovy.modules.http-builder:http-builder:0.5.2") // This one just to test dependency resolution
|
||||
import groovyx.net.http.*
|
||||
|
||||
@Controller
|
||||
class Example implements CommandLineRunner {
|
||||
|
||||
@RequestMapping("/")
|
||||
@ResponseBody
|
||||
public String helloWorld() {
|
||||
return "World!"
|
||||
}
|
||||
|
||||
void run(String... args) {
|
||||
def world = new RESTClient("http://localhost:8080").get(path:"/").data.text
|
||||
print "Hello " + world
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user