Tolerate context root redirect not being configurable on Tomcat 7
Closes gh-13821
This commit is contained in:
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…
Reference in New Issue