bean 初始化失败;嵌套异常是 java.lang.UnsatisfiedLinkError: Unable to load library 'CoreFoundation'

时间:2020-12-24 13:07:16

标签: java macos core-foundation macos-big-sur

我正在尝试在 macOS Big Sur 11.1 上启动我的 Spring 项目。我有一个问题:

2020-12-24 15:20:24.221 ERROR [                     main] o.s.b.w.e.t.TomcatStarter                : Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name 'webMvcMetricsFilter' defined in class path resource [org/springframework/boot/actuate/autoconfigure/metrics/web/servlet/WebMvcMetricsAutoConfiguration.class]: Unsatisfied dependency expressed through method 'webMvcMetricsFilter' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'compositeMeterRegistry' defined in class path resource [io/micrometer/spring/autoconfigure/CompositeMeterRegistryConfiguration.class]: Unsatisfied dependency expressed through method 'compositeMeterRegistry' parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'meterRegistry' defined in ru.x5.references.storage.config.EventsMetricConfig: Initialization of bean failed; nested exception is java.lang.UnsatisfiedLinkError: Unable to load library 'CoreFoundation':
dlopen(libCoreFoundation.dylib, 9): image not found
dlopen(libCoreFoundation.dylib, 9): image not found
Native library (darwin/libCoreFoundation.dylib) not found in resource path...

我不知道如何解决它。在 IDEA 2020.3 中编码。

0 个答案:

没有答案