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

Hutool.getAllUtils() 获取不到 Base64 等工具类 #3484

Closed
fanthos opened this issue Feb 6, 2024 · 3 comments
Closed

Hutool.getAllUtils() 获取不到 Base64 等工具类 #3484

fanthos opened this issue Feb 6, 2024 · 3 comments
Labels

Comments

@fanthos
Copy link
Contributor

fanthos commented Feb 6, 2024

版本情况

JDK版本: openjdk_8
hutool版本: 5.8.25

问题描述(包括截图)

Hutool.getAllUtils() 获取不到 Base64 等工具类。

比如给工具类加上一个Util注解,或者写一个cn.hutool.core.codec.CodecUtil.Base64来指向Base64就可以解决这个问题

  1. 复现代码
cn.hutool.Hutool#printAllUtils
  1. 堆栈信息

  2. 测试涉及到的文件(注意脱密)

比如报错的Excel文件,有问题的图片等。

@looly
Copy link
Member

looly commented Feb 7, 2024

哈哈,感谢意见。

不过Hutool这个类属于玩具类,你可以看下逻辑,只是列出了所有XXXUtil,并没有其它复杂工具类。

@looly looly closed this as completed Feb 7, 2024
@looly looly added the question label Feb 7, 2024
@fanthos
Copy link
Contributor Author

fanthos commented Feb 7, 2024

对,看过逻辑了。代码结构比较简单,不过目前好像没办法区分哪些是工具类和普通类。

@looly
Copy link
Member

looly commented Feb 9, 2024

@fanthos XXXUtil是复杂工具类的快捷入口,以这个为主。

复杂工具类主要是提供了更多灵活的方法,避免工具类方法参数太多。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants