tried to use spring configuration