-
-
Save SimonHarmonicMinor/1e93c249e70ea7202c81ea59899eb3a1 to your computer and use it in GitHub Desktop.
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
@Component | |
class ParentService { | |
... | |
@Autowired | |
public void setChildService(ChildService childService) { | |
this.childService = childService; | |
} | |
} | |
@Component | |
class MyService { | |
private ParentService parentService; | |
... | |
public void corruptTheRuntime() { | |
parentService.setChildService(null); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment