都有哪些 bean scope?
2018-07-03 16:44 更新
- singleton: Return a single bean instance per Spring IoC container+
- prototype: Return a new bean instance each time when requested
- request: Return a single bean instance per HTTP request
- session: Return a single bean instance per HTTP session
- global-session: Return a single bean instance per global HTTP session
默认的是 singleton
以上内容是否对您有帮助:
更多建议: