Spring MVC Framework Build (ii)---Spring MVC framework Basic Configuration

Source: Internet
Author: User

The previous section describes how to create a MAVEN project using IntelliJ idea, and the next sections describe the configuration in spring MVC, gradually extending the functionality of the Spring MVC framework, such as spring configuration, log configuration, velocity configuration, etc. Gradually refine our spring MVC framework to achieve the goal of developing simple projects. This section first explains the use of IntelliJ idea to configure spring.

After you create a MAVEN project, start the project first:

One. Right-click the project to open Project Structure

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/4D/6B/wKiom1RQ65jDWReOAAIjbEKA1Ho474.jpg "title=" 1.png " alt= "Wkiom1rq65jdwreoaaijbeka1ho474.jpg"/>

Two. Select the locally installed JDK

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4D/6B/wKiom1RQ696hLRiKAAMsnx5Nfhs536.jpg "title=" 2.png " alt= "Wkiom1rq696hlrikaamsnx5nfhs536.jpg"/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4D/6B/wKioL1RQ7Hnwq51cAAKESpbsOWw938.jpg "title=" 3.png " alt= "Wkiol1rq7hnwq51caakespbsoww938.jpg"/>

Three. Open Run configurations

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4D/6B/wKioL1RQ7T6DmFJvAAGC1HiAMAE058.jpg "title=" 5.png " alt= "Wkiol1rq7t6dmfjvaagc1hiamae058.jpg"/>

Select the installed Tomcat and JDK

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/4D/6B/wKioL1RQ7argNmU8AANQeFXvoPI777.jpg "title=" 6.png " alt= "Wkiol1rq7argnmu8aanqefxvopi777.jpg"/>

In the lower right corner, click Fix

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4D/6B/wKiom1RQ7cmiuJy-AABa8JlNZ1s175.jpg "title=" 8.png " alt= "Wkiom1rq7cmiujy-aaba8jlnz1s175.jpg"/>

Select hot Start

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/4D/6B/wKioL1RQ7lvB-_GaAAN43J6ZTek495.jpg "title=" 9.png " alt= "Wkiol1rq7lvb-_gaaan43j6ztek495.jpg"/>

Four. Start the project

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/4D/6B/wKiom1RQ7kHyCgZdAABU5kW6TGk605.jpg "title=" 10.png "alt=" Wkiom1rq7khycgzdaabu5kw6tgk605.jpg "/>

Enter http://localhost:8080/index.jsp to open the page, the project starts normally.

Not to be continued ...


This article is from the "Javaruler" blog, make sure to keep this source http://tengjs.blog.51cto.com/5641106/1569411

Spring MVC Framework Build (ii)---Spring MVC framework Basic Configuration

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.