Created
March 27, 2019 01:50
-
-
Save klaud81/71f17b7138928f5064e31c635fa6183d to your computer and use it in GitHub Desktop.
spring-writer-2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component | |
public class WelcomeService { | |
//Bla Bla Bla | |
} | |
@RestController | |
public class WelcomeController { | |
@Autowired | |
private WelcomeService service; | |
@RequestMapping("/welcome") | |
public String welcome() { | |
return service.retrieveWelcomeMessage(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment