Spring boot startup time is very long

    During the implementation of a project, it was found that the online Spring boot took a long time to start. Found something like this in the log:
o.a.c.util.SessionIdGeneratorBase        : Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [170,241] milliseconds.

    Find relevant information and find that it is a problem with the random number generator. need to be added to the startup command
 
-Djava.security.egd=file:/dev/./urandom

   

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326645778&siteId=291194637