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"}.

3 comments
Comment actions Permalink

hi

          I forgot to tell that problem when we are getting this while generating the Controller using Spring Annotations in java.

0
Comment actions Permalink

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

0
Comment actions Permalink

Hello, Evgeny

Thank you for your assistance!

regards,

surya

0

Please sign in to leave a comment.