jdbc连接警告不安全
2023-09-14 09:07:47 时间
Mon Jun 11 10:46:26 CST 2018 WARN: 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.
插入成功!
使用jdbc连接数据库操作 会保持这样一条警告,虽然说不影响操作但是看起来不爽,只需要在url中加入useSSL=true 即可消除警告
url=jdbc:mysql://localhost:3306/mybase?useUnicode=true&characterEncoding=utf8&useSSL=true
相关文章
- 基础连接已经关闭: 未能为 SSL/TLS 安全通道建立信任关系。 根据验证过程,远程证书无效------解决方法
- C++安全删除指针SAFE_DELETE宏
- C安全编码--预处理
- 如何强化应用安全能力,全面拦截 Log4j 漏洞攻击
- nginx安全:用limit_req_zone/limit_req限制连接速率(流量控制/限流)
- Web Service 接口安全与解决方案
- 【云栖大会】云上安全,又稳又顺滑
- 安全测试全面总结-2-安全测试模拟环境 dvwa
- XSS绕过安全狗WAF
- Docker 安全:基于内核的弱隔离系统如何保障安全性?
- Atitit 登录模块常见的安全措施条例与攻击行为表 目录 1. 安全目标1 2. 常见安全措施2 2.1. 修改密码需要验证员密码2 2.2. 密码Salt加盐机制2 2.3. Sql防注
- 618技术特辑(四)疯狂剁手的同时,电商隐私安全你注意到了吗?
- 电商业务容器化遇瓶颈,公有云Docker镜像P2P加速很安全
- 主机安全——洋葱Webshell检测实践与思考
- 安全测试——SQL注入
- 安全测试===sqlmap
- 【区块链技术开发】使用Infura连接以太坊节点和OpenZeppelin库来构建安全、可靠的智能合约
- Windows逆向安全(一)之基础知识(十三)
- Windows远程桌面(RDP)连接安全层