报错:
ERROR [Scheduler] ValidationError: Using global EntityManager instance methods for context specific actions is disallowed. If you need to work with the global instance's identity map, use allowGlobalContext configuration option or fork() instead
我用的是?mikro-orm 连的数据库
在方法上加?@CreateRequestContext() 注解
这样就不会报错了