【发布时间】:2017-05-08 06:54:25
【问题描述】:
首先,在 Spring-boot 中构建项目。然后我想使用gson,所以我在pom.xml中添加了依赖。但出现警告:
The managed version is 2.8.0 The artifact is managed in org.springframework.boot:spring-boot-dependencies:1.5.3.RELEASE
我点击它,发现 spring-boot 确实已管理:click here 但是,如果我自己删除了依赖声明,gson.jar 就消失了。我不能使用gson... 那么如何使用spring-boot依赖管理的gson呢?
【问题讨论】:
-
显然,您正在使用某种 IDE,它试图为您解决问题。您始终可以在命令行上使用 mvn dependency:list 或 mvn dependency:tree 来查看包含的内容和原因。您使用的是哪个 IDE?
-
我在mac上用eclipse,有关系吗?
标签: java maven spring-boot gson