Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Field filed = GenericApplicationContext.class.getDeclaredField("refreshed");
- filed.setAccessible(true);
- filed.get(((GenericApplicationContext) context))).set(false);
- Stream.of(refreshableBeans).forEach(t -> context.getDefaultListableBeanFactory().destroySingleton(t));
- context.refresh();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement