matteobaccan/owner

The annotation @Config.Key is disallowed for this location

Closed this issue · 0 comments

Why I am getting this error?

I have compiled the code with java 8, Java 15. But the error is still available.

I have added some key-values in properties file and save and compiled it, it worked at first time but when i add new properties to the same file and try to use @key for the newly added property, eclipse is showing compilation error.

@key("username")
String username;

@key("password")
String password; //newly added property showing error

Eclipse Compilation error:
The annotation @Config.Key is disallowed for this location