主要是spring-boot
版本和micrometer
版本没有对应上,我用的spring-boot
是2.6.0
对应的micrometer
就是1.8
spring-boot
是2.5.0
对应的micrometer
就是1.6 不是1.7 [2.6以后直接从1.6更新到1.8]
spring-boot 2.5.9 是1.8
spring boot
如果是2.4
,对应micrometer
版本是1.6
, 其他版本的·spring-boot·可以先在Home · spring-projects/spring-boot Wiki · GitHub 找到对应的spring-boot
版本然后再在wiki下找到依赖的micrometer
版本
actuator 配置 springSecurity 权限拦截了