标签:解决方法 ota exp gradle oob beans 使用 ant const
报错信息:Expected ‘$(student - name)‘ to be an inline constant of type java.lang.String in @org.springframework.beans.factory.annotation.Value
这样使用会报错,原因是 Gradle和Springboot占位符冲突;解决方法就是将$符号转义以下即可
@Value("\${student-name}")
private String fooBar;
标签:解决方法 ota exp gradle oob beans 使用 ant const
原文地址:https://www.cnblogs.com/XingXiaoMeng/p/14729107.html