Java 枚举值()方法不可解析

Java 枚举值()方法不可解析,java,spring-boot,thymeleaf,Java,Spring Boot,Thymeleaf,使用Thymleaf+Spring Boot编写一个表片段,我想循环我的enum类来打印头名称 @Getter @AllArgsConstructor 公共枚举索赔列{ 日(“日”,空,空),周(“周”,空,空); 私有字符串名称; 私有函数解析器; 专用函数格式化程序; } 这个编译吗所有argscontrustor拼写错误。也许还是试着把它去掉吧。您还可能需要一个@SetterLombok注释。另外,这是正确的包名吗?用大写字母N?编辑拼写错误。但是创建手动的all args构造函数没有

使用Thymleaf+Spring Boot编写一个表片段,我想循环我的enum类来打印头名称

@Getter
@AllArgsConstructor
公共枚举索赔列{
日(“日”,空,空),周(“周”,空,空);
私有字符串名称;
私有函数解析器;
专用函数格式化程序;
}


这个编译吗<代码>所有argscontrustor
拼写错误。也许还是试着把它去掉吧。您还可能需要一个
@Setter
Lombok注释。另外,这是正确的包名吗?用大写字母
N
?编辑拼写错误。但是创建手动的all args构造函数没有帮助。我认为enum不需要setter,因为所有属性都应该是
final
。包名是正确的(尽管不是常规的),否则错误从一开始就是找不到类。我正在使用IntelliJ IDEA Ultimate,它一直告诉我
无法解析“值”
。但是,代码仍然可以编译和解析枚举值。
        <tr>
            <td th:each="claimColumn: ${ T(com.example.Novoferm.wrapper.ClaimColumn).values() }" \\ <-- Cannot resolve values()
                th:text="${claimColumn.name()}"
            >
            </td>
        </tr>
        <!-- thymeleaf -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-thymeleaf</artifactId>
        </dependency>
        <dependency>
            <groupId>org.thymeleaf.extras</groupId>
            <artifactId>thymeleaf-extras-springsecurity5</artifactId>
        </dependency>