如果通過exclusions來排除父項目疏虫,你會發(fā)現(xiàn)打的包里面還是包含永罚,所以先用scope設為test來排除
例如我父項目引用了redis帅涂,子項目不需要,但是沒有的話過不了健康檢查尤蛮,索引用test來去掉
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
<scope>test</scope>
</dependency>