/photogram-study

스프링부트 JPA 스터디

Primary LanguageJava

[Chapter 6] 구독정보 뷰 렌더링 완료 2022-11-22

[Chapter 5] 프로필 페이지 완료 2022-11-22

포토그램 - 인스타그램 클론 코딩

STS 툴 버그가 발견되었습니다.

STS 툴에 세팅하기 - 플러그인 설정

의존성

  • Sring Boot DevTools
  • Lombok
  • Spring Data JPA
  • MariaDB Driver
  • Spring Security
  • Spring Web
  • oauth2-client

xml

<groupId>org.springframework.security</groupId>
<artifactId>spring-security-taglibs</artifactId>

<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-jasper</artifactId>
<version>9.0.43</version>

<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>

데이터베이스

sql create user 'cos'@'%' identified by 'cos1234'; GRANT ALL PRIVILEGES ON . TO 'cos'@'%'; create database photogram;

yml 설정

yml server: port: 8080 servlet: context-path: / encoding: charset: utf-8 enabled: true

spring: mvc: view: prefix: /WEB-INF/views/ suffix: .jsp

datasource: driver-class-name: org.mariadb.jdbc.Driver url: jdbc:mariadb://localhost:3306/cos?serverTimezone=Asia/Seoul username: cos password: cos1234

jpa: open-in-view: true hibernate: ddl-auto: update naming: physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl show-sql: true

servlet: multipart: enabled: true max-file-size: 2MB

security: user: name: test password: 1234

file: path: C:/src/springbootwork-sts/upload/

태그라이브러리

jsp <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>