Replies: 2 comments
-
控制器只是入口, 逻辑可以再封装一层, 想单例想new 都行 |
Beta Was this translation helpful? Give feedback.
0 replies
-
控制器最好不要设置成单例模式,可能会导致不同请求状态污染 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
控制器单例可以提高访问性能,不过只提供了单例的解决方案,没有给出明确的非单例解决方案,只能路由的时候匿名函数new一个
12 votes ·
Beta Was this translation helpful? Give feedback.
All reactions