Get bean directly from below ways SpringUtil and Registry
SpringUtil.getBean("validationHandler", ValidationHandler.class)
To get the spring bean directly in any of the non available classes .
To get the spring bean directly in any of the non available classes .
Registry.getApplicationContext().getBean("messageSource", MessageSource.class);
Comments
Post a Comment