mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-10 19:39:01 +00:00
18 lines
361 B
Groovy
18 lines
361 B
Groovy
package org.test
|
|
|
|
@RestController
|
|
class WarExample implements CommandLineRunner {
|
|
|
|
@RequestMapping("/")
|
|
public String hello() {
|
|
return "Hello"
|
|
}
|
|
|
|
void run(String... args) {
|
|
println getClass().getResource('/org/apache/tomcat/InstanceManager.class')
|
|
println getClass().getResource('/root.properties')
|
|
throw new RuntimeException("onStart error")
|
|
}
|
|
|
|
}
|