Search code examples
javajspspring-mvcshiro

Can i do someting before view being generated using spring mvc jsp shiro


I want to check session and add it's information to model, but i don't want to add code in every controller, so is there something I can use to solve this problem?


Solution

  • You can use interceptor. Follow below url to get more idea about it.

    https://www.mkyong.com/spring-mvc/spring-mvc-handler-interceptors-example/