资讯详情

IDEA: Springboot 项目 install报错:

Found multiple occurrences of org.json.JSONObject on the class path:   jar:file:/C:/Users/Administrator/.m2/repository/org/json/json/20160810/json-20160810.jar!/org/json/JSONObject.class  jar:file:/C:/Users/Administrator/.m2/repository/com/vaadin/external/google/android-json/0.0.20131108.vaadin1/android-json-0.0.20131108.vaadin1.jar!/org/json/JSONObject.class  You may wish to exclude one of them to ensure predictable runtime behavior

在pom种加入:com.vaadin.external.google依赖忽略

<dependency>    <groupId>org.springframework.boot</groupId>    <artifactId>spring-boot-starter-test</artifactId>    <scope>test</scope>    <exclusions>     <exclusion>      <groupId>org.junit.vintage</groupId>      <artifactId>junit-vintage-engine</artifactId>     </exclusion>     <exclusion>      <groupId>com.vaadin.external.google</groupId>      <artifactId>android-json</artifactId>     </exclusion>    </exclusions>   </dependency>

标签: 对射光电开关传感器感应开关ex

锐单商城拥有海量元器件数据手册IC替代型号,打造 电子元器件IC百科大全!

锐单商城 - 一站式电子元器件采购平台