To build the project can access the database SpringWeb

Summary:

This article is a need to build SpringWeb students learning project to provide a reference, which will include the following features
1. Idea initial project to build SpringWeb environment
2. Add Html page and access static resources
3. Return dynamic processing Html page
4. assertions and exception handling increase request custom parameter
5. logback incorporated logging (late log will optimize the form, a specific optimization module will paste)
6. database query and query implementation profiles prepared

Before the first to write a few articles I build feelings SpringWeb seek information, many articles are feeling just to explain at a certain point, there is no article all these things to string together a complete tutorial. In addition, a lot of information queries are to have their specially to solve scene (just like piece of a jigsaw-like only looked at the current scene), so the article is issued, most will say that the article did not use. Over time it leads to a vicious cycle of information can only be found to solve a specific scene, but not a complete solution system has led to inquiries much of the information is useless information, query time wasted not say, things ultimately did not solve.

1. Idea initial environmental project to build SpringWeb

1.1 New Project

Here Insert Picture Description

1.2 Creating Spring Initializr project

Here Insert Picture Description

1.3 New project name and project name

Here Insert Picture Description

1.4SpringWeb project selection introduced Web module in the Spring Web Start

Note: For now, Idea tool should show the name of the Web module belongs to the Spring Spring has added the prefix, former classmates to see if Spring Web Start formerly named Web module is not surprising, in fact, is also a
Here Insert Picture Description

1.5SpringWeb project selection introduced resolve Html template engine

Here Insert Picture Description

1.6SpringWeb project selection introduced resolve Html template engine

Here Insert Picture Description

1.7SpringWeb project directory path

Here Insert Picture Description

1.7SpringWeb project pom-dependent

Here Insert Picture Description

1.8 summary

This, the first knowledge [use Idea build SpringWeb initial project environment] has completed the
specific reference in the video GitHub [use Idea initial project to build SpringWeb environment .wmv]

2. Add Html page and access static resources

1.1 New Project

Guess you like

Origin blog.csdn.net/Master_Shifu_/article/details/92390923
Recommended