Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@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