BAEL-20863 Move Spring Boot CTX Fluent module

This commit is contained in:
mikr
2020-01-28 12:52:49 +01:00
parent b168a23f54
commit 1c4bef08ab
17 changed files with 2 additions and 3 deletions

View File

@@ -0,0 +1,19 @@
package com.baeldung.ctx2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import com.baeldung.parent.IHomeService;
@RestController
public class Ctx2Controller {
@Autowired
IHomeService homeService;
@GetMapping(value = "/greeting", produces = "application/json")
public String getGreeting() {
return homeService.getGreeting();
}
}