Commit c98c2e85 by Patryk Czarnik

Ustawienia bazy danych i zapytanie /hello

parent 90adad8b
...@@ -8,4 +8,4 @@ spring.mvc.view.suffix=.jsp ...@@ -8,4 +8,4 @@ spring.mvc.view.suffix=.jsp
# server.port=9090 # server.port=9090
# server.servlet.context-path=/sklep # server.servlet.context-path=/sklep
alx.photo_dir=/home/patryk/sklep/foto alx.photo_dir=/home/patryk/sklep/foto
\ No newline at end of file
package sklep.rest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
public class HelloController {
@GetMapping("/hello")
@ResponseBody
public String sayHello() {
return "Hello REST";
}
}
spring.datasource.url=jdbc:postgresql://localhost:5432/sklep
spring.datasource.username=kurs
spring.datasource.password=abc123
alx.photo_dir=/home/patryk/sklep/foto
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