springboot的配置文件不支持SPEL表达式

  • springboot的配置文件不支持SPEL表达式

  • springboot的配置文件支持占位符和随机数

    #占位符
    user.username=黄汉山
    user.hobbies=${user.username}打篮球
    #随机数
    my.secret=${random.value}
    my.number=${random.int}
    my.bignumber=${random.long}
    my.uuid=${random.uuid}
    my.number-less-than-ten=${random.int(10)}
    my.number-in-range=${random.int[1024,65536]}
    
posted @ 2021-04-17 11:17  阿灿呀  阅读(475)  评论(0)    收藏  举报