Mvn工程解決severlet版本衝突問題
阿新 • • 發佈:2018-11-09
ERROR spark.SparkContext: Errorinitializing SparkContext.
java.lang.SecurityException:
class"javax.servlet.ServletRegistration"'s signer information does notmatch signer information of other classes in the same package在pom.xml配置檔案中把servlet3.0的配置程式碼拿commons-logging之前
沒有這些內容的,可以直接複製,放在最前面
<dependency>
<groupId>javax.servlet</groupId><artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</dependency>