Commit a7d4cb0f by Patryk Czarnik

Hello world i konfiguracja połączenia z bazą

parent 179c8854
package sklep.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
public class RootController {
@GetMapping({"/", "/hello"})
@ResponseBody
public String hello() {
return "Hello world";
}
}
spring.application.name=PC33-SklepSpring spring.application.name=PC33-SklepSpring
spring.datasource.url=jdbc:postgresql://localhost/sklep
spring.datasource.username=alx
spring.datasource.password=abc123
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