DEV Community

Discussion on: Best practice in SpringBatch

Collapse
 
scottshipp profile image
scottshipp

I think I have found it. Addin a run.arguments property to the command seems to do the trick:

mvn spring-boot:run -Drun.arguments="key1=value1, key2=value2"
Enter fullscreen mode Exit fullscreen mode
Thread Thread
 
laurentld79 profile image
Laurent Dumas

I have edited the post with some best practice I think are good. If you have time, tell me about it.
I have intention to make a sample project on github, but.. just need time to do it outside of daily work :p

Thread Thread
 
scottshipp profile image
scottshipp

By the way, I found that Baeldung has a couple recent articles about it and they include a companion repository in GitHub with a sample application. Here is one of them.

Thread Thread
 
laurentld79 profile image
Laurent Dumas

yep, thanks!