Last active
July 24, 2016 11:53
-
-
Save carlosjgp/7fa684df0b82363cd0cf76e077d09f5a to your computer and use it in GitHub Desktop.
[Spring Boot] Nuevo endpoint REST
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
package com.example; | |
public class MyRestController { | |
public String hello(){ | |
return "Hello"; | |
} | |
} |
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
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