jiazx0107@163.com
2023-11-07 b2c5f439fd7e17deb532f4a77def2c5de71ceaf8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package com.fzzy.gateway;
 
import com.fzzy.gateway.hx2023.service.ApiInitService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Service;
 
import javax.annotation.Resource;
 
/**
 * 配置随系统启动默认配置
 */
@Service
@Slf4j
@Order(value = 2)
public class GatewayRunner implements CommandLineRunner {
 
    @Resource
    private ApiInitService apiInitService;
 
 
    @Override
    public void run(String... args) throws Exception {
        log.info("网关接口随系统启动------------");
    }
 
}