项目中. classpath加上
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
然后重启eclipse
本文介绍如何在 Eclipse 中配置 Maven 项目的 .classpath 文件,通过添加特定的 classpath entry 来实现 WEB-INF/lib 目录的有效引用。此配置对于整合 Eclipse 和 Maven 项目的依赖管理至关重要。
项目中. classpath加上
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
然后重启eclipse
1万+
7260
2万+
4178

被折叠的 条评论
为什么被折叠?