Using spring MVC to transform query parameters into path parameters -
as part of sns optimization have change our query parameters path parameters, so:
/somesite?hl=ja
has become: /somesite/hl/ja
how without adding separate path every single @requestmapping method? doesn't can interceptor. using spring 4
you can try adding filter
instead of interceptor
rewrite request uri. if free use third-party library, can use http://tuckey.org/urlrewrite/.
or can write own impl in filter method.
follow question implementation. servlet filter rewrite url
Comments
Post a Comment