刘光辉
14 小时以前 34981c30a78e8bbd7791131059a9210f9928b62c
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 jnpf;
 
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
 
/**
 * 网关启动程序
 *
 * @author jnpf
 */
@Slf4j
@SpringBootApplication
@EnableDiscoveryClient
public class JnpfGatewayApplication {
 
    public static void main(String[] args) {
        SpringApplication.run(JnpfGatewayApplication.class, args);
        // 2026-08-11:原为 System.out.println,不受 logback 管辖——没时间戳没级别没服务名,
        // 且绕开 logback 的 utf-8 encoder(容器 stdout 编码非 UTF-8 时直接变 ??????)。
        // 与 platform/lims/biz-common 的写法对齐。
        // ⚠️ 本条能否出现取决于日志级别:gateway 的 root 是 ERROR(logger.yaml 的 log.level.root,
        // 且没有 jnpf-gateway 条目),所以 config/shared/logger.yaml 里给本类单独开了 INFO。
        log.info("网关启动成功");
    }
 
}