Many alternatives are available to configure your Spring app.
I’d like to list them in this post, leaving Spring Boot out of the picture on purpose.
In this tutorial, we’ll use the New Project Wizard in IntelliJ IDEA to create a Spring Boot project with the Spring Web dependency.
We’ll also create a Spring Controller and served some text to the local Tomcat webserver.
Finally, we’ll add a test for our HTTP call.
Igor De Souza shares on his blog a lot fun and inspirational experiments with Java on Raspberry Pi. Some of those were already shared here on Foojay.io.
This time we want to highlight his work which combines a web app made with Spring and Thymeleaf, to control an LCD display connected to a Raspberry PI.
With Azul Zulu OpenJDK 15, for this post I did some experiments with Java 15, reusing the Ubuntu 64bit SD card which was also used for my earlier post “Startup Speed of Spring and Quarkus JARs on the Raspberry Pi”.
Do you need to switch from OpenJDK 11 to 15? No, not really, based on these results. But each new version has bug and security fixes, new features, and generic improvements!
For my book “Getting Started with Java on Raspberry Pi”, an example was described to store sensors and measurements in an H2-database through REST APIs with a Spring application on the Raspberry Pi.
The application takes some time to start on a Raspberry Pi, and Adam Bien who does the airhacks.fm podcast, asked me if I could compare this to a similar Quarkus application, which resulted in some nice results.