Spring Boot Web Application¶
A basic example of a Spring Boot web application is available in the JODConverter Samples repository; the spring-boot-webapp module.
This is a sample web application that uses the spring boot integration module, jodconverter-spring-boot-starter, with the local module jodconverter-local-lo library of the JODConverter project, which means the jodconverter-local built with the LibreOffice dependencies.
Running the project using Gradle¶
First, build the project:
gradlew :samples:spring-boot-webapp:build
Then, run:
gradlew :samples:spring-boot-webapp:bootRun
If you experience a connection issue on Windows, you may have to set a system property pointing to a templateProfileDir where OpenGL is disabled by default. Read this to know how to disable OpenGL. Then, run:
gradlew :samples:spring-boot-webapp:bootRun -Dorg.jodconverter.local.manager.templateProfileDir=<path to your directory>
Once started, use your favorite browser and visit this page:
http://localhost:8080/
Happy conversions!!