SQLException
java.sql.SQLException: Access denied for user 'root'@'218.155.35.113' (using password: YES)
gradleλ‘ λΉλν ν μ€νΈ νμΌμ λ리λλ° μμ κ°μ μλ¬κ° λ°μνμλ€.
νμΈν΄λ³΄λ application.yml
νμΌμ΄
server:
servlet:
encoding:
force-response: true
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: ${DB_HOST}
username: root
password: ${DB_PASSWORD}
jpa:
show-sql: true
database-platform: org.hibernate.dialect.MySQL8Dialect
database: mysql
hibernate.ddl-auto: update
μμ κ°μ΄, datasourceκ° νκ²½λ³μλ‘ μ λ ₯λ°κ²λ ꡬννμκ³ , ν μ€νΈ μμ€νμΌμμλ νκ²½λ³μκ° μ λ¬λμ§ μμμ λ°μν μ€λ₯μλ€.
λ°λΌμ, ν μ€νΈ νμΌμ μ€ννλ μμ€ νμΌμμ νκ²½λ³μλ₯Ό μΆκ°ν΄μ€¬λλ, μ μμ μΌλ‘ μ€νλμλ€. (νΉμ, application νμΌμλ€ μ§μ μ λ ₯ν΄λ λλ€.)