Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package testApp.controller;
- import org.springframework.web.bind.annotation.GetMapping;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RestController;
- @RestController
- @RequestMapping("/")
- public class Controller {
- @GetMapping("/hello")
- public String hello(){
- return "Hello World";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement