This code sample shows how to use Dependency Injection in Cucumber within a Spring Boot application.
mvn -q spring-boot:run
The server will be available in http://localhost:8090/things
mvn -q test -Dcucumber.filter.tags="not @wip"
Then see the report in target/cucumber/bag.html
You can find the complete instructions on this post at The Practical Developer site: Cucumber Tests in Spring Boot with Dependency Injection