找到jdk1.x.x_xx/jre/lib/security/Java.security文件,在文件中找到securerandom.source這個設置項,將其改成:java
securerandom.source=file:/dev/./urandomtomcat
找到該設置項以後發現securerandom.source=file:/dev/urandom 中間少了/./ 改成securerandom.source=file:/dev/./urandomdom
再從新啓動tomcat 正常!.net