In a Spring MVC app, I use a unique controller where users populate info of their session (I'm using @SessionAttributes("Form") ).
1) It looks that it works fin开发者_StackOverflowe, but is it the right way to do things ?
2) I would like to share some data between users, how could I do that ?
why not, you said it works for you, and is simple and clean. Using one controller is fine until the number of methods aren't too many, after that simple split the class creating a new controller, trying to group Request Mappings logically.
save it in a database.
精彩评论