项目启动时,验证码加载特别慢
发现日志:
Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [90,714] milliseco
修改java jdk文件配置(jdk版本:1.8)
$JAVA_PATH/jre/lib/security/java.security
修改 117行
securerandom.source=file:/dev/random
为
securerandom.source=file:/dev/urandom