
* 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
259 B
Groovy
24 lines
259 B
Groovy
@Controller
|
|
class Example {
|
|
|
|
@Autowired
|
|
private MyService myService;
|
|
|
|
@RequestMapping("/")
|
|
@ResponseBody
|
|
public String helloWorld() {
|
|
return myService.sayWorld();
|
|
}
|
|
|
|
}
|
|
|
|
@Service
|
|
class MyService {
|
|
|
|
public String sayWorld() {
|
|
return "World!";
|
|
}
|
|
}
|
|
|
|
|