Problem with giving attribute values to Annotation tag
hi,
I have small problem with giving attribute values to a Annotation.For ex, @RequestMapping(value ={ "/userbean/form"}, method = RequestMethod.GET)
here value should take Strings[ ].It is not accepting to create string[ ] like this value ={ "/userbean/form","/userbean/view"}.
Please sign in to leave a comment.
hi
I forgot to tell that problem when we are getting this while generating the Controller using Spring Annotations in java.
Hello Surya,
I have created a bug for this MPS-5496.
There is some workaround. You can enter local variable:
String[] str = {<< ... >>};
And copy {<< ... >>} inside annotation.
Regards,
Evgeny
Hello, Evgeny
Thank you for your assistance!
regards,
surya