替换securerandom.source=file:/dev/random
为 securerandom.source=file:/dev/./urandom对所有使用JVM的应用生效。
linux或者部分unix系统提供随机数设备是/dev/random 和/dev/urandom ,两个有区别,urandom安全性没有random高,但random需要时间间隔生成随机数。jdk默认调用random
另一篇:https://blog.csdn.net/sinat_34104446/article/details/82463958