btiernay
btiernay

Reputation: 8129

What is the recommended way to add first-class command line processing to Spring Boot

Is there something like JCommander support in Spring Boot which provides an annotation based approach to command line argument processing? I'm interested in features such as command line binding, validation and reporting, but also the ability to map these values container managed beans. Is there a suggested integration that would give a similar feel?

I am aware that there is CommandLineRunner and the ability to add to the Environment via command line arguments, but traditional command line processing and reporting seems to not exist.

Upvotes: 1

Views: 596

Answers (1)

Phil Webb
Phil Webb

Reputation: 8622

We don't currently support anything out of the box so you will need to create your own solution to integrate Spring Boot with JCommander. If you have something useful that you think could be incorporated into a future release please raise an issue.

Upvotes: 1

Related Questions