79432110

Date: 2025-02-12 06:19:08
Score: 0.5
Natty:
Report link

Try to define messageFilePath and cacheInSeconds with their @Value as parameters of the bean creation method, so that they are not late initalized. Not sure it helps, but at least it would make the dependencies clear to Spring.

Of course it is a bad pattern to put dependencies in a static field...

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Florian H.