apply Spring and bean configuration