application.properties

김용희·2022년 2월 9일
0
# API ???, SQL ?? ??? ????.
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true
loggin.level.org.hibernate.type.descriptor.sql.BasicBinder=trace

# DDL ??? ??????? ?? ??? ?????.
# ex) ??? ??, ?? ?
spring.jpa.generate-ddl=true
spring.jpa.hibernate.ddl-auto=update

# MySQL ? ??? ?.
spring.jpa.database=mysql

# MySQL ??
spring.datasource.url=jdbc:mysql://localhost:3306/ondo?useSSL=false&characterEncoding=UTF-8&serverTimezone=UTC
spring.datasource.username=root
spring.datasource.password=root
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

# MySQL ?? ??
spring.jpa.database-platform=org.hibernate.dialect.MySQL5InnoDBDialect

cos.key=cos1234


resources 안에 aws.yml
cloud:
  aws:
    credentials:
      accessKey: AKIAU4BMG5QQK6DKCPOB
      secretKey: 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
    s3:
      bucket: ondobucket
    region:
      static: ap-northeast-2
    stack:
      auto: false

#ec2 용 application.properties

# server.address=i6a601.p.ssafy.io
# server.port=8080
# API ???, SQL ?? ??? ????.
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true
loggin.level.org.hibernate.type.descriptor.sql.BasicBinder=trace

# DDL ??? ??????? ?? ??? ?????.
# ex) ??? ??, ?? ?
spring.jpa.generate-ddl=true
spring.jpa.hibernate.ddl-auto=update

# MySQL ? ??? ?.
spring.jpa.database=mysql

# MySQL ??
spring.datasource.url=jdbc:mysql://i6a601.p.ssafy.io:3306/ondo?allowPublicKeyRetrieval=true&useSSL=false&characterEncoding=UTF-8&serverTimezone=UTC
spring.datasource.username=ondo

spring.datasource.password=ondo
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

# MySQL ?? ??
spring.jpa.database-platform=org.hibernate.dialect.MySQL5InnoDBDialect

cos.key=cos1234

# file-size
spring.servlet.multipart.max-file-size=1000MB

next 배포전에 env에파일을 환경값으로 설정 해준다

profile
He threw his knapsack over the brick wall

0개의 댓글