Использовать ограничения, динамически отправляемые телом API ⇐ JAVA
-
Anonymous
Использовать ограничения, динамически отправляемые телом API
I make the constraint provider implementation class as component Spring and i inject it in the controller also i make a configuration bean implementation of ConstraintFactory and i inject it also in my controlleur.In the web service i fetch all constraints using constraintProvider and constraintFactory , i filter this constraints with the data body from the web service an i set constraint in the constraintProvider implementation class but it still use all constraints due to the defineConstraints method which i think execuded once in the execution of project. how i do dynamic constraints with Spring boot and Timefold also i want an exemple of code how i do that i read some stack-overflow's questions:
Optaplanner : Add / remove constraints dynamically
How to choose dynamically which constraints should be applied on the optimization problem based on the frontend input in Timefold Spring Boot?
I want an exemple of code. How i make dynamic constraints?
Источник: https://stackoverflow.com/questions/781 ... -apis-body
I make the constraint provider implementation class as component Spring and i inject it in the controller also i make a configuration bean implementation of ConstraintFactory and i inject it also in my controlleur.In the web service i fetch all constraints using constraintProvider and constraintFactory , i filter this constraints with the data body from the web service an i set constraint in the constraintProvider implementation class but it still use all constraints due to the defineConstraints method which i think execuded once in the execution of project. how i do dynamic constraints with Spring boot and Timefold also i want an exemple of code how i do that i read some stack-overflow's questions:
Optaplanner : Add / remove constraints dynamically
How to choose dynamically which constraints should be applied on the optimization problem based on the frontend input in Timefold Spring Boot?
I want an exemple of code. How i make dynamic constraints?
Источник: https://stackoverflow.com/questions/781 ... -apis-body
Мобильная версия