spring boot启动较慢
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 u...
·
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
更多推荐
已为社区贡献4条内容
所有评论(0)