반응형
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
- SQL
- DIP
- @Configuration
- kafka
- spring
- mybatis
- resultMap
- 스프링
- 스프링 빈
- 싱글톤
- assertThat
- Javascript
- Effective Java
- 스프링 프레임워크
- jdbc
- 스프링 컨테이너
- 스프링부트
- java
- DI
- 필드 주입
- 스프링 부트 기본
- 스프링 부트
- sqld
- thymeleaf
- 스프링 부트 입문
- springboot
- db
- assertThrows
- JPA
- 생성자 주입
Archives
- Today
- Total
선 조치 후 분석
[JDBC] the last packet sent successfully to the server was 0 milliseconds ago 본문
카테고리 없음
[JDBC] the last packet sent successfully to the server was 0 milliseconds ago
JB1104 2022. 11. 18. 13:51728x90
반응형
SMALL
ERROR : the last packet sent successfully to the server was 0 milliseconds ago
MySQL은 SSL 설정이 default가 true인데, SSL 연결을 한다는 설정을 false로 변경해줘야 한다.
Resolve : DB URL뒤에 'useSSL=false' 추가해주면 된다.
파라미터가 여러 개라면 '&' 연결해준다.
변경 전
ds.setUrl("jdbc:mysql://localhost/new_schema?characterEncoding=utf8");
변경 후
ds.setUrl("jdbc:mysql://localhost/new_schema?characterEncoding=utf8&useSSL=false");
728x90
반응형
LIST