mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Polish
This commit is contained in:
parent
03352b0a8c
commit
fa6a1463d0
@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
package smoketest.jetty.jsp;
|
package smoketest.jetty.jsp;
|
||||||
|
|
||||||
|
import org.eclipse.jetty.server.AllowedResourceAliasChecker;
|
||||||
import org.eclipse.jetty.server.handler.ContextHandler;
|
import org.eclipse.jetty.server.handler.ContextHandler;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
@ -59,7 +60,7 @@ class SampleWebJspApplicationTests {
|
|||||||
JettyServerCustomizer jettyServerCustomizer() {
|
JettyServerCustomizer jettyServerCustomizer() {
|
||||||
return (server) -> {
|
return (server) -> {
|
||||||
ContextHandler handler = (ContextHandler) server.getHandler();
|
ContextHandler handler = (ContextHandler) server.getHandler();
|
||||||
handler.addAliasCheck((path, resource) -> true);
|
handler.addAliasCheck(new AllowedResourceAliasChecker(handler));
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user