11 2022 档案
摘要:
【问题】启动报异常错误 Error while adding the mapper 'xxx.xxx.xxx' to configuration java.lang.IllegalStateException: No typehandler found for property xxx 【原因】实体
阅读全文
![启动报Error while adding the mapper 'xxx.xxx.xxx' to configuration.[java.lang.IllegalStateException: No typehandler found for property xxx]](https://img2023.cnblogs.com/blog/1639345/202211/1639345-20221128134218133-1886411294.png)
摘要:【问题】数据库存json数据类型,参数JSONObject/JSONArray类型返回的结果映射为null 【原因】实体类上少加了 autoResultMap = true 参数,导致返回json数据为null 【解决】将这个参数设置为true 就ok了 【结果】
阅读全文
摘要:【原因】JSONObject 使用错了!!!! 不是[JsonObject] ! !!
阅读全文
摘要:【使用】MyBatis-Plus使用FIND_IN_SET函数 FIND_IN_SET 函数是 IN 函数的升级版,功能类似。 区别在于:如果是常量,则可以直接用 IN, 否则要用 FIND_IN_SET() 函数 default List<DeptDO> selectChildrenDeptByP
阅读全文