
exception
yellow__star
开一个账号,记录学习过程。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
使用@Acpect实现日志功能,发现全局异常@ControllerAdvice处理失效了
使用@Acpect实现日志功能,发现全局异常@ControllerAdvice处理失效了业务中使用全局异常捕获自定义异常,后面又加了个日志。导致@ControllerAdvice失效了。具体原因为:切面配置类中配置了@Around catch了异常 只需要向外抛出 然后@ControllerAdvice 就能捕获生效。...原创 2020-08-17 11:18:22 · 807 阅读 · 0 评论 -
Caused by: java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'com.XXXXX.order.feign.
异常原因:模糊映射在当前的微服务中,调用当前服务暴露的fegin出现的异常。将对应的XXFegin替换成XXService即可。原创 2019-12-14 22:01:16 · 769 阅读 · 0 评论 -
java.lang.IllegalArgumentException: Fielddata is disabled on text fields by default. Set fielddata=t
ElasticSearch版本:lucene_version:"6.6.1"报错原因:ElasticSearch无法对类型为text的字段进行聚合查询。方案一:因此我们需要将es对应的索引库中的字段增加一个 fielddata:true; fielddata 默认被禁用,因为使用之后聚合查询会消耗大量的堆内存。因此慎用。方案二:(推荐)一般来说使用 将text类型修改为ke...原创 2019-12-06 10:29:27 · 2437 阅读 · 0 评论 -
java.lang.IllegalStateException: No ConfigurableListableBeanFactory set
使用Dubbo调用远程服务的时候,启动日志报错:java.lang.IllegalStateException: No ConfigurableListableBeanFactory set通过日志可以看出是spring的初始化启动出错,原因是使用的dubbo版本和spring的版本不支持,通过修改spring版本spring 5.1.5 RELEASE 为 5.0.5 RELEASE即可解...原创 2019-10-29 10:40:58 · 3189 阅读 · 6 评论 -
ServletException: Circular view path [findAllUser]: would dispatch back to the current handler URL [
出错原因:javax.servlet.ServletException: Circular view path [findAllUser]: would dispatch back to the current handler URL [/SSM_02/findAllUser] again. Check your ViewResolver setup! (Hint: This may be the...原创 2019-10-25 21:26:04 · 1065 阅读 · 0 评论 -
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.mybatis
查看抛出的异常->底层原因: org/springframework/jdbc/datasource/TransactionAwareDataSourceProxy说明我们需要在pom,xml导入spring-jdbc的坐标,使用ssm,mybatis作为dao层需要到导入spring-jdbc包具体异常:"C:\Program Files\Java\jdk1.8.0_...原创 2019-10-24 23:26:56 · 4761 阅读 · 1 评论 -
com.github.pagehelper.PageHelper cannot be cast to org.apache.ibatis.plugin.Interceptor
sqlMapConfig.xml中配置插件出错原因:<!--配置分页插件 PageHelper 4.X使用--><plugins> <plugin interceptor="com.github.pagehelper.PageHelper"> <property name="dialect" value="mysql"/...原创 2019-10-20 16:59:12 · 593 阅读 · 0 评论