1, first create a new MAVEN project, look at the picture:
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 change the project code to UTF-8, after the project code is used UTF-8, add a character encoding filter, garbled no longer "chaotic" (not to say no, but easier to solve).
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:
[HTML]View PlainCopy
- <!--import Java EE jar Package--
- <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, need jstl and so on, configured as follows:
When I can't modify it, I can choose to modify it from the configuration file, I forget the file name.
(Reprint annotated source, original address: Http://blog.csdn.net/zhshulin)
Create a Web project "Go" using maven