Skip to content

Commit

Permalink
Replace the outdated JarLauncher classpath with the new one #1353
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesChenX committed Dec 13, 2023
1 parent 6b8af4e commit 162afb2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion turms-gateway/dist/bin/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ JVM_OPTIONS+=" ${TURMS_GATEWAY_JVM_OPTS}"

MAIN_CLASS="im.turms.gateway.TurmsGatewayApplication"
if [ "$USE_FAT_JAR" = true ]; then
MAIN_CLASS="org.springframework.boot.loader.JarLauncher"
MAIN_CLASS="org.springframework.boot.loader.launch.JarLauncher"
fi

# Create necessary dirs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class PluginClassLoader extends URLClassLoader {
* or as a thin jar, the main class is the concrete class of
* {@link BaseTurmsApplication}, the plugin parent class loader is the system class
* loader. But when running in a fat jar, the main class is
* {@link org.springframework.boot.loader.JarLauncher}, the plugin parent class loader
* {@link org.springframework.boot.loader.launch.JarLauncher}, the plugin parent class loader
* is {@link org.springframework.boot.loader.LaunchedURLClassLoader}.
*/
private static final ClassLoader PARENT_CLASS_LOADER = PluginClassLoader.class.getClassLoader();
Expand Down
2 changes: 1 addition & 1 deletion turms-service/dist/bin/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ JVM_OPTIONS+=" ${TURMS_SERVICE_JVM_OPTS}"

MAIN_CLASS="im.turms.service.TurmsServiceApplication"
if [ "$USE_FAT_JAR" = true ]; then
MAIN_CLASS="org.springframework.boot.loader.JarLauncher"
MAIN_CLASS="org.springframework.boot.loader.launch.JarLauncher"
fi

# Create necessary dirs
Expand Down

0 comments on commit 162afb2

Please sign in to comment.