Access from Thymeleaf to class field

前端 未结 1 869
北荒
北荒 2021-01-01 11:38

How to access from Thymeleaf to some simple POJO static property ? For example:

public final static int PROJECT_NAME_MAX_LENGTH = 255;

how

1条回答
  •  春和景丽
    2021-01-01 12:06

    Since you are using Spring, thymeleaf has access to the EL provided by Spring. You should therefore be able to use

    
    

    0 讨论(0)
提交回复
热议问题