Now the SSH framework for self-
I understand over Hibernate is packaged JDBC, Struts is packed Servlet, what is it Spring yet ?
For small projects, using the SSH, the design will be much better , but the corresponding efficiency will be what kind of impact?
Because, I came to understand , Servlet is clearly the most efficient , but the corresponding Servlet bad management under the code more cases .
these understandings above me , there is no need to correct place
There is , Spring what is it in the end what is convenient ? Do not copy google or baidu answer to me, I sincerely seek to understand.
------ Solution ------------------------------------ --------
spring is used to manage the class. spring-mvc another said.
like I used spring, registered a configuration file automatically scan ,
I can then use the class you want , as long as the statement about, you can inject objects.
I can find the class spring comes annotations logo , you can also find custom annotation classes , or methods. Different annotated classes , I do different things . I also specified method which can intercept before the method is executed , after which I want to do some operations .
Of course, spring offers more than these, but these are my favorite .
In fact, more than your own , think spring can bring you benefits , you use , no benefit would not ,
------ Solution ------------------------------------ --------
spring is managed objects.
spring is to manage the affairs.
spring can still do a lot .
struts2 and hibernate is not a simple package , these two can do , there are many landlord slowly learn it , do not think one will be able to see through , have accumulated , accumulated enough only Yangaoshoudi
- ---- Solution -------------------------------------------- < br> the spring removed from your framework to ensure functional unchanged.
code that you add is to help you complete the Spring .
------ Solution ---------------------------------------- ----
now actually SSH is not very popular, recommended the reader focus on learning Spring3.x, look at is how to achieve their Spring MVC. If you do not understand SSH, then you understand how the MVC pattern to take a
------ Solution ------------------------- -------------------
with hierarchical framework , low coupling , etc. , post easy maintenance.
------ Solution ---------------------------------------- ----
Spring MVC? What can replace it ?
can replace the function of Struts and Hibernate , Struts is to control the flow of control , Hibernate persistent data , now you can do a Spring
------ Solution --------- -----------------------------------
SSH:
spring
struts
hibernate
is called SSH, what Luanche ah, this is the legendary three frames, but the realization of specific functions to be slowly digging .
------ Solution ---------------------------------------- ----
My understanding is the first instance of the spring , he can help you put the class you want to instantiate an instance of the factory are good , and so every time you invoke a method on a class if not new to take over the direct use , followed by the administration of things , mainly conducted on some of the things in the management of the service method of database operations , if the method is wrong and you are part of a database to perform , abnormal timely rollback.
------ Solution ---------------------------------------- ----
fact, I think if you really want to understand the landlord SSH framework can go to Baidu to find some books to look at, because here 's the answer may just play a guiding role in it, the power of SSH not a few words can be summed up in . Recommend "Spring_in_Action Chinese edition ( second edition ) " This book landlord can go to download electronic version , patiently read directory , look at the front of the twelve chapters inversion of control and aspect-oriented , I believe there is a harvest.
------ Solution ---------------------------------------- ----
like you this case, it is mainly used in the spring IOC and AOP it.
------ For reference only -------------------------------------- -
used to know. I think we can learn first , gave himself to the school after positioning . Many spring function , everything.
This concept first thing I think we can manage without him . Learning framework , and useless compare with the know .
------ For reference only -------------------------------------- -
After
framework with the most obvious contrast is naturally , program design better, more concise code , because the containers do a lot to help us in JDBC and Servlet where you need to manually do, however, small projects Of course, you can use SSH framework to achieve , but sometimes would not think to ask is not necessary to use ? Many feel that the Internet is too dependent on SSH.
about Spring's management , to write a few Demo now , and I know it can not be good .
Of course , its benefits are obvious.
------ For reference only -------------------------------------- -
Spring MVC? What can replace it ?
------ For reference only ---------------------------------- -----
Spring MVC? What can replace it ?
can replace the function of Struts and Hibernate , Struts is to control the flow of control , Hibernate persistent data , now you can do a Spring
Thank you , maybe now really should learn Spring MVC , and in school, teacher are some relatively old technology , Hibernate and Struts version is very old , and many need a place of their own learning .
------ For reference only -------------------------------------- -
SSH Secure Shell is the abbreviation for good
------ For reference only ---------------------- -----------------
everyone has their own understanding of the SSH
dog school students are trying to learn new techniques , but also sometimes the teachers will use technology , but do not know what the nature of technology is only a little bit of himself groping
want to ask, in general, I should be concerned about what to get the latest technology?
------ For reference only -------------------------------------- -
seen , to be honest , that does not translate good, but the book was back and forth to see , read it again , did not understand , after a certain experience stood back to see
The biggest problem is that the version of the book to keep up
没有评论:
发表评论