-1

How to run a method in Spring Boot when the value of concrete database field changed or it reached a certain level (programmatically)? The user wants to choose which field the method will respond to. Is there any common solution or best practice in Spring Boot?

General Grievance
  • 4,555
  • 31
  • 31
  • 45
  • Seems like you are looking for some opinione based answer. Do add some of your approches you thought of. – surajs1n Jan 25 '19 at 08:51
  • before I begin to invent my own solution, I would like to know if there is already a prepared solution by Spring or Hibernate or at least to indicate how to get started – Roman Mrázek Jan 25 '19 at 14:01

1 Answers1

0

I think what you are looking is reload a bean when the properties which are loading from db is changed. you can use something similar here in this stackoverflow post with ApplicationContextAware in prototype scope.

user51
  • 8,843
  • 21
  • 79
  • 158