mybatis

D:\develop_tools\JDK\jdk1.8.0_271\bin\java.exe -ea -Didea.test.cyclic.buffer.size=1048576 "-javaagent:D:\Program Files\JetBrains\IntelliJ IDEA 2022.1.2\lib\idea_rt.jar=14002:D:\Program Files\JetBrains\IntelliJ IDEA 2022.1.2\bin" -Dfile.encoding=UTF-8 -classpath "D:\Program Files\JetBrains\IntelliJ IDEA 2022.1.2\lib\idea_rt.jar;D:\Program Files\JetBrains\IntelliJ IDEA 2022.1.2\plugins\junit\lib\junit5-rt.jar;D:\Program Files\JetBrains\IntelliJ IDEA 2022.1.2\plugins\junit\lib\junit-rt.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\charsets.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\deploy.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\ext\access-bridge-64.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\ext\cldrdata.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\ext\dnsns.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\ext\jaccess.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\ext\jfxrt.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\ext\localedata.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\ext\nashorn.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\ext\sunec.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\ext\sunjce_provider.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\ext\sunmscapi.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\ext\sunpkcs11.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\ext\zipfs.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\javaws.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\jce.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\jfr.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\jfxswt.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\jsse.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\management-agent.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\plugin.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\resources.jar;D:\develop_tools\JDK\jdk1.8.0_271\jre\lib\rt.jar;D:\workspace\code\Myabtis-Study\mybatis-01\target\test-classes;D:\workspace\code\Myabtis-Study\mybatis-01\target\classes;D:\common_tools\RepMaven\repository\mysql\mysql-connector-java\5.1.47\mysql-connector-java-5.1.47.jar;D:\common_tools\RepMaven\repository\org\mybatis\mybatis\3.5.2\mybatis-3.5.2.jar;D:\common_tools\RepMaven\repository\junit\junit\4.12\junit-4.12.jar;D:\common_tools\RepMaven\repository\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar" com.intellij.rt.junit.JUnitStarter -ideVersion5 -junit4 com.kuang.dao.UserDaoTest,getUserLike

org.apache.ibatis.exceptions.PersistenceException:

The last packet successfully received from the server was 371 milliseconds ago. The last packet sent successfully to the server was 368 milliseconds ago.

The error may exist in com/kuang/dao/UserMapper.xml

The error may involve com.kuang.dao.UserMapper.getUserLike

The error occurred while executing a query

The last packet successfully received from the server was 371 milliseconds ago. The last packet sent successfully to the server was 368 milliseconds ago.

at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)

at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:149)

at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140)

at org.apache.ibatis.binding.MapperMethod.executeForMany(MapperMethod.java:147)

at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:80)

at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:57)

at com.sun.proxy.$Proxy4.getUserLike(Unknown Source)

at com.kuang.dao.UserDaoTest.getUserLike(UserDaoTest.java:21)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)

at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)

at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)

at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)

at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)

at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)

at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)

at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)

at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)

at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)

at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)

at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)

at org.junit.runners.ParentRunner.run(ParentRunner.java:363)

at org.junit.runner.JUnitCore.run(JUnitCore.java:137)

at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)

at com.intellij.rt.junit.IdeaTestRunner$Repeater$1.execute(IdeaTestRunner.java:38)

at com.intellij.rt.execution.junit.TestsRepeater.repeat(TestsRepeater.java:11)

at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:35)

at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:235)

at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54)

Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet successfully received from the server was 371 milliseconds ago. The last packet sent successfully to the server was 368 milliseconds ago.

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)

at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:990)

at com.mysql.jdbc.ExportControlled.transformSocketToSSLSocket(ExportControlled.java:201)

at com.mysql.jdbc.MysqlIO.negotiateSSLConnection(MysqlIO.java:4914)

at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1663)

at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1224)

at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2199)

at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2230)

at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2025)

at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:778)

at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)

at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:386)

at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:330)

at java.sql.DriverManager.getConnection(DriverManager.java:664)

at java.sql.DriverManager.getConnection(DriverManager.java:208)

at org.apache.ibatis.datasource.unpooled.UnpooledDataSource.doGetConnection(UnpooledDataSource.java:221)

at org.apache.ibatis.datasource.unpooled.UnpooledDataSource.doGetConnection(UnpooledDataSource.java:216)

at org.apache.ibatis.datasource.unpooled.UnpooledDataSource.getConnection(UnpooledDataSource.java:95)

at org.apache.ibatis.datasource.pooled.PooledDataSource.popConnection(PooledDataSource.java:422)

at org.apache.ibatis.datasource.pooled.PooledDataSource.getConnection(PooledDataSource.java:89)

at org.apache.ibatis.transaction.jdbc.JdbcTransaction.openConnection(JdbcTransaction.java:138)

at org.apache.ibatis.transaction.jdbc.JdbcTransaction.getConnection(JdbcTransaction.java:60)

at org.apache.ibatis.executor.BaseExecutor.getConnection(BaseExecutor.java:336)

at org.apache.ibatis.executor.SimpleExecutor.prepareStatement(SimpleExecutor.java:85)

at org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:62)

at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:324)

at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156)

at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:109)

at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:83)

at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:147)

... 30 more

Caused by: javax.net.ssl.SSLException: Received fatal alert: internal_error

at sun.security.ssl.Alert.createSSLException(Alert.java:133)

at sun.security.ssl.Alert.createSSLException(Alert.java:117)

at sun.security.ssl.TransportContext.fatal(TransportContext.java:340)

at sun.security.ssl.Alert$AlertConsumer.consume(Alert.java:293)

at sun.security.ssl.TransportContext.dispatch(TransportContext.java:186)

at sun.security.ssl.SSLTransport.decode(SSLTransport.java:154)

at sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1279)

at sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1188)

at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:401)

at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:373)

at com.mysql.jdbc.ExportControlled.transformSocketToSSLSocket(ExportControlled.java:186)

... 62 more

Process finished with exit code -1

复制代码
<property name="url" value="jdbc:mysql://localhost:3306/mybatis?useSSL=true&amp;useUnicode=true&amp;characterEncoding=UTF-8"/>

useSSL=true 改成false

相关推荐
superman超哥1 小时前
04 深入 Oracle 并发世界:MVCC、锁、闩锁、事务隔离与并发性能优化的探索
数据库·oracle·性能优化·dba
用户8007165452001 小时前
HTAP数据库国产化改造技术可行性方案分析
数据库
engchina2 小时前
Neo4j 和 Python 初学者指南:如何使用可选关系匹配优化 Cypher 查询
数据库·python·neo4j
engchina2 小时前
使用 Cypher 查询语言在 Neo4j 中查找最短路径
数据库·neo4j
尘浮生2 小时前
Java项目实战II基于Spring Boot的光影视频平台(开发文档+数据库+源码)
java·开发语言·数据库·spring boot·后端·maven·intellij-idea
威哥爱编程2 小时前
SQL Server 数据太多如何优化
数据库·sql·sqlserver
小华同学ai2 小时前
AJ-Report:一款开源且非常强大的数据可视化大屏和报表工具
数据库·信息可视化·开源
Acrelhuang2 小时前
安科瑞5G基站直流叠光监控系统-安科瑞黄安南
大数据·数据库·数据仓库·物联网
十叶知秋3 小时前
【jmeter】jmeter的线程组功能的详细介绍
数据库·jmeter·性能测试
瓜牛_gn5 小时前
mysql特性
数据库·mysql