警告: Expected content type of 'application/javascript' or 'application/ecmascript'
for remotely loaded JavaScript element at 'http://jquery-1.4.2.min.js', but got ''.
java.lang.NoSuchMethodError:org.apache.commons.io.IOUtils.toString(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Ljava/lang/String;
解决:
版本太高,换成低版本。
<!-- https://mvnrepository.com/artifact/net.sourceforge.htmlunit/htmlunit -->
<dependency>
<groupId>net.sourceforge.htmlunit</groupId>
<artifactId>htmlunit</artifactId>
<version>2.15</version>
</dependency>