Commit 63a1ad5c by Patryk Czarnik

Hello Spring

parent 12ea411e
package com.example.demo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
public class PierwszyKontroler {
@RequestMapping("/hello")
@ResponseBody
public String sayHello() {
return "Hej, tu Spring, który jest ekstra fajnym narzędziem.";
}
}
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