Consider injecting the bean as one of its interfaces or forcing the use of CGLib-based proxies by se

@Resource注解是Java的注解,用于在运行时注入依赖项。如果两个不同的引用使用了相同的名字,可能会导致注入错误。 重新制定一个bean名称  ,或者更换为@Autowired
来注入
posted @ 2023-11-15 16:48  汤圆aiWL  阅读(1413)  评论(0)    收藏  举报