Home | 简体中文 | 繁体中文 | 杂文 | Github | 知乎专栏 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏

26.10. env 环境变量

		
neo@MacBook-Pro-M2 ~ % curl -s http://www.netkiller.cn:8080/actuator/env |jq
{
  "activeProfiles": [
    "prod"
  ],
  "propertySources": [
    {
      "name": "server.ports",
      "properties": {
        "local.server.port": {
          "value": "******"
        }
      }
    },
    {
      "name": "commandLineArgs",
      "properties": {
        "logging.file.name": {
          "value": "******"
        },
        "server.port": {
          "value": "******"
        },
        "spring.profiles.active": {
          "value": "******"
        }
      }
    },
    {
      "name": "servletContextInitParams",
      "properties": {}
    },
    {
      "name": "systemProperties",
      "properties": {
        "java.specification.version": {
          "value": "******"
        },
        "sun.jnu.encoding": {
          "value": "******"
        },
        "java.class.path": {
          "value": "******"
        },
        "java.vm.vendor": {
          "value": "******"
        },
        "sun.arch.data.model": {
          "value": "******"
        },
        "java.vendor.url": {
          "value": "******"
        },
        "catalina.useNaming": {
          "value": "******"
        },
        "user.timezone": {
          "value": "******"
        },
        "org.jboss.logging.provider": {
          "value": "******"
        },
        "java.vm.specification.version": {
          "value": "******"
        },
        "os.name": {
          "value": "******"
        },
        "sun.java.launcher": {
          "value": "******"
        },
        "sun.boot.library.path": {
          "value": "******"
        },
        "sun.java.command": {
          "value": "******"
        },
        "jdk.debug": {
          "value": "******"
        },
        "sun.cpu.endian": {
          "value": "******"
        },
        "user.home": {
          "value": "******"
        },
        "user.language": {
          "value": "******"
        },
        "java.specification.vendor": {
          "value": "******"
        },
        "java.version.date": {
          "value": "******"
        },
        "java.home": {
          "value": "******"
        },
        "file.separator": {
          "value": "******"
        },
        "java.vm.compressedOopsMode": {
          "value": "******"
        },
        "line.separator": {
          "value": "******"
        },
        "java.specification.name": {
          "value": "******"
        },
        "java.vm.specification.vendor": {
          "value": "******"
        },
        "FILE_LOG_CHARSET": {
          "value": "******"
        },
        "java.awt.headless": {
          "value": "******"
        },
        "java.protocol.handler.pkgs": {
          "value": "******"
        },
        "sun.management.compiler": {
          "value": "******"
        },
        "java.runtime.version": {
          "value": "******"
        },
        "user.name": {
          "value": "******"
        },
        "stdout.encoding": {
          "value": "******"
        },
        "path.separator": {
          "value": "******"
        },
        "os.version": {
          "value": "******"
        },
        "java.runtime.name": {
          "value": "******"
        },
        "file.encoding": {
          "value": "******"
        },
        "java.vm.name": {
          "value": "******"
        },
        "LOG_FILE": {
          "value": "******"
        },
        "java.vendor.url.bug": {
          "value": "******"
        },
        "java.io.tmpdir": {
          "value": "******"
        },
        "catalina.home": {
          "value": "******"
        },
        "com.zaxxer.hikari.pool_number": {
          "value": "******"
        },
        "java.version": {
          "value": "******"
        },
        "user.dir": {
          "value": "******"
        },
        "os.arch": {
          "value": "******"
        },
        "java.vm.specification.name": {
          "value": "******"
        },
        "PID": {
          "value": "******"
        },
        "CONSOLE_LOG_CHARSET": {
          "value": "******"
        },
        "catalina.base": {
          "value": "******"
        },
        "native.encoding": {
          "value": "******"
        },
        "java.library.path": {
          "value": "******"
        },
        "stderr.encoding": {
          "value": "******"
        },
        "java.vm.info": {
          "value": "******"
        },
        "java.vendor": {
          "value": "******"
        },
        "java.vm.version": {
          "value": "******"
        },
        "sun.io.unicode.encoding": {
          "value": "******"
        },
        "java.class.version": {
          "value": "******"
        },
        "LOGGED_APPLICATION_NAME": {
          "value": "******"
        }
      }
    },
    {
      "name": "systemEnvironment",
      "properties": {
        "HOME": {
          "value": "******",
          "origin": "System Environment Property \"HOME\""
        },
        "PATH": {
          "value": "******",
          "origin": "System Environment Property \"PATH\""
        },
        "JAVA_VERSION": {
          "value": "******",
          "origin": "System Environment Property \"JAVA_VERSION\""
        },
        "JAVA_HOME": {
          "value": "******",
          "origin": "System Environment Property \"JAVA_HOME\""
        },
        "TZ": {
          "value": "******",
          "origin": "System Environment Property \"TZ\""
        },
        "JAVA_OPTS": {
          "value": "******",
          "origin": "System Environment Property \"JAVA_OPTS\""
        },
        "LANG": {
          "value": "******",
          "origin": "System Environment Property \"LANG\""
        },
        "HOSTNAME": {
          "value": "******",
          "origin": "System Environment Property \"HOSTNAME\""
        }
      }
    },
    {
      "name": "Config resource 'class path resource [application-prod.properties]' via location 'optional:classpath:/'",
      "properties": {
        "spring.application.name": {
          "value": "******",
          "origin": "class path resource [application-prod.properties] from watch-1.0-SNAPSHOT.jar - 1:25"
        },
        "spring.datasource.driver-class-name": {
          "value": "******",
          "origin": "class path resource [application-prod.properties] from watch-1.0-SNAPSHOT.jar - 3:37"
        },
        "spring.datasource.url": {
          "value": "******",
          "origin": "class path resource [application-prod.properties] from watch-1.0-SNAPSHOT.jar - 4:23"
        },
        "spring.datasource.username": {
          "value": "******",
          "origin": "class path resource [application-prod.properties] from watch-1.0-SNAPSHOT.jar - 5:28"
        },
        "spring.datasource.password": {
          "value": "******",
          "origin": "class path resource [application-prod.properties] from watch-1.0-SNAPSHOT.jar - 6:28"
        },
        "spring.data.redis.host": {
          "value": "******",
          "origin": "class path resource [application-prod.properties] from watch-1.0-SNAPSHOT.jar - 8:24"
        },
        "spring.data.redis.port": {
          "value": "******",
          "origin": "class path resource [application-prod.properties] from watch-1.0-SNAPSHOT.jar - 9:24"
        },
        "spring.data.redis.password": {
          "value": "******",
          "origin": "class path resource [application-prod.properties] from watch-1.0-SNAPSHOT.jar - 10:28"
        },
        "spring.data.redis.database": {
          "value": "******",
          "origin": "class path resource [application-prod.properties] from watch-1.0-SNAPSHOT.jar - 11:28"
        },
        "spring.data.redis.timeout": {
          "value": "******",
          "origin": "class path resource [application-prod.properties] from watch-1.0-SNAPSHOT.jar - 12:27"
        },
        "aliyun.oss.access_key_id": {
          "value": "******",
          "origin": "class path resource [application-prod.properties] from watch-1.0-SNAPSHOT.jar - 14:26"
        },
        "aliyun.oss.secret_access_key": {
          "value": "******",
          "origin": "class path resource [application-prod.properties] from watch-1.0-SNAPSHOT.jar - 15:30"
        },
        "aliyun.oss.endpoint": {
          "value": "******",
          "origin": "class path resource [application-prod.properties] from watch-1.0-SNAPSHOT.jar - 16:21"
        },
        "aliyun.oss.bucket_name": {
          "value": "******",
          "origin": "class path resource [application-prod.properties] from watch-1.0-SNAPSHOT.jar - 17:24"
        },
        "aliyun.oss.callback_url": {
          "value": "******",
          "origin": "class path resource [application-prod.properties] from watch-1.0-SNAPSHOT.jar - 18:25"
        },
        "mqtt.broker": {
          "value": "******",
          "origin": "class path resource [application-prod.properties] from watch-1.0-SNAPSHOT.jar - 20:13"
        },
        "mqtt.username": {
          "value": "******",
          "origin": "class path resource [application-prod.properties] from watch-1.0-SNAPSHOT.jar - 21:15"
        },
        "mqtt.password": {
          "value": "******",
          "origin": "class path resource [application-prod.properties] from watch-1.0-SNAPSHOT.jar - 22:15"
        },
        "mqtt.topic.prefix": {
          "value": "******",
          "origin": "class path resource [application-prod.properties] from watch-1.0-SNAPSHOT.jar - 23:19"
        },
        "baidu.url": {
          "value": "******",
          "origin": "class path resource [application-prod.properties] from watch-1.0-SNAPSHOT.jar - 25:11"
        },
        "baidu.appid": {
          "value": "******",
          "origin": "class path resource [application-prod.properties] from watch-1.0-SNAPSHOT.jar - 26:13"
        },
        "baidu.apikey": {
          "value": "******",
          "origin": "class path resource [application-prod.properties] from watch-1.0-SNAPSHOT.jar - 27:14"
        },
        "baidu.secretkey": {
          "value": "******",
          "origin": "class path resource [application-prod.properties] from watch-1.0-SNAPSHOT.jar - 28:17"
        },
        "baidu.appsecret": {
          "value": "******",
          "origin": "class path resource [application-prod.properties] from watch-1.0-SNAPSHOT.jar - 29:17"
        },
        "baidu.censor.appid": {
          "value": "******",
          "origin": "class path resource [application-prod.properties] from watch-1.0-SNAPSHOT.jar - 30:20"
        },
        "baidu.censor.appsecret": {
          "value": "******",
          "origin": "class path resource [application-prod.properties] from watch-1.0-SNAPSHOT.jar - 31:24"
        },
        "xfyun.appid": {
          "value": "******",
          "origin": "class path resource [application-prod.properties] from watch-1.0-SNAPSHOT.jar - 33:13"
        },
        "xfyun.stt.apikey": {
          "value": "******",
          "origin": "class path resource [application-prod.properties] from watch-1.0-SNAPSHOT.jar - 34:18"
        },
        "xfyun.stt.length": {
          "value": "******",
          "origin": "class path resource [application-prod.properties] from watch-1.0-SNAPSHOT.jar - 35:18"
        },
        "xfyun.tts.apikey": {
          "value": "******",
          "origin": "class path resource [application-prod.properties] from watch-1.0-SNAPSHOT.jar - 36:18"
        },
        "xfyun.tts.apisecret": {
          "value": "******",
          "origin": "class path resource [application-prod.properties] from watch-1.0-SNAPSHOT.jar - 37:21"
        },
        "xfyun.tts.vcn": {
          "value": "******",
          "origin": "class path resource [application-prod.properties] from watch-1.0-SNAPSHOT.jar - 42:15"
        },
        "xfyun.tts.pitch": {
          "value": "******",
          "origin": "class path resource [application-prod.properties] from watch-1.0-SNAPSHOT.jar - 43:17"
        },
        "xfyun.tts.speed": {
          "value": "******",
          "origin": "class path resource [application-prod.properties] from watch-1.0-SNAPSHOT.jar - 44:17"
        }
      }
    },
    {
      "name": "Config resource 'class path resource [application.properties]' via location 'optional:classpath:/'",
      "properties": {
        "spring.application.name": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 2:25"
        },
        "spring.profiles.active": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 3:24"
        },
        "server.port": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 10:13"
        },
        "spring.servlet.multipart.max-request-size": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 11:43"
        },
        "spring.servlet.multipart.max-file-size": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 12:40"
        },
        "server.tomcat.max-connections": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 13:31"
        },
        "server.tomcat.max-threads": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 14:27"
        },
        "server.tomcat.accept-count": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 15:28"
        },
        "server.tomcat.min-spare-threads": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 16:33"
        },
        "endpoints.metrics.enabled": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 18:27"
        },
        "management.endpoints.jmx.exposure.include": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 19:43"
        },
        "management.endpoints.web.exposure.include": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 20:43"
        },
        "management.endpoints.health.show-details": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 21:42"
        },
        "spring.task.execution.pool.core-size": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 23:38"
        },
        "spring.task.execution.pool.max-size": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 24:37"
        },
        "spring.task.execution.pool.queue-capacity": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 25:43"
        },
        "spring.task.execution.pool.keep-alive": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 26:39"
        },
        "spring.task.execution.pool.allow-core-thread-timeout": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 27:54"
        },
        "spring.task.execution.shutdown.await-termination": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 28:50"
        },
        "spring.task.execution.shutdown.await-termination-period": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 29:57"
        },
        "spring.task.execution.thread-name-prefix": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 30:42"
        },
        "knife4j.enable": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 32:16"
        },
        "knife4j.setting.language": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 33:26"
        },
        "springdoc.swagger-ui.path": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 35:27"
        },
        "springdoc.swagger-ui.tags-sorter": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 36:34"
        },
        "springdoc.swagger-ui.operations-sorter": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 37:40"
        },
        "springdoc.api-docs.path": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 38:25"
        },
        "spring.jpa.open-in-view": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 41:25"
        },
        "spring.jpa.hibernate.ddl-auto": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 43:31"
        },
        "spring.datasource.driver-class-name": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 45:37"
        },
        "spring.datasource.hikari.minimum-idle": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 48:39"
        },
        "spring.datasource.hikari.maximum-pool-size": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 49:44"
        },
        "spring.datasource.hikari.auto-commit": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 50:38"
        },
        "spring.datasource.hikari.idle-timeout": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 51:39"
        },
        "spring.datasource.hikari.max-lifetime": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 52:39"
        },
        "spring.datasource.hikari.connection-timeout": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 53:45"
        },
        "spring.datasource.hikari.connection-test-query": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 54:48"
        },
        "spring.data.redis.lettuce.pool.max-active": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 56:43"
        },
        "spring.data.redis.lettuce.pool.max-wait": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 57:41"
        },
        "spring.data.redis.lettuce.pool.max-idle": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 58:41"
        },
        "spring.data.redis.lettuce.pool.min-idle": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 59:41"
        },
        "spring.cache.type": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 60:19"
        },
        "spring.cache.redis.time-to-live": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 61:33"
        },
        "spring.cache.redis.cache-null-values": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 62:38"
        },
        "stablediffusion.url": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 64:21"
        },
        "stablediffusion.negative_prompt": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 66:0"
        },
        "stablediffusion.sampler_index": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 66:31"
        },
        "stablediffusion.seed": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 67:22"
        },
        "stablediffusion.steps": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 68:23"
        },
        "stablediffusion.width": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 69:23"
        },
        "stablediffusion.height": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 70:24"
        },
        "stablediffusion.cfg_scale": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 71:27"
        },
        "chatgpt.url": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 73:13"
        },
        "chatgpt.username": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 74:18"
        },
        "chatgpt.password": {
          "value": "******",
          "origin": "class path resource [application.properties] from watch-1.0-SNAPSHOT.jar - 75:18"
        }
      }
    }
  ]
}