【问题标题】:Apache lang3 constants cannot be found找不到 Apache lang3 常量
【发布时间】:2013-12-07 07:03:27
【问题描述】:

我正在尝试使用 apache commons-lang3,使用 maven 3.1 版

org.apache.commons.lang3.StringUtils.SPACE 的结果:

SPACE cannot be resolved or is not a field

我在这里做错了什么?根据文档,应该有一个 SPACE 常量: http://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/StringUtils.html

【问题讨论】:

    标签: java apache


    【解决方案1】:

    您使用的是commons-lang 版本3.1 还是之前的版本?因为SPACE 常量仅在版本3.2 中添加。请参阅JavaDoc

    【讨论】:

    • 天哪,我完全忽略了从那以后。是的,因为 3.2 仍然是 SNAPSHOT 我还没有使用它......
    猜你喜欢
    • 1970-01-01
    • 2018-04-03
    • 2022-06-14
    • 2021-05-20
    • 1970-01-01
    • 1970-01-01
    • 2020-10-29
    • 2012-11-20
    • 2018-04-04
    相关资源
    最近更新 更多