JAVA 解决 Java 普通 Utils 类(非 Controller、Service)注入 mapper 为 null 在写一个敏感词过滤器 Util 的时候,需要注入 mapper 来进行数据库查询所有的敏感词,然后就向 ServiceImpl 里的注入一样写: @Autowired private SysSensi... 11月07日1,975 次浏览评论filter utils 阅读全文