问题
使用TestNG+SpringBoot+AbstractTestNGSpringContextTests进行测试,出现该错误。
报错信息:
org.postgresql.util.PSQLException: 尝试连线已失败。
Caused by: java.io.IOException: Illegal UTF-8 sequence: byte 2 of 2 byte sequence is not 10xxxxxx: -62
at org.postgresql.core.UTF8Encoding.checkByte(UTF8Encoding.java:31) ~[postgresql-9.4.1208.jar:9.4.1208]
at org.postgresql.core.UTF8Encoding.decode(UTF8Encoding.java:109) ~[postgresql-9.4.1208.jar:9.4.1208]
at org.postgresql.core.PGStream.ReceiveString(PGStream.java:331) ~[postgresql-9.4.1208.jar:9.4.1208]
at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:429) ~[postgresql-9.4.1208.jar:9.4.1208]
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:208) ~[postgresql-9.4.1208.jar:9.4.1208]
... 98 common frames omitted
解决方案
参考网站:

最低0.47元/天 解锁文章
960

被折叠的 条评论
为什么被折叠?



