@Bean
	public FilterRegistrationBean<?> jerseyFilterRegistration(ResourceConfig eurekaJerseyApp) {
		FilterRegistrationBean<Filter> bean = new FilterRegistrationBean<>();
		ServletContainer servletContainer = new ServletContainer(eurekaJerseyApp);
		bean.setFilter(servletContainer);
		bean.setOrder(Ordered.LOWEST_PRECEDENCE);
		bean.setUrlPatterns(Collections.singletonList(EurekaConstants.DEFAULT_PREFIX + "/*"));

		return bean;
	}
Register the Jersey filter.
@param eurekaJerseyApp an {@link Application} for the filter to be registered
@return a jersey {@link FilterRegistrationBean}
spring-cloud-netflix-eureka-server/src/main/java/org/springframework/cloud/netflix/eureka/server/EurekaServerAutoConfiguration.java