Files
spring-boot/spring-boot-cli/samples/template.groovy
Dave Syer 2098e23fca Change package names zero->boot
* actuator -> boot-ops
* cli -> boot-cli
* launcher -> boot-load
* autoconfig -> boot-config
* bootstrap -> boot-strap
* starters -> boot-up

[#54095231] [bs-253] Refactor Zero->Boot
2013-07-26 14:13:41 +01:00

26 lines
366 B
Groovy

package org.test
import static org.springframework.boot.cli.template.GroovyTemplate.template;
@Component
class Example implements CommandLineRunner {
@Autowired
private MyService myService
void run(String... args) {
print template("test.txt", ["message":myService.sayWorld()])
}
}
@Service
class MyService {
String sayWorld() {
return "World"
}
}