Commit 05271246 by Patryk Czarnik

Próba naprawienia apki

parent 5876ea70
...@@ -8,6 +8,7 @@ import jakarta.servlet.http.HttpServletRequest; ...@@ -8,6 +8,7 @@ import jakarta.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.ui.Model; import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
@Controller @Controller
...@@ -18,7 +19,7 @@ public class HelloController { ...@@ -18,7 +19,7 @@ public class HelloController {
return "index.html"; return "index.html";
} }
@RequestMapping("/hello") @GetMapping("/hello")
public String hello(Model model) { public String hello(Model model) {
model.addAttribute("txt", "Hello world!"); model.addAttribute("txt", "Hello world!");
model.addAttribute("time", LocalTime.now()); model.addAttribute("time", LocalTime.now());
......
spring.application.name=PC36-SpringTechnicznie
spring.datasource.url=jdbc:postgresql://localhost:5432/hr spring.datasource.url=jdbc:postgresql://localhost:5432/hr
spring.datasource.username=kurs spring.datasource.username=alx
spring.datasource.password=abc123 spring.datasource.password=abc123
spring.jpa.show-sql=true spring.jpa.show-sql=true
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