@Autowired注解和静态方法 、静态变量的初始化顺序
今天在写项目的时候,遇到这么一个问题:@AutowiredCategoryMapper categoryMapper;private List<Category> categoryList = categoryMapper.selectByExample(new CategoryExample());这段代码报java.lang.NullPointerException: nu...
原创
2018-04-21 10:19:52 ·
4154 阅读 ·
0 评论