0

I have some application.properties variables in my config repo and I want to fetch that to my application into a constatnt variable and further the same constatnt variable needs to use at

@Schedued(corn=Myclass.MY_CONSTANT)

I have tried many ways but unable to set value to constant variable from git.

Is it possible to set a java constant using @Value ?

Thanks in adv.

@Value("${test.name}")

public static final String MY_CONSTANT;

kannan
  • 1
  • 2

0 Answers0