美文网首页
springboot排除父项目的jar包

springboot排除父项目的jar包

作者: Bigglesworth | 来源:发表于2023-07-31 11:48 被阅读0次

如果通过exclusions来排除父项目,你会发现打的包里面还是包含,所以先用scope设为test来排除

例如我父项目引用了redis,子项目不需要,但是没有的话过不了健康检查,索引用test来去掉

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-data-redis</artifactId>
    <scope>test</scope>
</dependency>

相关文章

网友评论

      本文标题:springboot排除父项目的jar包

      本文链接:https://www.haomeiwen.com/subject/seyepdtx.html