Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]: class java.lang.String cannot be converted to class com.oddfar.campus.common.domain.entity.SysDictDataEntity #352

Open
3 tasks done
jlzq1314 opened this issue Apr 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jlzq1314
Copy link

请确保您已阅读以上注意事项,并勾选下方的确认框。

  • 我已确认我已升级到最新版本(最新代码)测试过,问题依旧存在。
  • 我已经在 Issue Tracker 中找过我要提出的问题,没有找到相同问题的ISSUE。
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

campus框架版本

1.1.9

本项目 campus-imaotai 版本

1.0.13

运行环境

CentOS

运行架构

ARM [64] (别名:AArch64 / ARMv8)

问题描述

点击任何链接出现JSON序列化错误,例如下:

GlobalExceptionHandler.java:64 |请求地址'/system/dict/data/type/sys_user_sex',发生未知异常.

com.alibaba.fastjson2.JSONException: class java.lang.String cannot be converted to class com.oddfar.campus.common.domain.entity.SysDictDataEntity
at com.alibaba.fastjson2.JSONArray.toList(JSONArray.java:1054)
at com.oddfar.campus.common.utils.DictUtils.getDictCache(DictUtils.java:40)
at com.oddfar.campus.framework.service.impl.SysDictTypeServiceImpl.selectDictDataByType(SysDictTypeServiceImpl.java:44)
at com.oddfar.campus.framework.service.impl.SysDictTypeServiceImpl$$FastClassBySpringCGLIB$$bed9f927.invoke()

QQ截图20240419160722

期望的结果是什么?

不出现错误

简单的复现代码/链接(可选)

No response

日志记录(可选)

No response

补充说明(可选)

MYSQL禁用SSL,不知道是否与此有关

@jlzq1314 jlzq1314 added the bug Something isn't working label Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant