스프링부트 (2) 썸네일형 리스트형 [SpringBoot] 간단한 게시판 만들기 #7 - Thymeleaf를 사용한 Fornt view 구현 Thymeleaf는 View Template이다. common.html 공통 부분을 따로 구현하여, 다른 HTML 파일에서 replace 하여 사용 Board 홈 (current) 게시판 (current) detail.html 글 상세 보기 부분을 구현 글 읽기 제목 작성자 작성일 [[${#temporals.format(boardDto.createdDate, 'yyyy-MM-dd HH:mm')}]] 본문 내용 수정 삭제 list.html 게시판 글 내역들을 보는 페이지 번호 글제목 작성자 작성일 수정일 [[${pageNum}]] 글쓰기 검색하기 update.html '수정하기' 버튼을 클릭하면 나오는 페이지 제목 : 작성자 : 수정 취소 write.html 글쓰기 페이지 게시글 등록 제목 작성자 내용 뒤.. [SpringBoot] 간단한 게시판 만들기 #6 - SpringSecurity 개념 및 구현 SpringSecurity를 이용하여 Google OAuth2 Login을 구현해보도록 한다. config 패키지에는 SessionUser와 SecurityConfig 클래스를 작성해주고, Index (/) 경로로 들어오는 Client만 허용하도록 BaseController에 해당 분기를 설정한다. 또한 domain은 Role(일반 사용자, 손님) Entity와 User Entity를 작성하고, Service로는 CustomOAuth2UserService를 작성하여 비즈니스 로직을 구현해준다. 의존성 implementation 'org.springframework.boot:spring-boot-starter-oauth2-client' implementation 'org.springframework.boo.. 이전 1 다음