Skip to content

Instantly share code, notes, and snippets.

@anny0739
Created June 19, 2020 10:17
Show Gist options
  • Save anny0739/1fb511b6c277ccd9cdde2eaaac1fb511 to your computer and use it in GitHub Desktop.
Save anny0739/1fb511b6c277ccd9cdde2eaaac1fb511 to your computer and use it in GitHub Desktop.
CircularReferenceTest.java
@Service
public class AService {
@Autowired
private BService bService;
public void doSomething() {
bService.doSomething();
}
}
@Service
public class BService {
@Autowired
private AService aService;
public void doSomething() {
aService.doSomething();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment