improve spring config