I am trying to set value for @RequestMapping
annotation as follows:
@RequestMapping(value = VALUE)
@RequestMapping(value = VALUE)
public class SomeClass {
public final static String value = randomValue();
public static randomValue() {
return "some random stuff here";
}
}
Now, I've noticed that is not legit since I got this error:
Attribute value must be constant
Can someone explain me why this is happening, please?