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

编译报错: FastjsonDataConvertor 找不到 #95

Closed
miozus opened this issue Mar 10, 2025 · 1 comment
Closed

编译报错: FastjsonDataConvertor 找不到 #95

miozus opened this issue Mar 10, 2025 · 1 comment

Comments

@miozus
Copy link

miozus commented Mar 10, 2025

版本:okhttps-fastjson-4.1.0.jar

package cn.zhxu.okhttps.fastjson;

import cn.zhxu.data.fastjson.FastjsonDataConvertor;
import cn.zhxu.okhttps.ConvertProvider;
import cn.zhxu.okhttps.MsgConvertor;

public class FastjsonMsgConvertor extends FastjsonDataConvertor implements MsgConvertor, ConvertProvider {
    public FastjsonMsgConvertor() {
    }

    public String mediaType() {
        return "application/json";
    }

    public MsgConvertor getConvertor() {
        return new FastjsonMsgConvertor();
    }
}

编译报错: FastjsonDataConvertor 找不到

"Unresolved compilation problem: \n\tThe type cn.zhxu.data.fastjson.FastjsonDataConvertor cannot be resolved. It is indirectly referenced from required type cn.zhxu.okhttps.fastjson.FastjsonMsgConvertor\n"
@miozus
Copy link
Author

miozus commented Mar 10, 2025

麻了,缺两个依赖

okhttps ✅ < okhttps-fastjson ✅ < data-fastjosn < data-core

@miozus miozus closed this as completed Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant