When I compile any class that contains the Spring @org.springframework.web.bind.annotation.CrossOrigin
annotation using maven from the command line, it compiles just fine. But, when I try to compile the same code using IntelliJ Idea 15, I get this weird error:
[ERROR] /Users/gregederer/devewx2/geoengine/src/main/java/geoengine/controller/rest/TimeSeriesController.java:[34,1] annotation org.springframework.web.bind.annotation.CrossOrigin is missing value for the attribute <clinit>
This could be related to https://community.oracle.com/message/4827054. But, that issue was never really resolved.
Any suggestions?
Try using JDK 1.7.0_80. I encountered this issue using JDK 1.7.0_79. Worked on 1.7.0_80 though.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With