简体   繁体   中英

@CrossOrigin annotation doesn't compile

I am using spring boot 1.5.4 and @crossorigin doesn't compile with JDK 1.7 it compiles with JDK 1.8 but I need just 1.7

Error:(19, 1) java: annotation org.springframework.web.bind.annotation.CrossOrigin is missing value for the attribute

What should I do? I am using InteliJIdea

Try updating your JDK 7 to its latest version.

I found this solution in the comments section in this link

It says that this was a known and resolved issue in java 1.8 and has been back-ported to java 7 . So, Update to the latest java 7 version (7u80) or Java 8 version.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM