[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