出现了好几次这个问题,每次解决之后,每次都会忘记怎么解决的,下定决心要把它解决办法写下来。

双击services, 找到Server Options 点击"Public module contexts to separate XML files" 跟我图中一样即可,就可以解决这个问题,如果解决不了我建议你移除项目再重现加入,就可以解决。下面还有另一种根本上解决的方法。
Setting property ‘source‘ to ‘org.eclipse.jst.jee.server: ‘ did not find a matching property.

第二种方法:

找到这个Servers这个项目打开,点开conrext.xml,
Setting property ‘source‘ to ‘org.eclipse.jst.jee.server: ‘ did not find a matching property.

默认情况下,server.xml的 Context元素不支持名称为source的属性,所以会发出警告。
之后把source="org.eclipse.jst.jee.server:"的内容去掉保存即可。

相关文章: