异常
520_HL
..................
展开
-
@Component注解部分场景不生效问题
1.出现问题的原因:@Component这个注解把该类注入到spring容器中了,但是在拦截器之中不生效,再在Utils使用到dao,我们就不能直接注入了解决方案:使用ApplicationContextAware解决问题。而ApplicationContextAware实现了这个接口的bean,当spring容器初始化的时候,会自动的将ApplicationContext注入进来2 案例demo/** * @author zhenglong * @Description:解决部分@Co.原创 2020-12-29 11:04:18 · 5813 阅读 · 0 评论 -
elasticsearch+redis依赖冲突
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'worksService': Unsatisfied dependency expressed through field 'repository'; nested exception is org...原创 2018-10-26 20:43:32 · 2213 阅读 · 0 评论 -
SpringCloud com.netflix.zuul.exception.ZuulException:
com.netflix.zuul.exception.ZuulException: 解决方案#负载均衡的配置ribbon: ConnectTimeout: 250 # 连接超时时间(ms) ReadTimeout: 5000 # 通信超时时间(ms) OkToRetryOnAllOperations: true # 是否对所有操作重试 Max...原创 2018-12-09 21:34:15 · 807 阅读 · 0 评论 -
nested exception is org.apache.ibatis.binding.BindingException: Parameter 'startDate' not found.
这个错误是 @Param包导入错误原创 2019-09-17 09:42:50 · 1022 阅读 · 0 评论