更新时间:2023-09-21 14:07:40
我找到了一种解决方法,尽管我不喜欢它,因为我不明白为什么在任何地方都没有提到它,以及为什么连接器的权限还不够吗?
谁能解释我?
I found a workaround, though I don't like it because I don't understand why it isn't mentioned anywhere, and why the permissions for the connector is not enough?
Can anyone explain me?
解决方法-将以下行添加到您的tomcat策略文件中:
The workaround - add these lines to your tomcat policy file:
grant {
permission java.net.SocketPermission "localhost:3306", "connect, resolve";
};