Skip to content

Commit e033dae

Browse files
committed
Use standard name for main thread
DevTools look for a main thread named "main". The maven plugin is actually using a different value and there is no real reason to. This change fixes DevTools support as long as forking is enabled. See spring-projectsgh-3315
1 parent 42e2301 commit e033dae

File tree

1 file changed

+1
-1
lines changed
  • spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven

1 file changed

+1
-1
lines changed

spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/RunMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ protected void runWithMavenJvm(String startClassName, String... arguments)
5353
throws MojoExecutionException {
5454
IsolatedThreadGroup threadGroup = new IsolatedThreadGroup(startClassName);
5555
Thread launchThread = new Thread(threadGroup, new LaunchRunner(startClassName,
56-
arguments), startClassName + ".main()");
56+
arguments), "main");
5757
launchThread.setContextClassLoader(new URLClassLoader(getClassPathUrls()));
5858
launchThread.start();
5959
join(threadGroup);

0 commit comments

Comments
 (0)