Software Development

Spring Boot – Publish and Consume Custom Application Events

This post demonstrates how to implement the Observer Design Pattern using the facilities made available by Spring Application Events.

Read More...

Software Development, Spring

Spring Boot – Embedded ActiveMQ

This post demonstrates how to embed an ActiveMQ instance in Spring Boot and produce/consume messages with a simple example.

Read More...

Software Development

Spring Boot – How to use @Conditional in your own codes

This post demonstrates how to use the @Conditional annotation which is the workhorse of Spring Boot’s automatic configuration. You may also use this technique in your own codes.

Read More...

Software Development, Spring

Render XML using Thymeleaf

This post demonstrates how to render an XML to a file from a given XML template using Spring Boot and Thymeleaf.

Read More...

Software Development

Create a Spring Boot Application using IntelliJ

This blog post demonstrates how to create Java Spring Boot applications in IntelliJ. As you may not know yet, Spring Boot allows for rapid development of applications. One of the important benefits of using Spring Boot is that it bundles all tested compatible versions of jar files.

Read More...

Software Development

Set all bean Properties with values from .properties file

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

Read More...

Software Development

Exclude Embedded Tomcat in Spring Boot when using Thymeleaf

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.

Read More...

Software Development

Spring Boot, JPA/Hibernate for Java EE 6 Java Persistence API Developer Certified Expert 1Z0-898

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.

Read More...

Software Development

Accessing Embedded in-memory H2 console used in Spring Boot

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.

Read More...

Java, Software Development, Spring

Convert Spring Boot to Deployable WAR for Tomcat

This post demonstrates how to convert your Spring Boot web application to a deployable WAR file for Tomcat.

Read More...