开发者

Spring mvc 3 Web app design

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜