Field counterService in com.gec.repository.provider.counter.CounterController required a bean of type 'com.gec.repository.provider.counter.CounterService' that could not be found.
原因是spring-boot-actuator-1.5.22.RELEASE.jar里面也有CounterService这个类,启动实例化时被他覆盖了,所以一直找不到;
解决就是可以给自己业务service取个名字