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
This commit is contained in:
21
spring-boot-cli/samples/reactor.groovy
Normal file
21
spring-boot-cli/samples/reactor.groovy
Normal file
@@ -0,0 +1,21 @@
|
||||
package org.test
|
||||
|
||||
@EnableReactor
|
||||
@Log
|
||||
class Runner implements CommandLineRunner {
|
||||
|
||||
@Autowired
|
||||
Reactor reactor
|
||||
|
||||
void run(String... args) {
|
||||
reactor.notify("hello", Event.wrap("Phil"))
|
||||
log.info "Notified Phil"
|
||||
}
|
||||
|
||||
@On(reactor="reactor", selector="hello")
|
||||
void receive(Event<String> event) {
|
||||
log.info "Hello ${event.data}"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user