apache httpclient clientprotocol class notfoundexception with gradle with program args

问题描述 投票:0回答:1

我正在尝试运行gradlew test -Penv="envLocal"

这将抛出ClassNotFound:ClientProtocolException,但如果没有-Penv则无法正常工作。

有人可以帮助解决这个问题吗?

正在运行的弹簧测试

spring gradle spring-test
1个回答
0
投票

找到了答案,这是由于针对不同环境的不同配置。

© www.soinside.com 2019 - 2024. All rights reserved.