Notice
Recent Posts
Recent Comments
Tags
- ASP.Net Core 404
- javascript redirection
- ViewData
- asp.net Select
- Mac Oracle
- swagger 500 error
- 바코드 생성하기
- asp.net dropdownlist
- asp.net core Select
- 원격ftp
- 하드 마이그레이션
- TempData
- jquery 바코드생성
- JavaScript
- asp ftp
- javascript 바코드 생성
- SSD 복사
- php 캐쉬제거
- 하드 윈도우 복사
- XSS방어
- simpe ftp
- 맥 오라클설치
- asp.net core swagger
- ViewBag
- XSS PHP
- django 엑셀불러오기
- 강제이동
- 404에러페이지
- 타임피커
- 말줄임표시
웹개발자의 기지개
[Spring Boot] Mysql8 에러 - WARN: Establishing SSL connection without server's identity verification is not recommended. 본문
Java/Spring Boot
[Spring Boot] Mysql8 에러 - WARN: Establishing SSL connection without server's identity verification is not recommended.
웹개발자 워니 2023. 7. 31. 13:57WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
에러 메세지 처럼 Mysql 5점대 이상의 DB에서 SSL 관련 부분을 분명하게 셋팅하라는 내용이다.
[ resources/application.properties ]
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
server.port=8030
# JSP
spring.mvc.view.prefix=/WEB-INF/views/
spring.mvc.view.suffix=.jsp
#spring.datasource.driver-class-name=org.mariadb.jdbc.Driver
#spring.datasource.url=jdbc:mariadb://localhost:3306/spring?characterEncoding=UTF-8
#spring.datasource.username=root
#spring.datasource.password=비번
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/spring?characterEncoding=UTF-8&verifyServerCertificate=false&useSSL=false
spring.datasource.username=root
spring.datasource.password=비밀번호
# mybatis
mybatis.mapper-locations=classpath:mybatis/mapper/**/**.xml
|
cs |
spring.datasource.url=jdbc:mysql://localhost:3306/spring?characterEncoding=UTF-8&verifyServerCertificate=false&useSSL=false
'Java > Spring Boot' 카테고리의 다른 글
Comments