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?
You can use interceptor. Follow below url to get more idea about it.
https://www.mkyong.com/spring-mvc/spring-mvc-handler-interceptors-example/