groovy grails无法将动态字符串传递给注释

时间:2018-09-28 06:06:50

标签: java grails groovy

我无法在groovy / grails中将动态字符串设置为Annotation值

import io.swagger.annotations.ApiModelProperty

    class ProjectSearchRequest {

    String firstName ="prasanjeet"
    String lastName ="debnath"

    String dynamicString = firstName + " - " + lastName

    @ApiModelProperty(
            value = dynamicString
    )
    List<String> reportTypes
}

0 个答案:

没有答案