摘要: 根据错误提示是指某个BEN对象没有被定义,这是spring报出的错,因此在缺少的类上面加入spring注解:@Component 确保spring启动时能自动扫描到,在@Autowired 时不报错。问题解决! 阅读全文
posted @ 2019-07-05 17:11 luoheyuan 阅读(6019) 评论(0) 推荐(1) 编辑
摘要: 1:首先在项目的pom文件中添加两个依赖 <!-- 文件上传组件 --> <dependency> <groupId>commons-fileupload</groupId> <artifactId>commons-fileupload</artifactId> <version>1.3.1</ve 阅读全文
posted @ 2019-07-05 09:13 luoheyuan 阅读(4023) 评论(0) 推荐(0) 编辑