org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'applicationTaskExecutor'

报错信息:

org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'applicationTaskExecutor': Singleton bean creation not allowed while singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)

报错原因:大概率是接口路径错误,比如我的问题如下

 @GetMapping("/v1/detail/{id}}")

这里参数id后面多谢了一个”}“花括号

解决问题:检测自己刚写的接口路径是否有问题

posted @ 2024-08-22 11:16  llili  阅读(587)  评论(0编辑  收藏  举报