Tolerate context root redirect not being configurable on Tomcat 7

Closes gh-13821
pull/14801/head
Andy Wilkinson 6 years ago
parent 7a000e68cd
commit 124705080b

@ -1049,7 +1049,12 @@ public class ServerProperties
@Override
public void customize(Context context) {
context.setMapperContextRootRedirectEnabled(redirectContextRoot);
try {
context.setMapperContextRootRedirectEnabled(redirectContextRoot);
}
catch (NoSuchMethodError ex) {
// Tomcat 7. Continue.
}
}
});

Loading…
Cancel
Save