카테고리 없음

instagram 프로젝트(1)

wannabe 2021. 8. 23. 14:44

프로젝트 설정은 다음과 같이 한다.

 

application.yml

server:
  port: 8080
  servlet:
    context-path: /
    encoding:
      charset: UTF-8

spring:
  mvc:
    view:
      prefix: /WEB-INF/views/
      suffix: .jsp
  output:
    ansi:
      enabled: always
 
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    username: insta
    password: insta1234
    url: jdbc:mysql://localhost:3306/insta?serverTimezone=Asia/Seoul
    
  jpa:
    open-in-view: false
    hibernate:
      ddl-auto: create  #create update none
      naming:
        physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
      use-new-id-generator-mappings: false
    show-sql: true
    properties:
      hibernate.enable_lazy_load_no_trans: true
      hibernate.format_sql: true
  
  security:
    user:
      name: test
      password: 1234