Home > Back-end >  To solve the problem about quartz invokes the feign service
To solve the problem about quartz invokes the feign service

Time:12-01

Why am I in the quartz in the task class feign null Pointers, bena has been injected into came in, call normal elsewhere, please answer



CodePudding user response:

The job is not into the spring

CodePudding user response:

You need to go online to find themselves how quartz with spring integration, you can use spring's integration package, also can configure themselves by writing class, to solve the integration problem.
Job is not founded by the spring, but quartz new reflected their own, so not injection, so I feel, you of the job here is to null

CodePudding user response:

Injection dataSynicService failure, the official wafa. Build. Buildmaterials, service. The impl this package path, spring is there a scan

CodePudding user response:

Well, good integration, just call feign will be null

CodePudding user response:

Injection of success, feign dataSynicService is micro service

CodePudding user response:

CodePudding user response:

If successful, then you this is a simple control, look at you the 28 lines, the calls to the methods of how to write the

CodePudding user response:

Method, state, no problem, just in the frame of the timing task calls to feign service appeared a null pointer exception, feign service also has been injected, is no solution

CodePudding user response:

Find the problems, the problems of the log cross section inside, meng

CodePudding user response:

Hello, concrete is how to solve, I also encountered similar problems
  • Related