|
I have a few questions
Because time is too late, I ca n’t understand many problems by myself
So here are a few words, hoping to get a satisfactory answer
Now there is a project
The structure is as follows
| -------- dao
| -------- entity
| -------- service
| -------- action- | --- action
| --- actionform
(Each represents a bag)
Assuming all beans have been injected into the spring configuration file, all relationships have been written
The role of the service layer is
Use the packaged dao for the corresponding operation (using set injection, the reference relationship in the spring configuration file is also written)
Now, use getbean in the action to get a class instance in the service layer
The general relationship is like this
action (getbean)->> a class of service is instantiated ---> in this instantiated class, inject a corresponding dao ---> in the service, use this dao to perform the corresponding operation
I do n’t know if everyone understands
1. I would like to ask, can the benefits of spring be reflected in such an application?
If so, what are the benefits? (If you know the benefits in other applications, you can also talk about it)
2. Also, how to explain portability in spring? Which part is portable? Very confused
3. Is it lightweight because of the small amount of code in the component?
Now eagerly want to know people who have done projects with spring
Experience of spring after the project
Based on the actual situation, I hope everyone will tell me the advantages of spring |
|