This post demonstrates how to convert your Spring Boot web application to a deployable WAR file for Tomcat. Continue Reading
When an embedded in-memory H2 database is used with Spring Boot, your data can be accessed via H2’s web console available in your application. If you are using Spring Security, you may need to exclude the /h2-console URL from the authentication process.
Please be aware that this type of configuration is not ideal for production. I’d recommend it only for prototyping. Continue Reading
This post demonstrates how to render an XML to a file from a given XML template using Spring Boot and Thymeleaf. Continue Reading
If you are planning to take Java EE 6 Java Persistence API Developer Certified Expert (1Z0-898), this post is for you. It demonstrates how to create a sample application using Spring Boot, and JPA/Hibernate to aid in your study. Continue Reading
This post demonstrates how to exclude the embedded tomcat dependencies in Spring Boot when using only Thymeleaf. Usually, we wouldn’t think that these dependencies are included when we haven’t selected the “Web” module in the Spring Initialzr. Continue Reading
The Flyweight design pattern can be summarized in three (3) words – minimize and share. In fact, I would label it as “minimize-and-share”. It makes it easier to remember and relate to the actual solution. Continue Reading
This post demonstrates how to set all the bean properties with values from .properties file using Spring Boot. We are not going to set them one at a time. We want to set them all at the same time using the following Spring annot Continue Reading
Previously, I posted Void methods and Mockito in Java that verifies if any of the methods of a object passed as a argument were invoked. This time we want to alter the behavior of a method that returns void. Continue Reading
I’m working on some personal project that handles 4 different user types (e.g., students, instructors, registrar employees, security personnel). Each user type are stored in a separate user table. With this, I require four (4) login forms. Continue Reading
In Java, you can extend from another interface using the extends keyword. But Java 8 has default methods. What happens if we extend another interface that has the same default methods as our interface?
It gets re-declared in the “child” interface. Continue Reading