Created
June 19, 2020 10:17
-
-
Save anny0739/1fb511b6c277ccd9cdde2eaaac1fb511 to your computer and use it in GitHub Desktop.
CircularReferenceTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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