eclipse引入web工程后配置

现在学习java基础,遇到问题总结一下

1.首先引入web工程

File --> Import -->  General --> Existing Projects into Workspace --> Browse(工程代码)

注意:eclipse的工作空间与代码位置尽量不要同名和同位置,要不web工程引入不了。

2.添加Tomcat服务器

Window --> Preferences --> Server --> Runtime Environments --> Add(服务器版本) -->Browse(服务器地址)

3.修改jer

选中工程文件点击右键 --> Properties --> Java Build Path --> Add Library --> JRE System Library

因为工程用的Maven包管理工具,所以还要修改一下maven配置

4.修改Maven的settings.xml配置

http://blog.csdn.net/u010194271/article/details/52918827  

https://www.cnblogs.com/DreamDrive/p/5571916.html   可以参考下载配置maven

5.xml报错问题

Referenced file contains errors (http://www.springframework.org/schema/context/spring-context-4.3.xsd). For more information, right click on the message in the Problems View and 
select "Show Details..."

将 Preferences > XML > XML Files > Validation中"Honour all XML schema locations"前的对号去掉。它将禁用指向不同schema位置相同命名空间引用的验证,仅以第一次找到的可验证的XML文件为结果。

原文地址:https://www.cnblogs.com/lingdu87/p/8022598.html