main spring config & main method were coupled