JAVA development of the whole terminal housing project

What professional skills to complete the project to use Java Web? In the classic Java Web development model, we use Jsp technology to achieve as the presentation layer, in fact, the so-called front end. Web development in the classic MVC pattern, Model-View-Controller.

Recently he made himself several Java Web projects, the company's commercial projects as well as individual doing playing small projects, write articles summarize the record harvest, include doing the project throughout the process, the need to use the skills and knowledge, to bring has not really come into contact with the students complete Java Web project a more complete perspective, providing a so-called "bigger picture" and also to learn more targeted to the students.

Of course, the example used here is very preliminary projects, simple projects, so the great God who can not look down.

First, we talked about the architecture of the site

In general, our website will be divided into front and back end. The show is mainly responsible for the front page, the back end is the realization of business logic. Since the rise of html5, front-end domains has become increasingly hot, fast development of front-end technology, today we do not do too much introduction, because Internet companies, engineers and Java front-end engineers are two completely different technical positions. So we are still in the Java perspective on a project.

Before the front end is not so fire a few years, or in the classic Java Web development model, we use Jsp technology to achieve as the presentation layer, in fact, the so-called front end. Of course it is not enough just to understand Jsp also need to understand some of the underlying technology front end of html, css, js, ajax, etc., Jsp plays the role of technology in the outer packaging. Then the back-end of it? Due to some back-end business logic to achieve the Java code and database components.

Speaking of which, you can launch Web development in the classic MVC pattern, Model-View-Controller. View ,, refers to the presentation layer, Model, abstract structure is used to carry data, but is the Controller and Model View of the bridge. View the front end code exists, Controller, Model exists and the rear tag.

In the back-end code in order to ensure clean, legibility, generally stratified approach, a top-down into the controller layer, service layer, DAO layer, called persistence layer or data layer (to deal directly with the database ). Sometimes, in order to achieve the purpose of decoupling, the interface will be added in the middle layer in response to said base layer, so that the interface and implementation separation.

In more large sites, there will be more complex architecture, such as to have a caching layer between the dao layer and the data layer, or visit the pressure increases, the need to use advanced technology cluster, load balancing, etc., but here we no in-depth discussion of the complex architecture.

So we saw above, a front-end Web project requires the presentation layer, there are back-end controller layer, service layer, dao layer, persistence layer. In the presentation layer, in addition to basic knowledge of html, css, js, ajax, jsp, etc. just mentioned, in the actual development, we will use many technical framework, such as tiles, velocity, freemarker template and other techniques to simplify the presentation layer development.

In persistence, JDBC addition, there Mybatis, Hibernate like framework to improve development efficiency. Java Web in the most glaring of Spring, Spring as a framework throughout the project, bringing the project to develop dependency injection, aspect-oriented programming features. In addition to these, we also need to master the use of a relational database, such as MySQL, Oracle, of course, better, then also need to have a non-relational database, MongoDB, Redis.

Acquire the above knowledge, congratulations, you have to start writing Java Web project. But not only to write and deploy our project still can not come up with.

Guess you like

Origin www.cnblogs.com/spark9988/p/11514339.html