Groovy 内置了对字符串插值的支持。 您只需要使用 GString : def name = "name" def pass = "pass" String formatted = """ <server> <id>artifactory</id> ...
確定! 回上一頁