You have annotation config in this context. Please use corresponding @PostConstruct annotation instead of init-method.