update 2017-4-25 10:16
Update, this will only happen when redirecting
When using springmvc, inherit HandlerInterceptor and rewrite the postHandle method, add parameters to ModelAndView in the method, if the parameter is an object, it is normal, if it is a basic data type, the jump url will be modified, and the parameters will be used The get method is attached at the back.
The code is as follows
// 静态的导航栏node
model.put("nodes", nodeService.getNodeListStatic());
model.put("navbar", nodeService.getNodeHtmlStatic());
modelAndView.addAllObjects(model);
This is the url of the interface
http://localhost:8080/admin/index?navbar=test&isAdmin=true
Has anyone encountered this? How to solve this problem?
You can wrap a class object and put the required parameters into it