Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

@CrossOrigin annotation stops compilation in IntelliJ

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?

like image 806
gederer Avatar asked Nov 25 '15 19:11

gederer


1 Answers

Try using JDK 1.7.0_80. I encountered this issue using JDK 1.7.0_79. Worked on 1.7.0_80 though.

like image 92
Nikki Nicholas Romero Avatar answered Nov 09 '22 22:11

Nikki Nicholas Romero