Use the command Java-jar Springboot.jar to start the project with the following error:
ExceptioninchThread"Main"Java.lang.StringIndexOutOfBoundsException:String Index outof range:Panax NotoginsengAt java.lang.String.substring (String.java:1963) at Org.springframework.boot.loader.jar.JarFile.createJarFileFromDirectoryEntry (Jarfile.java:278) at Org.springframework.boot.loader.jar.JarFile.createJarFileFromEntry (Jarfile.java:258) at Org.springframework.boot.loader.jar.JarFile.getNestedJarFile (Jarfile.java:248) at Org.springframework.boot.loader.jar.JarFile.getNestedJarFile (Jarfile.java:237) at Org.springframework.boot.loader.archive.JarFileArchive.getNestedArchive (Jarfilearchive.java:103) at Org.springframework.boot.loader.archive.JarFileArchive.getNestedArchives (Jarfilearchive.java: the) at Org.springframework.boot.loader.PropertiesLauncher.addNestedEntries (Propertieslauncher.java:480) at Org.springframework.boot.loader.PropertiesLauncher.getClassPathArchives (Propertieslauncher.java:418) at Org.springframework.boot.loader.Launcher.launch (Launcher.java: the) at Org.springframework.boot.loader.PropertiesLauncher.main (Propertieslauncher.java:521)
The reason is that the Spring boot project, the resources directory, contains Chinese folders, so cause error, So, after the naming of folders and files, it must be best to use English!!!!
Spring boot error Exception in thread ' main ' java.lang.StringIndexOutOfBoundsException:String index out of range:37