Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 할일관리
- jpa 연관관계
- restful api 명세서
- Gradle - Kotlin
- intellij 속도 향상
- 어노테이션
- springboot mysql
- jpa
- 파이썬
- initializr
- restful api 작성 방법
- 알고리즘
- 터미널 실행
- 아규먼트 리졸버
- 연관관계
- restful login 메소드
- SpringBoot개인프로젝트
- 테이블항목
- Intellij terminal jar
- auto ddl
- 테이블구성
- restful 카멜케이스
- sendError()
- create 모드
- logout http 메소드
- 쿼리에러
- 데이터베이스
- ERD 수정
- springboot
- Gradle - Groovy
Archives
- Today
- Total
리나 Dev토리
갑자기 MySQL 연결이 안될때 Failed to load driver class com.mysql.cj.jdbc.Driver in either of HikariConfig class loader or Thread context classloader 본문
SpringBoot 개인플젝(TodayMaker)
갑자기 MySQL 연결이 안될때 Failed to load driver class com.mysql.cj.jdbc.Driver in either of HikariConfig class loader or Thread context classloader
리나lina 2023. 4. 7. 15:55어제 까지 잘 실행되던 어플리케이션이
오늘 실행하니 dataSource 빈을 만드는데 에러가 났다.
윈도우 - 관리도구 - 서비스 가서 봐도 잘 실행되고 있고
혹시 해서 다시 시작하고
HeidiSQL에서도 잘 접속되고
CMD에서도 잘 접속되고
gradle이나 properties 파일도 건들여진게 없었다.

그래서 DB 커넥션 pool 상태를 조회해보니
show status like '%connect%';

동시 접속자는 현재 1 밖에 없었고,
max connection 설정은 초기값 대로 151 이었다.

Failed to load driver class com.mysql.cj.jdbc.Driver in either of HikariConfig class loader or Thread context classloader
방법을 찾다가 gradle을 clean 하라는 말을 보았고
Intellij IDE에서 '회전🔁' 아이콘을 클릭하여 gradle 프로젝트를 다시 로드하였더니

bulid가 정상적으로 완료되었고,
애플리케이션이 정상 실행되었다~~~!!!

프로젝트에서 gradle을 reload 함으로써
gradle의 변경사항을 감지하고 프로젝트 구조를 새로고침 해준다고 한다.
compileQuerydsl과 compileJava가 최신꺼로 업데이트 되었다.
어제까지 잘 되던게 안된다면 build 다시해보기~!
'SpringBoot 개인플젝(TodayMaker)' 카테고리의 다른 글
@SessionAttribute(name="userId", required = false)를 간결하게 (0) | 2023.04.19 |
---|---|
로직 구현 후 로그인 구현시 트러블슈팅 (2) | 2023.04.17 |
[트슈] IllegalStateException: Cannot call sendError() after the response has been committed (0) | 2023.04.06 |
@ManyToOne 같은 연관관계 어노테이션 안쓰고 저장해도 되는지? (0) | 2023.04.06 |
Restful API 설계하기 (1) | 2022.12.21 |
Comments