编译Eureka源码的时候,eureka-server中的测试类 import 爆红:
static org.hamcrest.CoreMatchers.equalTo
解决方案:
添加依赖即可:
testImplementation 'org.hamcrest:hamcrest-core:2.1'
添加版本为2.1的依赖,如果选择使用1.3版本的依赖,其包名可能不一致
编译Eureka源码的时候,eureka-server中的测试类 import 爆红:
static org.hamcrest.CoreMatchers.equalTo
解决方案:
添加依赖即可:
testImplementation 'org.hamcrest:hamcrest-core:2.1'
添加版本为2.1的依赖,如果选择使用1.3版本的依赖,其包名可能不一致