java报错Environment is set to null. Because it is not available in either (1) JVM system property ‘env

最近java程序在运行的时候又报错了

Environment is set to null. Because it is not available in either (1) JVM system property 'env', (2) OS env variable 'ENV' nor (3) property 'env' from the properties InputStream.

解决办法:
可能是配置文件application.yml出现问题,有一些该注释的内容没有被注释掉
比如下面的内容
java报错Environment is set to null. Because it is not available in either (1) JVM system property ‘env_第1张图片
这里是QA没有注释掉,但是它程序不会给你报没注释掉,而是报环境没有启动起来m

你可能感兴趣的:(java学习笔记,java,jvm,python)