Correct the classpath of your application so that it contains a single......

 

 

Correct the classpath of your application so that it contains a single.........................

 

 

 原因是gson的jar包版本问题,解决办法是加入依赖

     <dependency>
            <groupId>com.google.code.gson</groupId>
            <artifactId>gson</artifactId>
            <version>2.3</version>
        </dependency>

然后删除原来的gson,

Correct the classpath of your application so that it contains a single.........................

 

 Correct the classpath of your application so that it contains a single.........................

 

 点击进去之后删掉原来的版本号即可

 

相关文章: