Blog

Page 294 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for How to accept Date params in a GET request to Spring MVC Controller?
datejavaspringspring-mvc

How to accept Date params in a GET request to Spring MVC Controller?

Published on September 2, 2023

# How to Accept Date Params in a GET Request to Spring MVC Controller? 📅 So, you're trying to send a date in the format `YYYY-MM-DD` to your Spring MVC Controller via a GET request, but you're encountering an error, and you're not sure what you're doing

Cover Image for How to read values from properties file?
spring

How to read values from properties file?

Published on September 2, 2023

# 📖 How to Read Values from Properties File? Are you stuck trying to figure out how to read values from a properties file in your Spring application? Don't worry, we've got you covered! In this guide, we'll walk you through a simple and effective approac

Cover Image for download a file from Spring boot rest service
javaspring

download a file from Spring boot rest service

Published on September 2, 2023

# Downloading a File from a Spring Boot Rest Service: Common Issues and Solutions 📥 Are you trying to download a file from a Spring Boot REST service but facing issues? Don't worry, we've got you covered! In this blog post, we'll explore common problems

Cover Image for How to parameterize @Scheduled(fixedDelay) with Spring 3.0 expression language?
annotationsjavaspring

How to parameterize @Scheduled(fixedDelay) with Spring 3.0 expression language?

Published on September 2, 2023

📝 **How to Parameterize @Scheduled(fixedDelay) with Spring 3.0 Expression Language?** Do you want to set the `fixedDelay` parameter of the `@Scheduled` annotation in Spring 3.0 from your configuration file instead of hard-wiring it into your task class?

Cover Image for How do I call the default deserializer from a custom deserializer in Jackson
hibernatejavaspring

How do I call the default deserializer from a custom deserializer in Jackson

Published on September 2, 2023

# Calling the Default Deserializer from a Custom Deserializer in Jackson 🧩 So, you're facing a problem in your custom deserializer in Jackson. You want to access the default deserializer to populate the object you're deserializing into, before performing

Cover Image for Why would I use Scala/Lift over Java/Spring?
javaspring

Why would I use Scala/Lift over Java/Spring?

Published on September 2, 2023

# Why would I use Scala/Lift over Java/Spring? 🤔 Are you torn between Scala/Lift and Java/Spring for your next project? Wondering if Scala/Lift can provide you with real advantages over the familiar Java/Spring duo? Fear not, my tech-savvy friend, for I

Cover Image for Using Spring MVC Test to unit test multipart POST request
springspring-mvcunit-testing

Using Spring MVC Test to unit test multipart POST request

Published on September 2, 2023

# 🚀 Unit Testing Multipart POST Requests with Spring MVC Test 🚀 So, you've got this awesome Spring MVC application and you want to write some unit tests for your multipart POST requests. You're in the right place! In this blog post, we'll walk you throu

Cover Image for Spring Expression Language (SpEL) with @Value: dollar vs. hash ($ vs. #)
dependency-injectionspring

Spring Expression Language (SpEL) with @Value: dollar vs. hash ($ vs. #)

Published on September 2, 2023

# Spring Expression Language (SpEL) with @Value: dollar vs. hash ($ vs. #) Are you confused about when to use `${...}` compared to `#{...}` in Spring's Expression Language (SpEL)? You're not alone! Spring's documentation mainly uses `#{...}`, but there ar

Cover Image for Spring @PropertySource using YAML
spring

Spring @PropertySource using YAML

Published on September 2, 2023

# 🌸 Spring @PropertySource using YAML: A YAMLicious Solution 🌸 Are you getting tangled up when trying to use YAML for your Spring Boot configuration files? 😖 Don't worry, you're not alone! Many developers encounter issues, especially when it comes to u

Cover Image for Programmatically shut down Spring Boot application
javaspring

Programmatically shut down Spring Boot application

Published on September 2, 2023

# 🛑 Shutting Down a Spring Boot Application Programmatically 🛑 So, you've built an awesome Spring Boot application and now you want to gracefully shut it down programmatically, without terminating the VM? Well, you've come to the right place! In this bl