use of cn.hutool.extra.spring.SpringUtil in project chao-cloud by chaojunzi.
the class SpringConfig method springContextUtil.
/**
* 全局spring容器
*
* @param applicationContext {@link ApplicationContext}
* @return {@link SpringUtil}
*/
@Bean
@Order(value = Integer.MIN_VALUE)
public SpringUtil springContextUtil(ApplicationContext applicationContext) {
SpringUtil util = new SpringUtil();
util.setApplicationContext(applicationContext);
return util;
}
Aggregations