背景:
我在使用SpringBoot项目时,需要用到PowerMock,但当PowerMock与SpringBoot结合测试时,发生异常
代码:
异常:
org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Default algorithm definitions for TrustManager and/or KeyManager are invalid. Check java security properties file.
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Default algorithm definitions for TrustManager and/or KeyManager are invalid. Check java security properties file
org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Default algorithm definitions for TrustManager and/or KeyManager are invalid. Check java security properties file