开发者

Spring resource bundle custom annotation message

Is there a naming convention for writing the resource bundle key in spring custom annotations?

I have this message inside a custom annotation:

String message() default "{ro.scorpionsoftware.demo3.customAnnotations.checkCase.CheckCase.message}";

And in my properties file I have the ro.scorpionsoftware.demo3.customAnnotations.checkCase.CheckCase.message key

I know that spring can access the file cause I've tested it on a jsp. The problem is that when the annotation fails the error message is not taken from the bundle. All that is shown i开发者_Go百科s the String {ro.scorpionsoftware.demo3.customAnnotations.checkCase.CheckCase.message}

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜