mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Polishing
This commit is contained in:
parent
7a84a48739
commit
a3f5cbc4a2
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2016 the original author or authors.
|
* Copyright 2012-2017 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -16,6 +16,8 @@
|
|||||||
|
|
||||||
package org.springframework.boot.autoconfigure.jersey;
|
package org.springframework.boot.autoconfigure.jersey;
|
||||||
|
|
||||||
|
import java.nio.charset.Charset;
|
||||||
|
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.Path;
|
import javax.ws.rs.Path;
|
||||||
|
|
||||||
@ -105,7 +107,7 @@ public class JerseyAutoConfigurationServletContainerTests {
|
|||||||
jerseyServlet.setServlet(new ServletContainer());
|
jerseyServlet.setServlet(new ServletContainer());
|
||||||
jerseyServlet.setOverridable(false);
|
jerseyServlet.setOverridable(false);
|
||||||
context.addChild(jerseyServlet);
|
context.addChild(jerseyServlet);
|
||||||
String pattern = UDecoder.URLDecode("/*", "UTF-8");
|
String pattern = UDecoder.URLDecode("/*", Charset.forName("UTF-8"));
|
||||||
context.addServletMappingDecoded(pattern, servletName);
|
context.addServletMappingDecoded(pattern, servletName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user