Clarify init params in Jersey autoconfig (only servlet and filter)
See gh-3557
This commit is contained in:
parent
7bc5322034
commit
2985b0e9d8
|
|
@ -26,7 +26,6 @@ import javax.servlet.ServletContext;
|
|||
import javax.servlet.ServletException;
|
||||
import javax.ws.rs.ApplicationPath;
|
||||
|
||||
import org.glassfish.jersey.CommonProperties;
|
||||
import org.glassfish.jersey.server.ResourceConfig;
|
||||
import org.glassfish.jersey.servlet.ServletContainer;
|
||||
import org.glassfish.jersey.servlet.ServletProperties;
|
||||
|
|
@ -131,8 +130,6 @@ public class JerseyAutoConfiguration implements WebApplicationInitializer {
|
|||
}
|
||||
|
||||
private void addInitParameters(RegistrationBean registration) {
|
||||
registration.addInitParameter(CommonProperties.METAINF_SERVICES_LOOKUP_DISABLE,
|
||||
"true");
|
||||
for (Entry<String, String> entry : this.jersey.getInit().entrySet()) {
|
||||
registration.addInitParameter(entry.getKey(), entry.getValue());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ public class JerseyProperties {
|
|||
private Type type = Type.SERVLET;
|
||||
|
||||
/**
|
||||
* Init parameters to pass to Jersey.
|
||||
* Init parameters to pass to Jersey via the servlet or filter.
|
||||
*/
|
||||
private Map<String, String> init = new HashMap<String, String>();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue