Skip to content

Instantly share code, notes, and snippets.

@carlosjgp
Last active July 24, 2016 11:53
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 carlosjgp/7fa684df0b82363cd0cf76e077d09f5a to your computer and use it in GitHub Desktop.
Save carlosjgp/7fa684df0b82363cd0cf76e077d09f5a to your computer and use it in GitHub Desktop.
[Spring Boot] Nuevo endpoint REST
package com.example;
public class MyRestController {
public String hello(){
return "Hello";
}
}
package com.example;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class MyRestController {
@RequestMapping
public String hello(){
return "Hello";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment