Java, Software Development, Spring, Spring Boot

Spring Boot Call Stored Procedure With Spring Data @Procedure

Although most applications use SQL statements, we may need to call stored procedures instead. For instance, we could reuse existing stored procedures instead of crafting new codes. As a result,

Read More...

Java, Software Development, Spring

Spring Boot Asynchronous Controller Without External Queues

This post shows how to create an asynchronous web controller or endpoint in Spring Boot (or Spring in general). The codes won’t use external queues of any kind. However, they’ll

Read More...

Java, Java Microservices, Spring Boot

Spring Boot Consul Service Discovery And Client Example

This post shows how to use Spring Boot Service Discovery with Consul. We’ll have two Spring Boot applications. One application registers itself with Consul. It then becomes discoverable to another

Read More...

Java Microservices, Microservices, Spring Boot

Spring Boot Consul Distributed Configuration Example

This post shows an example of a Spring Boot application that consumes distributed configuration from a Consul instance in a local development environment setup. We’ll generate a Spring Boot project

Read More...

Java, Software Development, Spring

Read From Multiple Properties Files In Spring Boot

This post demonstrates how to read properties from multiple .properties files in Spring Boot.

Read More...

Java, Software Development, Spring

Spring Boot – How to unit test RESTful API URLs

This post demonstrates how to unit test RESTful API URLs using Spring Boot 1.5.10RELEASE. We basically just want to ensure the list of URLs still work and match what has been documented per specification.

Read More...

Angular, Java, Software Development, Spring

Spring Boot Upload Multiple Files From Angular

This post shows working code fragments that upload files from a web browser.

Read More...

Software Development

Spring Boot – Access Spring ApplicationContext in JUnit Tests

This post shows how to access Spring ApplicationContext object in JUnit tests.

Read More...

Java, Software Development, Spring

Trim String Values From Properties Files in Spring Boot

This post demonstrates how to trim string values from .properties files using SpringApplicationBuilder and a subclass of or anonymous class of StandardEnvironment supplied to the builder with overridden getProperty(String) and getProperty(String, String) methods.

Read More...

Java, Software Development, Spring

Validate Properties Files At Startup in Spring Boot

A .properties file contains lines of string pair. Each string pair consists of a parameter name (called the key), and parameter value. This post is about how to validate the parameter value at the application startup.

Read More...