Spring Java Based Configuration for warehouse