开发者

Language parameter on the link

exists an easy method to have the language always at first in the link without change every controller in Spring MVC?

For example

and this language parameter pass automatically "language=en".

I'm using LocaleChangeInterceptor


LocaleChangeInterceptor looks for locale changes. It doesn't resolve a locale for the request. What you need is an implementation of LocaleResolver interface, specifically

resolveLocale(HttpServletRequest request) 

method, which would get that language parameter from the URL.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜