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