spring springboot websocket 不能注入( @Autowired ) service bean 報 null 錯誤

原文:https://blog.csdn.net/m0_37202351/article/details/86255132java spring 或 springboot 的 websocket 裏面使用 @Autowired 注入 service 或 bean 時,報空指針異常,service 爲 null(並非不能被注入)。web 解決方法:將要注入的 service 改爲 static,就不
相關文章
相關標籤/搜索