1.执行springboot程序

java -jar demo.jar &

springboot在linux中启动缓慢

 

执行到上图位置停止很长时间五分钟以上甚至更久

解决方案:

修改jre安装目录下(例如):/usr/java/jdk1.8.0_71/jre/lib/security

将java.security 文件中

securerandom.source=file:/dev/random

替换为

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

相关文章:

  • 2021-12-08
  • 2022-01-15
  • 2022-12-23
  • 2021-09-27
  • 2022-12-23
  • 2022-12-23
  • 2022-02-19
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-27
  • 2022-01-04
  • 2021-05-06
  • 2021-12-03
  • 2021-11-18
相关资源
相似解决方案