Eclipse maven web, eclipsemaven

Source: Internet
Author: User

Eclipse maven web, eclipsemaven

 

 

Create a web project using maven in eclipse.

Environment Configuration

C: \ Users \ xxx> java-version
Java version "1.8.0 _ 121"
Java (TM) SE Runtime Environment (build 1.8.0 _ 121-b13)
Java HotSpot (TM) 64-Bit Server VM (build 25.121-b13, mixed mode)

 

C: \ Users \ xxx> mvn-version
Apache Maven 3.3.9(Bb52d8502b132ec0a5a3f4c09425c07478323dc5; 2015-11-11T00: 41: 47 + 08: 00)
Maven home: C :\apache-maven-3.3.9 \ bin \..
Java version: 1.8.0 _ 121, vendor: Oracle Corporation
Java home: C: \ Java \ jdk1.8.0 _ 121 \ jre
Default locale: zh_CN, platform encoding: GBK
OS name: "windows 10", version: "10.0", arch: "amd64", family: "dos"

 

Eclipse Java ee ide for Web Developers.

Version: Neon.2 Release (4.6.2)
Build id: 20161208-0600

 

Create a maven project

 

After entering necessary information, click Finish.

 

Code into UTF-8, then click OK

Delete JRE 1.5.

 

Add JRE 1.8 dependency

 

 

 

Compilation level changed to 1.8

 

 

Set project facets

 

Delete useless dependencies in Java Build Path

 

Add Server Runtime dependency to Java Build Path

 

Create JSP

 

Run

 

 

Access http: // localhost/model/index. jsp

 

 

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.