728x90 백엔드2 백엔드 개발자 면접 준비 하루에 하나 이상의 지식들을 공부하고 기록할 예정!! CS 면접 준비 https://github.com/Soobinhand/CS_STUDY JAVA 면접 준비 https://github.com/Soobinhand/JAVA_STUDY 이외에도 여러 코드 및 글들을 공유합니다. https://github.com/Soobinhand 2022. 3. 30. [SpringBoot] view 환경설정 Welcome Page 스프링 부트가 제공하는 welcome page 기능이 있습니다. static/index.html을 올려두면 해당 index.html이 welcome page로 저절로 등록됩니다. Thymeleaf 템플릿 엔진 를 써주면 해당 html 파일 내에서 thymeleaf를 사용할 수 있습니다. 위의 사진처럼 th:text 이 부분이 타임리프 적용된 부분입니다. ${data}는 컨트롤러와 연결되는 부분입니다. 해당 data가 컨트롤러에서 무엇으로 매핑되는지에 따라 화면에 출력되는 결과가 다릅니다. $ 이 표시 하나만으로 백엔드와 프론트엔드의 연결이 가능해지는 것입니다. 웹 동작 구조 웹 브라우저에서 요청을 하면 여러 단계를 거쳐 결국 html이 반환됩니다. 컨트롤러에서 리턴 값으로 문자를 .. 2021. 11. 2. 이전 1 다음 728x90