일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- 백준
- Spring
- 탐욕법
- 2018 KAKAO BLIND RECRUITMENT
- codility
- brute force
- 2981
- 파이썬
- Python
- BFS
- 문자열
- counting elements
- Greedy
- javascript
- applicationeventpublisher
- algorithm
- 프로그래머스
- HTTP
- 소수
- java
- spring security
- Dijkstra
- 라이브템플릿
- beandefinitionstoreexception
- 최단경로
- springboot
- 알고리즘
- API
- 코딩테스트
- error
Archives
- Today
- Total
목록스프링시큐리티 #스프링부트 #Java #thymeleaf (1)
Altiora Petamus

Thymeleaf 동작 확인 xshop 안에 controller 패키지를 만든 후 HelloController 클래스를 생성해줍니다. @Controller public class HelloController { @GetMapping("hello") // "/hello" 경로를 통해 요청이 올 경우 메소드 실행 public String hello(Model model) { model.addAttribute("data", "hello!"); return "hello"; // template에서 hello.html 을 찾아서 화면에 출력 } } resources/template 안에 hello.html 을 작성해줍니다. 여기는 대체되어 보이지 않습니다. 스프링부트에서 thymeleaf viewName 매핑은 ..
MyProject
2021. 2. 11. 22:00