After following different tutorials I came to this code, but when I run it throws exception path must not be null.
@Bean @Scope(value = "step", prox