mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-15 01:07:30 +08:00
Merge branch '2.6.x' into 2.7.x
This commit is contained in:
commit
39e230b5d6
@ -16,6 +16,7 @@
|
||||
|
||||
package smoketest.jetty.jsp;
|
||||
|
||||
import org.eclipse.jetty.server.AllowedResourceAliasChecker;
|
||||
import org.eclipse.jetty.server.handler.ContextHandler;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
@ -59,7 +60,7 @@ class SampleWebJspApplicationTests {
|
||||
JettyServerCustomizer jettyServerCustomizer() {
|
||||
return (server) -> {
|
||||
ContextHandler handler = (ContextHandler) server.getHandler();
|
||||
handler.addAliasCheck((path, resource) -> true);
|
||||
handler.addAliasCheck(new AllowedResourceAliasChecker(handler));
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user