properties 파일 수정
DB 주소를 가입한 AWS엔드포인트로 해주자.
# DB
spring.datasource.url=jdbc:mysql://AWS엔드포인트/myblog?useSSL=false&characterEncoding=UTF-8&serverTimezone=UTC
spring.datasource.username=root
spring.datasource.password=비번
# Hibernate properties
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5InnoDBDialect
# Hibernate ddl auto (create, create-drop, validate, update)
spring.jpa.hibernate.ddl-auto = update
# Security log
logging.level.org.springframework.security = debug
## App Properties
app.jwt-secret = JWTSecretKey
app.jwt-expiration-milliseconds = 604800000
## swagger error patch
spring.mvc.pathmatch.matching-strategy = ANT_PATH_MATCHER
# tomcat server port
server.port = 5000
Maven package or install 실행