Skip to content

在SwaggerFilter中抛出了ClassNotFoundException #4

@DevilHeS

Description

@DevilHeS

当程序运行到这里时
c fnhqres01h5 9velx

clz的格式大概是

“com/xxx/xxx”

就会抛出 ClassNotFoundException , 然后我在

Class.forName(clz);

之前添加了

clz = clz.replaceAll("/", ".");
clz = clz.replaceAll("\\", ".");

这样就一切正常了!

我不知道 你本意就是把路径变成 xxx/xxx 这样的格式, 还是这是一个疏漏

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions