0
在spring mvc應用程序中,每種bean類型的正確範圍如下:Spring和bean的範圍,服務應該是單例,dao的應該是每個請求?
1. service's which have properties that are Dao's be singleton?
2. Dao's that reference a data source should be per request scope.
這是否合理?
而數據源也是單身人士b/c是支持線程池的權利? – codecompleting 2011-12-15 19:24:15