Mybatis报错处理Not available in non blocking mode

mybatis代码如下:


     and v.invent > 0
 

控制台打印错误如下:

Caused by: com.fasterxml.jackson.databind.JsonMappingException: Not available in non blocking mode (through reference chain: com.kyee.framework.log.MethodLog["args"]->org.springframework.session.web.http.SessionRepositoryRequestWrapper["request"]->org.apache.catalina.connector.RequestFacade["inputStream"]->org.apache.catalina.connector.CoyoteInputStream["ready"])

Caused by: java.lang.IllegalStateException: Not available in non blocking mode

继续执行查看报错信息如下:

Mybatis报错处理Not available in non blocking mode_第1张图片

解决方案如下

修改xml文件如下


      and v.invent > 0
 

与 之前xml区别在于,之前字母d用单引号括起来,改成双引号括起来即可

 

个人猜测 单引号括起来当成字符去比较了,java字符比较比的是Ascall码值,所以会报错

如有不同见解,欢迎留言讨论

 

 

 

 

你可能感兴趣的:(mybatis)