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("网关启动成功");
|
}
|
|
}
|