What you should know before you learn the Java Open source framework __java

Source: Internet
Author: User
Tags data structures reflection

Do not come up to school struts/webwork/spring/hibernate/ibatis and so on the framework, first understand the following techniques, for the learning framework is very important. The
first is the reflection mechanism and introspection mechanism of Java. Most frameworks use both mechanisms, because they all implement the recognition and loading of classes automatically through a configuration file, so you must use reflection and introspection. In particular, introspection mechanism, for everyone to understand the JSP in some knowledge is also very helpful. For example, if you use
${user.name}
in El, then the user is not allowed in this object if name is not in this property.
Also, a member of the Java private sector must not be accessible.
Two is design mode. The 23 models of GOF are important, and there is no need to say more. Each framework uses a number of design patterns, and if you don't know the design patterns, their source code is hard to read. For example, JUnit uses a variety of design patterns, after all, by Gamma. Including composite, Command, decorator and so on. The
third is the proxy mechanism. The agent is very helpful for implementing some additional functions, and the agent mechanism is used extensively in hibernate. There are two agent mechanisms, one is the Java built-in proxy, and the other is the proxy provided by the CGLIB framework. You don't have to understand everything, but at least you have to know what the agency means. Or even if you do, you will not understand how they are implemented.
Four is XML. Must be able to write, for his analysis, can understand the best. Two approaches, Dom and sax; two frameworks dom4j, Digister, and so on

I think the most important thing is that the basics must be better. I recommend looking at the Java programming idea of this book, and many of the company's written Java topics come out of this book. In addition JSP,SERVLET,JDBC must have the understanding, this can explain you in the university time internship, has done some small project. Hibernate,struts,spring these things I do not recommend you to learn, I think you should learn how to handle exceptions, learn to use JDBC access to the database, learn how to release resources, how to control database transactions, learn how to write custom tags, which can significantly improve your programming level.
After a year of work I think we should go back to the university data structure, algorithm, operating system, and then should be opposite like objects to have a more profound understanding, design patterns should also slowly start to relate to (Java variable programming ideas This book is recommended to see a few more times). I don't recommend working a year to change jobs, because it takes time to find a job, new jobs are adapted to new frameworks and new businesses, and you're going to spend a lot of time. I still don't advise you to see something like hibernate,struts,spring, although you might want to use it in your work. For English I think should be prepared early, forced to read some English books, improve their spoken English, and I also want to emphasize that the appropriate training is necessary, Shanghai has a lot of foreign language training institutions (mainly training business exchanges), the effect is very good, but also very expensive, So go ahead must plan well, do not like the university that pay not to go to class or do not listen to lectures, so it is best not to go.
After two years of work, if you have a deeper understanding of algorithms, data structures, design patterns, and so on, I think you should be able to quickly understand the hibernate,struts,spring implementation.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.