Springockito make beans references problems in some cases
I was testing Springockito and everything was fine, but after use mockito:spy in a service, spring throws
Bean with name 'userService' has been injected into other beans [goalService] in its raw version as part of a circular reference, but has eventually been wrapped. This means that said other beans do not use the final version of the bean. This is often the result of over-eager type matching - consider using 'getBeanNamesOfType' with the 'allowEagerInit' flag turned off, for example.
If i don't use springockito, spring doesn't have any problem.