package com.mini.capi.model.info;

import lombok.Builder;
import lombok.Data;

import java.io.Serializable;

@Data
@Builder  // 生成构建者模式代码
public class RuntimeInfo implements Serializable {

    private String appName;

    private Integer serverPort;

    private String[] activeProfiles; // 支持多环境

    private String springBootVersion;

    private String jdkVersion;


    public RuntimeInfo(String appName, Integer serverPort, String[] activeProfiles, String springBootVersion, String jdkVersion) {
        this.appName = appName;
        this.serverPort = serverPort;
        this.activeProfiles = activeProfiles;
        this.springBootVersion = springBootVersion;
        this.jdkVersion = jdkVersion;
    }
}
