Skip to content

Instantly share code, notes, and snippets.

@pablohdzvizcarra
Created August 16, 2021 23:44
Show Gist options
  • Save pablohdzvizcarra/647e650f71dcf7dc154c04f0af26fb09 to your computer and use it in GitHub Desktop.
Save pablohdzvizcarra/647e650f71dcf7dc154c04f0af26fb09 to your computer and use it in GitHub Desktop.
package jvm.pablohdz.controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/foo")
public class FooController {
@GetMapping
public List<Foo> hello() {
return "Hello from Spring Boot!";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment