框架 支持在模板表达式中直接引用 Properties 配置中的任意属性值

    语法格式: 使用井号字符#跟一对花括号{}形式,将变量名包裹起来,如 #{username}

    引用的配置属性可以是来自yaml文件中。

    1. mydata:
    2. username: foo
    3. password: bar

    或是properties文件中

    1. mydata.username=foo
    2. mydata.password=bar

    然后就可以在注解的属性中直接引用了

    1. @Get(url = "http://localhost:8080/?u=#{mydata.username}&pwd=#{mydata.password}")
    2. String getData();
    3. // 产生URL:
    4. // http://localhost:8080/?u=foo&pwd=bar