application.yml 2.09 KB
spring:
  jwt:
    secretKey: vmfhwprxm

  jpa:
    show-sql: true
    generate-ddl: true
    #database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
    #database-platform: org.hibernate.dialect.MariaDB53Dialect
    database-platform: org.hibernate.dialect.SQLServer2012Dialect
    hibernate:
      format_sql: true
      ddl-auto: update

  datasource:
    #driver-class-name: com.mysql.cj.jdbc.Driver
    #url: jdbc:mysql://localhost:3306/project_db?serverTimezone=Asia/Seoul&charaterEncoding=UTF-8
    #driver-class-name: org.mariadb.jdbc.Driver
    #url: jdbc:mariadb://localhost:3306/testsecurity?serverTimezone=Asia/Seoul&charaterEncoding=UTF-8
    driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
    url: jdbc:sqlserver://daeuserver2.iptime.org:1433;DatabaseName=UNICONS
    username: UNICONS
    password: UNICONS

  redis:
    host: localhost
    port: 6379

  social:
    kakao:
      client_id:
      redirect: http://localhost:8080/social/login/kakao
      url:
        login: https://kauth.kakao.com/oauth/authorize
        token: https://kauth.kakao.com/oauth/token
        profile: https://kapi.kakao.com/v2/user/me

    google:
      client_id:
      client_secret:
      redirect: http://localhost:8080/social/login/google
      url:
        login: https://accounts.google.com/o/oauth2/v2/auth
        token: https://oauth2.googleapis.com/token
        profile: https://www.googleapis.com/oauth2/v3/userinfo

    naver:
      client_id:
      client_secret:
      redirect: http://localhost:8080/social/login/naver
      url:
        login: https://nid.naver.com/oauth2.0/authorize
        token: https://nid.naver.com/oauth2.0/token
        profile: https://openapi.naver.com/v1/nid/me

  #jsp의 설정이 기존에 있기 때문에 thymeleaf/ 로 호출되면 타임리프가 처리되도록 반영하기 위한 코드
  thymeleaf:
    prefix: classpath:/templates/
    suffix: .html
    #thymeleaf 수정 사항 발생 시, 서버 재기동 없이 캐시를 무시하기 위한 코드
    cache: false
    check-template-location: true

mybatis:
  mapper-locations: classpath:mybatis/mapper/**.xml