Limited | Setting | Effect | 中文描述 |
Java 8 | -Xbootclasspath:<path> | Sets the search path for bootstrap classes and resources. | 設置引導類和資源的搜索路徑。 不常用,否則要重新寫所有Java 核心class |
Java 8 | -Xbootclasspath/p:<path> | Prepends the specified resources to the front of the bootstrap class path. | 將指定的資源放在引導類路徑的前面。一般用來增加jar內除外的配置,增加的配置會被jar中的配置文件覆蓋。 不常用,避免
|
Java 8 | -Xbootclasspath/a:<path> | Appends the specified resources to the end of the bootstrap class path. | 將指定的資源附加到引導類路徑的末尾。 一般用來覆蓋jar內原有的配置。 |
如
java -jar -Xbootclasspath/a:./config /ccc.jar param1 param2
來源:
-Xbootclasspath