참고문서: https://docs.aws.amazon.com/ko_kr/elasticbeanstalk/latest/dg/java-rds.html
오잉 연결이 안됨
다른 블로그 보니깐 application-eb.yml
로 깃허브 내 디비 정보 받아와서 만들 수 있다고 해서 yml 먼저 만들기
application-eb.yml
만들기spring:
datasource:
url: jdbc:mysql://${rds.hostname}:${rds.port}/${rds.dbname}
username: ${rds.username}
password: ${rds.password}
driver-class-name: com.mysql.cj.jdbc.Driver
jpa:
hibernate:
ddl-auto: create
properties:
hibernate:
format_sql: true
logging.level:
org.hibernate.SQL: warn
server:
port: 5000
Pprofile=eb
로 설정하기