Currently doing the project using MAVEN to manage the jar package, it feels good to use, do not have to add and download the jar package, directly in the MAVEN configuration file configuration can be, MAVEN can help us to automatically download, very convenient. This article describes how to create a MAVEN project.
Recommended 2 maven Find a jar package configuration site, only need to search for keywords to find the required jar package, very convenient
http://serch.maven.org; http://mvnrepository.com
The following is a guide to creating a related graphic:
1. First create a MAVEN project:
2, follow the above steps can create a MAVEN project, you can see the bottom of the directory structure, such a directory structure is not correct, need to make some changes.
First in order to avoid garbled, we should change the project code to Utf-8, after the project code is used Utf-8, add a character encoding filter, garbled is no longer "chaotic"
Again, follow the action in the solution (set JRE as Default), and the complete, correct directory structure will appear.
Finally, there is a index.jsp error, we need to introduce Java EE jar package, introduced in the Pom.xml:
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>7.0</version>
</dependency>
At this point, the complete directory structure and the correct project are done, and then some configuration
Create a Web project using Maven