今天添加普罗米修斯配置的时候报了这么一个错
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestTotalCountCollector' defined in class path resource [com/XXX/config/PrometheusConfig.class]: No matching factory method found: factory bean 'prometheusConfig'; factory method 'requestTotalCountCollector()'. Check that a method with the specified name exists and that it is non-static.
......
最后修改了PrometheusConfig类的名字就可以了,是有重名吧,导致找不到factory method