0908 개발일지

Yesol Lee·2022년 9월 8일
0

개발일지 - 2022

목록 보기
132/187

오늘 한 일

  • 사이드 프로젝트 github 브랜치 충돌 문제 해결 : 0908 github 브랜치 충돌 해결
  • 인프런 강의 수강 : 모든 개발자를 위한 HTTP 웹 기본 지식

http 메소드 강의

API URI 설계

  • 중요한 것은 '리소스 식별'
  • '회원'이라는 개념 자체가 리소스
  • 리소스와 행위를 분리 : URI는 리소스를 식별, HTTP 메소드가 행위를 식별

메서드 종류

  • GET : 리소스 조회 (캐싱)
  • POST : 요청 데이터 처리. 주로 등록에 사용
  • PUT : 리소스 대체
  • PATCH : 리소스 부분 변경
  • DELETE : 리소스 삭제

사이드 프로젝트 : thymeleaf template layout 적용

build.gradle에 의존성 추가

	implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
	implementation group: 'nz.net.ultraq.thymeleaf', name: 'thymeleaf-layout-dialect', version: '3.1.0'

https://mvnrepository.com/artifact/nz.net.ultraq.thymeleaf/thymeleaf-layout-dialect

html 코드 가져오기

template 경로 에러 해결

template might not exist or might not be accessible by any of the configured Template Resolvers

  • 실제로 template 경로 잘못 작성한 케이스였다. (layout 폴더인데 layouts라고 적음. 여러 코드를 가져오면서 짬뽕된 듯)
  • 찾아보니 template 관련 흔한 에러 문구인듯. 더 구체적인 에러 설명이 따로 있었을까?

fontAwesome 적용 안되는 문제

  • 예전에 발급해둔 kit 사용해서 아이콘 넣으니 아예 들어가지 않음. 아마 아이콘과 kit의 버전이 달라서 생기는 에러로 추정됨.
  • 버전 앞자리 맞춰서 넣으면 네모박스만 나옴
  • 결국 새로운 Kit 발급해서 넣으니 잘 들어감

thymeleaf layout dialect <head> 에러

You don't need to put the layout:fragment/data-layout-fragment attribute into the <head> section - the decoration process will automatically copy the <head> section of your content templates into your layout page

profile
문서화를 좋아하는 개발자

0개의 댓글