普通Java工程如何在代码中引用中的environment值

时间:2025-04-04 22:20:19
2024-07-06 15:34:16.345 [main] INFO - ------------------------------ 2024-07-06 15:34:16.421 [main] INFO - =:: -> ::\ 2024-07-06 15:34:16.421 [main] INFO - =D: -> D:\ 2024-07-06 15:34:16.421 [main] INFO - ALLUSERSPROFILE -> C:\ProgramData 2024-07-06 15:34:16.422 [main] INFO - APPDATA -> C:\Users\00fly\AppData\Roaming 2024-07-06 15:34:16.422 [main] INFO - COMPUTERNAME -> 7t9lppye5cj7lud 2024-07-06 15:34:16.423 [main] INFO - ChocolateyInstall -> C:\ProgramData\chocolatey 2024-07-06 15:34:16.424 [main] INFO - ChocolateyLastPathUpdate -> 133608643383155797 2024-07-06 15:34:16.424 [main] INFO - ComSpec -> C:\Windows\system32\ 2024-07-06 15:34:16.424 [main] INFO - CommonProgramFiles -> C:\Program Files\Common Files 2024-07-06 15:34:16.425 [main] INFO - CommonProgramFiles(x86) -> C:\Program Files (x86)\Common Files 2024-07-06 15:34:16.425 [main] INFO - CommonProgramW6432 -> C:\Program Files\Common Files 2024-07-06 15:34:16.425 [main] INFO - DokanLibrary1 -> C:\Program Files\Dokan\Dokan Library-1.4.1\ 2024-07-06 15:34:16.426 [main] INFO - DokanLibrary1_LibraryPath_x64 -> C:\Program Files\Dokan\Dokan Library-1.4.1\lib\ 2024-07-06 15:34:16.426 [main] INFO - DokanLibrary1_LibraryPath_x86 -> C:\Program Files\Dokan\Dokan Library-1.4.1\x86\lib\ 2024-07-06 15:34:16.426 [main] INFO - DriverData -> C:\Windows\System32\Drivers\DriverData 2024-07-06 15:34:16.427 [main] INFO - FPS_BROWSER_APP_PROFILE_STRING -> Internet Explorer 2024-07-06 15:34:16.427 [main] INFO - FPS_BROWSER_USER_PROFILE_STRING -> Default 2024-07-06 15:34:16.427 [main] INFO - HOMEDRIVE -> C: 2024-07-06 15:34:16.428 [main] INFO - HOMEPATH -> \Users\00fly 2024-07-06 15:34:16.428 [main] INFO - LOCALAPPDATA -> C:\Users\00fly\AppData\Local 2024-07-06 15:34:16.428 [main] INFO - LOGONSERVER -> \\7t9lppye5cj7lud 2024-07-06 15:34:16.429 [main] INFO - NODE_PATH -> D:\nodejs 2024-07-06 15:34:16.429 [main] INFO - NUMBER_OF_PROCESSORS -> 4 2024-07-06 15:34:16.429 [main] INFO - OS -> Windows_NT 2024-07-06 15:34:16.429 [main] INFO - PATHEXT -> .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC 2024-07-06 15:34:16.429 [main] INFO - PROCESSOR_ARCHITECTURE -> AMD64 2024-07-06 15:34:16.429 [main] INFO - PROCESSOR_IDENTIFIER -> Intel64 Family 6 Model 85 Stepping 7, GenuineIntel 2024-07-06 15:34:16.430 [main] INFO - PROCESSOR_LEVEL -> 6 2024-07-06 15:34:16.430 [main] INFO - PROCESSOR_REVISION -> 5507 2024-07-06 15:34:16.430 [main] INFO - PSModulePath -> C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules 2024-07-06 15:34:16.430 [main] INFO - PUBLIC -> C:\Users\Public 2024-07-06 15:34:16.431 [main] INFO - Path -> C:/Java/eclipse//plugins/.win32.x86_64_17.0.9.v20231028-0858/jre/bin/server;C:/Java/eclipse//plugins/.win32.x8 6_64_17.0.9.v20231028-0858/jre/bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\Git\cmd;C:\Program Files\TortoiseGit\bin;C:\Java\apache-maven-3.9.6\bin;C:\Ja va\jdk1.8.0\bin;C:\Program Files (x86)\NetSarang\Xshell 7\;C:\Program Files (x86)\NetSarang\Xftp 7\;C:\ProgramData\chocolatey\bin;D:\nodejs\;D:\nodejs;D:\nodejs\node_modules;D:\nodejs\node_global;C:\Users\00fly\AppData\Local\Microsoft\WindowsApps;D:\nodejs\node_gl obal;D:\Programs\Microsoft VS Code\bin;C:\Java\eclipse; 2024-07-06 15:34:16.431 [main] INFO - ProgramData -> C:\ProgramData 2024-07-06 15:34:16.431 [main] INFO - ProgramFiles -> C:\Program Files 2024-07-06 15:34:16.432 [main] INFO - ProgramFiles(x86) -> C:\Program Files (x86) 2024-07-06 15:34:16.433 [main] INFO - ProgramW6432 -> C:\Program Files 2024-07-06 15:34:16.433 [main] INFO - SESSIONNAME -> Console 2024-07-06 15:34:16.433 [main] INFO - SystemDrive -> C: 2024-07-06 15:34:16.433 [main] INFO - SystemRoot -> C:\Windows 2024-07-06 15:34:16.434 [main] INFO - TEMP -> C:\Users\00fly\AppData\Local\Temp\1 2024-07-06 15:34:16.434 [main] INFO - TMP -> C:\Users\00fly\AppData\Local\Temp\1 2024-07-06 15:34:16.434 [main] INFO - USERDOMAIN -> 7T9LPPYE5CJ7LUD 2024-07-06 15:34:16.435 [main] INFO - USERDOMAIN_ROAMINGPROFILE -> 7T9LPPYE5CJ7LUD 2024-07-06 15:34:16.435 [main] INFO - USERNAME -> 00fly 2024-07-06 15:34:16.435 [main] INFO - USERPROFILE -> C:\Users\00fly 2024-07-06 15:34:16.435 [main] INFO - classPath -> .;C:\Java\jdk1.8.0\lib 2024-07-06 15:34:16.436 [main] INFO - java_home -> C:\Java\jdk1.8.0 2024-07-06 15:34:16.436 [main] INFO - maven_home -> C:\Java\apache-maven-3.9.6 2024-07-06 15:34:16.437 [main] INFO - windir -> C:\Windows 2024-07-06 15:34:16.440 [main] INFO - ------------------------------ 2024-07-06 15:34:16.526 [pool-2-thread-1] INFO - jdbc:mysql://127.0.0.1:3306/jdbc?useSSL=false&useUnicode=true&characterEncoding=utf-8&createDatabaseIfNotExist=true 2024-07-06 15:34:16.527 [pool-2-thread-1] INFO - root 2024-07-06 15:34:16.528 [pool-2-thread-1] INFO - root123