1.linux启动spring boot时发现启动较慢,日志如下:

2019-09-20 11:24:04.838 INFO  [localhost-startStop-1] [org.apache.juli.logging.DirectJDKLog.java:179] - Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [302,001] milliseconds.

2.解决方案:

修改$JAVA_PATH/jre/lib/security/java.security文件

securerandom.source=file:/dev/random

修改为

securerandom.source=file:/dev/./urandom

 

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐