added /health into servlet mapping
This commit is contained in:
parent
a991055fd6
commit
fb6857a984
|
@ -8,6 +8,5 @@
|
||||||
<exclude>/srv/docs/*</exclude>
|
<exclude>/srv/docs/*</exclude>
|
||||||
<exclude>/srv/api-docs/*</exclude>
|
<exclude>/srv/api-docs/*</exclude>
|
||||||
<exclude>/srv/health</exclude>
|
<exclude>/srv/health</exclude>
|
||||||
<exclude>/srv/health/*</exclude>
|
|
||||||
</application>
|
</application>
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@ public class GeoPortalService extends ResourceConfig {
|
||||||
registerClasses(ProfiledDocuments.class);
|
registerClasses(ProfiledDocuments.class);
|
||||||
registerClasses(UseCaseDescriptors.class);
|
registerClasses(UseCaseDescriptors.class);
|
||||||
registerClasses(Plugins.class);
|
registerClasses(Plugins.class);
|
||||||
registerClasses(GeoportalHealth.class);
|
//registerClasses(GeoportalHealth.class);
|
||||||
// registerClasses(DocsGenerator.class);
|
// registerClasses(DocsGenerator.class);
|
||||||
|
|
||||||
log.info("Setting implementations .. ");
|
log.info("Setting implementations .. ");
|
||||||
|
|
|
@ -1,11 +1,13 @@
|
||||||
<web-app>
|
<web-app>
|
||||||
<servlet>
|
<servlet>
|
||||||
<servlet-name>org.gcube.application.geoportal.service.GeoPortalService</servlet-name>
|
<servlet-name>org.gcube.application.geoportal.service.GeoPortalService
|
||||||
|
</servlet-name>
|
||||||
<servlet-class>org.glassfish.jersey.servlet.ServletContainer
|
<servlet-class>org.glassfish.jersey.servlet.ServletContainer
|
||||||
</servlet-class>
|
</servlet-class>
|
||||||
<init-param>
|
<init-param>
|
||||||
<param-name>javax.ws.rs.Application</param-name>
|
<param-name>javax.ws.rs.Application</param-name>
|
||||||
<param-value>org.gcube.application.geoportal.service.GeoPortalService</param-value>
|
<param-value>org.gcube.application.geoportal.service.GeoPortalService
|
||||||
|
</param-value>
|
||||||
</init-param>
|
</init-param>
|
||||||
<init-param>
|
<init-param>
|
||||||
<param-name>jersey.config.server.provider.classnames</param-name>
|
<param-name>jersey.config.server.provider.classnames</param-name>
|
||||||
|
@ -27,9 +29,14 @@
|
||||||
<servlet-name>default</servlet-name>
|
<servlet-name>default</servlet-name>
|
||||||
<url-pattern>/api-docs/*</url-pattern>
|
<url-pattern>/api-docs/*</url-pattern>
|
||||||
</servlet-mapping>
|
</servlet-mapping>
|
||||||
|
<servlet-mapping>
|
||||||
|
<servlet-name>default</servlet-name>
|
||||||
|
<url-pattern>/health</url-pattern>
|
||||||
|
</servlet-mapping>
|
||||||
|
|
||||||
<servlet-mapping>
|
<servlet-mapping>
|
||||||
<servlet-name>org.gcube.application.geoportal.service.GeoPortalService</servlet-name>
|
<servlet-name>org.gcube.application.geoportal.service.GeoPortalService
|
||||||
|
</servlet-name>
|
||||||
<url-pattern>/srv/*</url-pattern>
|
<url-pattern>/srv/*</url-pattern>
|
||||||
</servlet-mapping>
|
</servlet-mapping>
|
||||||
</web-app>
|
</web-app>
|
Loading…
Reference in New Issue