Skip to content

Instantly share code, notes, and snippets.

@anhtv08
Created September 17, 2018 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anhtv08/b97ed98ab7e2551ca5e1617766f91972 to your computer and use it in GitHub Desktop.
Save anhtv08/b97ed98ab7e2551ca5e1617766f91972 to your computer and use it in GitHub Desktop.
Rest Controller
package com.anhtv08.springbootdemo.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class HelloController {
@RequestMapping("/hello")
public String hello(){
return "Hello world spring boot !";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment