how to get bean spring code example Example: spring boot get bean @Autowired private ApplicationContext appContext; appContext.getBean(...)