| package com.zy.acs.gateway.config; | 
|   | 
| import com.zy.acs.framework.common.SpringUtils; | 
| import org.springframework.beans.factory.annotation.Autowired; | 
| import org.springframework.context.ApplicationContext; | 
| import org.springframework.context.annotation.Configuration; | 
|   | 
| import javax.annotation.PostConstruct; | 
|   | 
| /** | 
|  * Created by vincent on 2023/3/14 | 
|  */ | 
| @Configuration | 
| public class BeanFacConfig { | 
|   | 
|     @Autowired | 
|     private ApplicationContext applicationContext; | 
|   | 
|     @PostConstruct | 
|     public void handleInitSpringCtx() { | 
|         SpringUtils.init(applicationContext); | 
|     } | 
|   | 
| } |