I’ve recently started using Spring Shell for rapidly experimenting with consuming data from a series of APIs I had created.
I have become allergic to XML configuration for Spring applications in recent times, so I was disappointed to see a lack of support for Java configuration within Spring Shell.
However, I did find a JIRA issue tracking the feature request. The ticket creator had even submitted a pull request with a potential solution. However, Spring Shell lead Mark Pollack responded that the feature could be provided in a simpler manner and even provided guidance to the solution.
Implementing this solution seemed quite straightforward, so I gave it a go and it turned out well.
I’ve submitted the following pull request to the Spring Shell GitHub repository: SHL-106: Java Configuration support #66