refactoring spring-boot configuration