Home > Back-end > Have bosses know why use openfeign, controller into service when the org. Quartz. ObjectAlreadyExist
Have bosses know why use openfeign, controller into service when the org. Quartz. ObjectAlreadyExist
Time:11-27
Background: items used in the distributed technology is springcloud nacos openfeign, useful to the timer function, if the controller, if you remove the @ autoware annotation is not an error
Below is the error content
CodePudding user response:
Error reason is that there is a DEFAULT. 2 id in the work, or you repeat, or cache that you don't have to delete, cause before the task is still there, can't start again
CodePudding user response:
Didn't understand your usage, you use the Feign why is remote calls this service, why not call the controller, the controller in the call this service This call is its controller, the controller to the service, you do like this way because it is Feign already calls to the service, so will quote already exists, can no longer for injection,
CodePudding user response:
No remote call service, probably the first two screenshots on a wrong and the service is injected in the controller, remote call when in service
CodePudding user response:
There is also a situation, if with ribbon way call, no error, is will feign in the operation of the timer invokes the timer framework joint my timer shall be launched?