The bean in the 1:spring container defaults to a single case pattern, and the change to a non-single mode requires adding @scope ("prototype") to the class
2: After adding @scope ("prototype"), the reference to the class can not be injected with @autowired
3:struts2 default is a non-single case mode.
4: In non-single case mode, adding synchronized to the method has no effect, synchronized only works on the same object.
So don't add synchronized restrictions to the anction in struts, because adding and not adding is the same effect.
5: In the case of single mode Class A, there is a b,c class called B in a, which is probably a single example. You can use Hashcode to see.
@Scope ("prototype")
@Service ("Gjsaleorderserviceimpl") Public
class Gjsaleorderserviceimpl implements Igjsaleorderservice {
Other classes refer to the above class
@Resource (name= "Gjsaleorderserviceimpl")
Private Gjsaleorderserviceimpl Saleorderservice; Don't use @autowired.