mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
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 gh-3315
This commit is contained in:
parent
42e230192f
commit
e033daed0f
@ -53,7 +53,7 @@ public class RunMojo extends AbstractRunMojo {
|
||||
throws MojoExecutionException {
|
||||
IsolatedThreadGroup threadGroup = new IsolatedThreadGroup(startClassName);
|
||||
Thread launchThread = new Thread(threadGroup, new LaunchRunner(startClassName,
|
||||
arguments), startClassName + ".main()");
|
||||
arguments), "main");
|
||||
launchThread.setContextClassLoader(new URLClassLoader(getClassPathUrls()));
|
||||
launchThread.start();
|
||||
join(threadGroup);
|
||||
|
Loading…
Reference in New Issue
Block a user