Commit 5b6e97a22cb4396a9bbcd31cb0b0e2999fdfebf0

Authored by zhangdaiscott
1 parent a513eb29

还原代码 [issues/I561IU]3.2版本,跑测试用例代码抛出异常

jeecg-boot/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/config/WebMvcConfiguration.java
... ... @@ -14,7 +14,6 @@ import org.springframework.boot.autoconfigure.jackson.Jackson2ObjectMapperBuilde
14 14 import org.springframework.context.annotation.Bean;
15 15 import org.springframework.context.annotation.Conditional;
16 16 import org.springframework.context.annotation.Configuration;
17   -import org.springframework.context.annotation.Lazy;
18 17 import org.springframework.http.converter.HttpMessageConverter;
19 18 import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
20 19 import org.springframework.web.cors.CorsConfiguration;
... ... @@ -128,7 +127,6 @@ public class WebMvcConfiguration implements WebMvcConfigurer {
128 127 * 解决springboot2.6
129 128 * 解决metrics端点不显示jvm信息的问题(zyf)
130 129 */
131   - @Lazy
132 130 @Bean
133 131 InitializingBean forcePrometheusPostProcessor(BeanPostProcessor meterRegistryPostProcessor, PrometheusMeterRegistry registry) {
134 132 return () -> meterRegistryPostProcessor.postProcessAfterInitialization(registry, "");
... ...