Struts2整合spring時應注意action的單實例問題
注意要設置,action bean 的 scope 的值。因為spring的bean默認為單實例singleton,故一定要設scope的值但不能為singleton。建議設置為prototype或request
注意要設置,action bean 的 scope 的值。因為spring的bean默認為單實例singleton,故一定要設scope的值但不能為singleton。建議設置為prototype或request