
* actuator -> boot-ops * cli -> boot-cli * launcher -> boot-load * autoconfig -> boot-config * bootstrap -> boot-strap * starters -> boot-up [#54095231] [bs-253] Refactor Zero->Boot
24 lines
271 B
Groovy
24 lines
271 B
Groovy
package org.test
|
|
|
|
@Component
|
|
class Example implements CommandLineRunner {
|
|
|
|
@Autowired
|
|
private MyService myService
|
|
|
|
void run(String... args) {
|
|
print "Hello " + this.myService.sayWorld()
|
|
}
|
|
}
|
|
|
|
|
|
@Service
|
|
class MyService {
|
|
|
|
String sayWorld() {
|
|
return "World!"
|
|
}
|
|
}
|
|
|
|
|