websocket中无法注入mapper文件
springboot+websocket:@Autowired无法注入mapper,改为static也不行,参照网上:private UserMapper userMapper = (UserMapper) ContextLoader.getCurrentWebApplicationContext().getBean("UserMapper");在线求大佬参考这个链接https://ask.csdn.net/questions/1088302?sort=id 参考这个链接https://ask.csdn.net/questions/1088302?sort=id https://blog.csdn.net/Kevin___________/article/details/106729472看下这个
页:
[1]