I've been facing the problem of Circular dependency in spring.
Public class UserServiceImpl implements UserService{
@Autowired
private RoleService roleService;
}
Public class RoleServiceImpl implements RoleService{
@Autowired
private UserService userService;
}
Is there any solution to deal with this problem, But I still want to use @Autowired. Other solutions might be to wire them manually. Or by using bean awares or by using bean post processor.