我使用的是 spring boot 1.5.4 并且 @crossorigin 不能使用 JDK 1.7 进行编译 它使用 JDK 1.8 进行编译,但我只需要 1.7
错误:(19, 1) java: 注释 org.springframework.web.bind.annotation.CrossOrigin 缺少属性值
我该怎么办? 我正在使用 InteliJIdea
最佳答案
尝试将您的 JDK 7
更新到最新版本。
我在这个link的评论部分找到了这个解决方案
It says that this was a known and resolved issue in
java 1.8
and has been back-ported tojava 7
. So, Update to the latestjava 7 version (7u80)
orJava 8
version.
关于java - @CrossOrigin 注释无法编译,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45656877/