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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -