We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I write a demo to support META-INF/resources in jar jar and jsp.
META-INF/resources
https://github.com/hengyunabc/spring-boot-fat-jar-jsp-sample
When start the demo with -Dtomcat.staticResourceCustomizer.enabled=false
-Dtomcat.staticResourceCustomizer.enabled=false
java -Dtomcat.staticResourceCustomizer.enabled=false -jar jsp-start/target/jsp-start-0.0.1-SNAPSHOT.jar
http://localhost:8080/ 404
http://localhost:8080/hello-from-common ok
The root reason is that LaunchedURLClassLoader urls do not contains the fat jar.
LaunchedURLClassLoader
The parent of LaunchedURLClassLoader is AppClassLoader, which urls contains the fat jar
AppClassLoader
The text was updated successfully, but these errors were encountered:
Duplicate of #8324.
Also, please note that we don't support the use of JSPs in fat jars. You should use a war file instead.
Sorry, something went wrong.
No branches or pull requests
I write a demo to support
META-INF/resources
in jar jar and jsp.https://github.com/hengyunabc/spring-boot-fat-jar-jsp-sample
When start the demo with
-Dtomcat.staticResourceCustomizer.enabled=false
http://localhost:8080/ 404
http://localhost:8080/hello-from-common ok
The root reason is that
LaunchedURLClassLoader
urls do not contains the fat jar.The parent of
LaunchedURLClassLoader
isAppClassLoader
, which urls contains the fat jarThe text was updated successfully, but these errors were encountered: