본문 바로가기

intellij +springboot/오류정리

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project adjuster: There are test failures.

 

djusterApplicationTests.contextLoads ? IllegalState Failed to load Applicatio.

2022-10-24 15:24:09.132  INFO 34736 --- [           main] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [name: default]
2022-10-24 15:24:09.858  INFO 34736 --- [           main] org.hibernate.Version                    : HHH000412: Hibernate ORM core version 5.6.11.Final
2022-10-24 15:24:11.600  INFO 34736 --- [           main] o.hibernate.annotations.common.Version   : HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
2022-10-24 15:24:25.268  INFO 34736 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...
2022-10-24 15:24:25.275  WARN 34736 --- [           main] o.m.jdbc.message.server.ErrorPacket      : Error: 1045-28000: Access denied for user 'root'@'localhost' (using password: YES)
2022-10-24 15:24:26.367 ERROR 34736 --- [           main] com.zaxxer.hikari.pool.HikariPool        : HikariPool-1 - Exception during pool initialization.

java.sql.SQLInvalidAuthorizationSpecException: (conn=14) Access denied for user 'root'@'localhost' (using password: YES)

 

 

 

 로컬에서 빌드 했을때는 문제 없었는데 서버에 올리려고 spring.datasource.jdbc-url 설정을 localhost 로 변경 후

jar 파일로 빌드했을때 봤던 에러다 디비 설정 외에는 건든게 없으니 디비 설정 문제인 것 같아서 이것저것 찾아보다

 

의외로 테스트 코드 어노테이션을 주석처리하니 해결됐다

 

검색어는 

djusterApplicationTests.contextLoads ? IllegalState Failed to load Applicatio.

 

 

참고 :  https://www.inflearn.com/questions/7097