IDEA设置环境变更

 

 

 

package com;
import lombok.extern.slf4j.Slf4j;

import java.util.Map;

@Slf4j
public class TestIdeaEnv {

    public static void main(String[] args) {
        log.info(" args {} ", String.join(",", args));
        Map<String, String> getenv = System.getenv();
        log.info(" getenv {}  ", getenv);
        log.info(" ENV {} ", getenv.get("ENV"));
    }

}

 

posted @ 2023-08-09 09:29  沧海一滴  阅读(72)  评论(0编辑  收藏  举报