I\'m currently working on a Vaadin spring application. According to the app specifications, authentication/authorization of the users must be completed by querying database
I also faced same problem today. I used @Lazy in the constructor of one class and it solved my problem:
lang-java
public class AService {
private BService b;
public ApplicantService( @NonNull @Lazy BService b){
this.b=b;
}
}
public class BService {
private AService a;
public ApplicantService( @NonNull BService a){
this.a=a;
}
}