Commit f898136a by Patryk Czarnik

Hello itp

parent 35fb610e
package alx;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
public class RootController {
@GetMapping("/")
@ResponseBody
public String root() {
return "<h1>Aplikacja Springowa</h1>";
}
@GetMapping("/hello")
@ResponseBody
public String hello() {
return "HEllo Spring";
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment