Spring Boot 配置隨機數那些小技巧

Spring Boot支持在系統加載的時候配置隨機數。 添加config/random.properties文件,添加以下內容: #隨機32位MD5字符串 user.random.secret=${random.value} #隨機int數字 user.random.intNumber=${random.int} #隨機long數字 user.random.longNumber=${random.
相關文章
相關標籤/搜索