java - How to set the checking of initial values in Spring? -


I am applying my first spring, I got a problem, trying for some better organizing:

  • The application of attributes from the spring value of some spring files gets the initial value.
  • Naturally, I've got to check the values.
  • Where do I put limits, against whom I have to check the initial values? These limitations are also the initial value, therefore, they will be in another Spring File Spring Elements. Obviously, it is foolish to keep prices and to be limited in the same file - they are fragments of different levels of information - the boundaries of values ​​are very unstable.
  • Here comes the problem - I value the limitations code, for each property separately it does not look compatible or convenient for me

    Is there any device in the spring , To know which borders are automatically related to the price? If I use asset files instead of spring, it would be trivial, but how to do it in the spring?

    As I see now, I have to tie different boundaries for the value of every value and working with the qualities I can tie the boundaries of value by name, for example X - & gt; Upper x, lowerx and i have to write an inquiry method for all values ​​

    You can check the value limits You can write a method in Java class and use that method as postConstruct. Start your Java Bean You can declare the method for pre-processing using @PostConstruct or init-method or you can start the Bean interface.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -