use of top.tangyh.basic.utils.SpringUtils in project lamp-util by zuihou.
the class UserResolveFeignConfiguration method getSpringUtils.
@Bean
@ConditionalOnMissingBean(SpringUtils.class)
public SpringUtils getSpringUtils(ApplicationContext applicationContext) {
SpringUtils instance = SpringUtils.getInstance();
SpringUtils.setApplicationContext(applicationContext);
return instance;
}
use of top.tangyh.basic.utils.SpringUtils in project lamp-util by zuihou.
the class BaseConfig method getSpringUtils.
// ---------------------------------------序列化配置end----------------------------------------------
/**
* Spring 工具类
*
* @param applicationContext 上下文
*/
@Bean
public SpringUtils getSpringUtils(ApplicationContext applicationContext) {
SpringUtils instance = SpringUtils.getInstance();
SpringUtils.setApplicationContext(applicationContext);
return instance;
}
Aggregations