The instructions in this article apply to WMS, WFS, and WCS web services created with the Java Servlet-based API of the OGC Web Server Suite. For an explanation, see Configure a WFS server, Configure a WMS server or Configure a WCS server.

When you developed your own WMS, WFS, or WCS web service, you need to integrate it with a web server to run and use it. The typical approach for Java Servlet-based applications is to package the code as a WAR file and deploy it in a servlet container, like Eclipse Jetty or Apache Tomcat.

An alternative approach, without a container, is to run your web services with Spring Boot. Spring Boot is an open-source, Java-based framework that is widely used to build stand-alone and production-ready Spring applications. It directly works with Java Servlets. As such, it’s ideally suited for use in combination with the OGC Web Server Suite.

Follow these steps to integrate your web services with Spring Boot:

  1. Annotate the servlets of your web services (TLcdWFSServlet, TLcdWMSServlet or TLcdWCSServlet) with an @WebServlet annotation. You annotate a servlet by creating a new class that extends from the servlet, and adding the annotation to it.

  2. Create a Spring Boot configuration class with the following annotations:

    • @SpringBootApplication: triggers automatic configuration of Spring Boot

    • @ServletComponentScan: registers your web services with Spring Boot

  3. Create a main method — possibly in the Spring Boot configuration class itself — and delegate to SpringApplication.run(YourSpringBootConfigurationClass.class, args).