Quantcast
Viewing latest article 2
Browse Latest Browse All 2

Access from Thymeleaf to constants (without spring)

How to access from Thymeleaf to constant?

public final static int SOME_CONSTANT = 255;

I am using the following code:

@com.company.project.classWithConstants@SOME_CONSTANT

And I am getting the following exception:

com/company/project/classWithConstants (wrong name: com/company/project/ClassWithConstants)

(There is a similar question at SO, but OP is using spring: Access from Thymeleaf to class field)


Viewing latest article 2
Browse Latest Browse All 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>