| | |
| | | package com.fzzy.gateway; |
| | | import com.fzzy.api.service.ApiCommonService; |
| | | import com.fzzy.api.service.ApiTriggerService; |
| | | import com.fzzy.api.service.GbCheckItemService; |
| | | |
| | | import com.fzzy.gateway.sc2023.api.ApiInitService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.boot.CommandLineRunner; |
| | | import org.springframework.core.annotation.Order; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * 配置随系统启动默认配置 |
| | |
| | | @Order(value = 2) |
| | | public class GatewayRunner implements CommandLineRunner { |
| | | |
| | | @Resource |
| | | private ApiInitService apiInitService; |
| | | |
| | | |
| | | @Override |
| | | public void run(String... args) throws Exception { |
| | |
| | | |
| | | |
| | | //四川网关接口,启动默认获取鉴权信息,长期有效 |
| | | apiInitService.init(); |
| | | |
| | | |
| | | } |