Payment支付网关启动出错

未结 提问 4 419
Jackie
Jackie 2023-09-25 13:20:30
悬赏:20 收藏
pom里边已经取消了对jackson的引用 ,但是代码里边还有。导致启动出错。 [pre] 2023-09-24 17:24:06.300 INFO [background-preinit] [o.h.v.i.u.Version] - HV000001: Hibernate Validator 6.1.7.Final 2023-09-24 17:24:06.308 INFO [main] [c.j.j.p.b.JeepayPayApplication] - Starting JeepayPayApplication v2.2.1 using Java 1.8.0_382 on ubuntu-2gb-hil-1 with PID 415123 (/www/wwwroot/jeepay/service/payment/jeepay-payment.jar started by root in /www/wwwroot/jeepay/service/payment) 2023-09-24 17:24:06.308 DEBUG [main] [c.j.j.p.b.JeepayPayApplication] - Running with Spring Boot v2.4.8, Spring v5.3.8 2023-09-24 17:24:06.309 INFO [main] [c.j.j.p.b.JeepayPayApplication] - No active profile set, falling back to default profiles: default 2023-09-24 17:24:08.271 INFO [main] [o.s.d.r.c.RepositoryConfigurationDelegate] - Multiple Spring Data modules found, entering strict repository configuration mode! 2023-09-24 17:24:08.276 INFO [main] [o.s.d.r.c.RepositoryConfigurationDelegate] - Bootstrapping Spring Data Redis repositories in DEFAULT mode. 2023-09-24 17:24:08.313 INFO [main] [o.s.d.r.c.RepositoryConfigurationDelegate] - Finished Spring Data repository scanning in 11 ms. Found 0 Redis repository interfaces. 2023-09-24 17:24:08.455 INFO [main] [o.s.c.a.ConfigurationClassPostProcessor] - Cannot enhance @Configuration bean definition 'rabbitMQBeanProcessor' since its singleton instance has been created too early. The typical cause is a non-static @Bean method with a BeanDefinitionRegistryPostProcessor return type: Consider declaring such methods as 'static'. 2023-09-24 17:24:08.719 WARN [main] [o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'objectMapperConfigurer' defined in class path resource [springfox/documentation/spring/web/SpringfoxWebMvcConfiguration.class]: Post-processing of merged bean definition failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [springfox.documentation.spring.web.WebMvcObjectMapperConfigurer] from ClassLoader [org.springframework.boot.loader.LaunchedURLClassLoader@7a07c5b4] 2023-09-24 17:24:08.750 INFO [main] [o.s.b.a.l.ConditionEvaluationReportLoggingListener] - Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2023-09-24 17:24:08.773 ERROR [main] [o.s.b.SpringApplication] - Application run failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'objectMapperConfigurer' defined in class path resource [springfox/documentation/spring/web/SpringfoxWebMvcConfiguration.class]: Post-processing of merged bean definition failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [springfox.documentation.spring.web.WebMvcObjectMapperConfigurer] from ClassLoader [org.springframework.boot.loader.LaunchedURLClassLoader@7a07c5b4] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:579) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:524) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:213) at org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:270) at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:762) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:567) at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:144) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:771) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:763) at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:438) at org.springframework.boot.SpringApplication.run(SpringApplication.java:339) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1329) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1318) at com.jeequan.jeepay.pay.bootstrap.JeepayPayApplication.main(JeepayPayApplication.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49) at org.springframework.boot.loader.Launcher.launch(Launcher.java:108) at org.springframework.boot.loader.Launcher.launch(Launcher.java:58) at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88) Caused by: java.lang.IllegalStateException: Failed to introspect Class [springfox.documentation.spring.web.WebMvcObjectMapperConfigurer] from ClassLoader [org.springframework.boot.loader.LaunchedURLClassLoader@7a07c5b4] at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:481) at org.springframework.util.ReflectionUtils.doWithLocalMethods(ReflectionUtils.java:321) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.buildLifecycleMetadata(InitDestroyAnnotationBeanPostProcessor.java:232) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.findLifecycleMetadata(InitDestroyAnnotationBeanPostProcessor.java:210) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(InitDestroyAnnotationBeanPostProcessor.java:149) at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(CommonAnnotationBeanPostProcessor.java:294) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors(AbstractAutowireCapableBeanFactory.java:1098) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:576) ... 24 common frames omitted Caused by: java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/ObjectMapper at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) at java.lang.Class.getDeclaredMethods(Class.java:1975) at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:463) ... 31 common frames omitted Caused by: java.lang.ClassNotFoundException: com.fasterxml.jackson.databind.ObjectMapper at java.net.URLClassLoader.findClass(URLClassLoader.java:387) at java.lang.ClassLoader.loadClass(ClassLoader.java:418) at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:151) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ... 35 common frames omitte [/pre]
回帖
  • 大森林 (管理员)
    2023-09-25 23:35:28
    为啥要取消了对jackson的引用,是要解决什么问题?
    0 回复
  • 2023-09-26 07:43:51
    payment项目pom.xml里边是这么写的呀,我没有改。 [hr] [pre] 删除spring boot默认json映射器: Jackson, 引入fastJSON [/pre] [hr][pre] <!-- 依赖 sping-boot-web --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <exclusions> <exclusion> <!-- 删除spring boot默认json映射器: Jackson, 引入fastJSON --> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> </exclusion> <exclusion> <groupId>com.fasterxml.jackson.datatype</groupId> <artifactId>jackson-datatype-jdk8</artifactId> </exclusion> <exclusion> <groupId>com.fasterxml.jackson.datatype</groupId> <artifactId>jackson-datatype-jsr310</artifactId> </exclusion> <exclusion> <groupId>com.fasterxml.jackson.module</groupId> <artifactId>jackson-module-parameter-names</artifactId> </exclusion> </exclusions> </dependency> [/pre]
    0 回复
  • 大森林 (管理员)
    2023-09-28 14:49:09
    你是切换rabbitmq了么,查看下这个:https://docs.jeequan.com/docs/jeepay/jeepay-1d99ciatu11h5#9zt7gr
    0 回复
  • 2023-10-14 11:51:40
    厉害
    0 回复

冀ICP备19034523号-6
Copyright © 2017 - 2024 Jeequan. All Rights Reserved. 计全科技 版权所有