xuxueli/xxl-job

整合xxl-job后,存在注解@RequestLine 时,服务启动报错,去掉xxl-job启动器,就正常了

yuchenit opened this issue · 0 comments

2024-05-20 11:41:58.838 INFO 43560 --- [ main] c.xxl.job.core.executor.XxlJobExecutor : >>>>>>>>>>> xxl-job register jobhandler success, name:clearFlowsJob, jobHandler:com.xxl.job.core.handler.impl.MethodJobHandler@4ceac22d[class com.wuyuan.cs.user.component.xxlJob.jobhandler.SimServiceXxlJob#clearFlowsJob]
2024-05-20 11:41:58.855 WARN 43560 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.wuyuan.cs.user.component.feign.service.DeviceFeignService': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Method getDevice not annotated with HTTP method type (ex. GET, POST)

去掉xxl-job,@RequestLine 就正常了
请问如何解决?