Idea下面无法识别web-inf下lib目录的子目录的jar包,只能直接放lib下面才能识别?

解决方案一:
Ctrl+Alt+Shift+s打开projuect Structure-->Livraries-->➕-->java-->选择对应的lib目录即可!
解决方案二:在pom.xml中添加本地jar包,类似代码如下:

<dependency>

<groupId>htmlunit</groupId>

<artifactId>htmlunit</artifactId>

<version>2.21-OSGi</version>

<scope>system</scope>

<systemPath>${project.basedir}/libs/htmlunit-2.21-OSGi.jar</systemPath>

</dependency>

原文地址:https://www.cnblogs.com/jpfss/p/8484823.html