Recommended 2 maven Find jar package configuration site, only need to search for keywords to find the required jar package, very convenient, such as: MySQL can find Mysql-connect-java.jar.
http://search.maven.org/#search%7cga%7c1%7cmybatis
http://mvnrepository.com/
The following is a guide to creating a related graphic:
1, first create a new MAVEN project, look at the picture:
Next
Next
2, follow the above steps can create a MAVEN project, you can see the most directory structure, but such a directory structure is wrong, need to make some changes.
First, in order to avoid garbled, we should replace the project code with UTF-8, and later the project code is UTF-8, plus a character encoding filter.
Again, follow the operation with the solution (set JRE as the default), so that the complete and correct directory structure will appear, for what reason, I am not very clear, should be a bug:
Finally, there is a index.jsp error, we need to introduce the Java EE jar package. Introduced in Pom.xml:
<!--solving JSP error problems-- <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. Then some configuration, after all, is a Web project, configured as follows:
Java series-Creating Web projects using Maven (ii)