开发者

Spring mvc 3 Web app design

开发者 https://www.devze.com 2023-04-11 21:09 出处:网络
In a Spring MVC app, I use a unique controller where users populate info of their session (I\'m using @SessionAttributes(\"Form\") ).

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 ?


  1. 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.

  2. save it in a database.

0

精彩评论

暂无评论...
验证码 换一张
取 消