Commit 055d37a7 by Patryk Czarnik

PC30 - hello world

parent 1d2c21ea
package sklep.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
public class RootController {
@RequestMapping("/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