Blog

Page 326 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for Spring MVC @PathVariable getting truncated
javaspringspring-mvc

Spring MVC @PathVariable getting truncated

Published on September 2, 2023

šŸ–Šļø Hey there tech enthusiasts! šŸ‘‹ Welcome back to my tech blog! In today's post, we're going to tackle a common problem encountered by many developers when using Spring MVC's `@PathVariable` annotation. So, if you've ever faced the issue of your path vari

Cover Image for How to manage REST API versioning with spring?
javaspringspring-mvc

How to manage REST API versioning with spring?

Published on September 2, 2023

# How to Manage REST API Versioning with Spring Are you struggling to find an easy and maintainable way to manage REST API versioning using Spring? Don't worry, we've got you covered! In this blog post, we'll walk you through a common issue faced by devel

Cover Image for Autowiring two beans implementing same interface - how to set default bean to autowire?
javaspringspring-mvc

Autowiring two beans implementing same interface - how to set default bean to autowire?

Published on September 2, 2023

# šŸš€ Autowiring two beans implementing the same interface - how to set default bean to autowire? šŸ¤” Have you ever come across a situation in your Spring application where you have multiple beans implementing the same interface? And you want to set a defau

Cover Image for What is javax.inject.Named annotation supposed to be used for?
dependency-injectionjavaspring

What is javax.inject.Named annotation supposed to be used for?

Published on September 2, 2023

# The Mystery Behind `javax.inject.Named` Annotation šŸ¤” Have you ever stumbled upon the `javax.inject.Named` annotation and wondered what it is used for? šŸ¤·ā€ā™€ļø Fear not, for today we are going to unravel this mystery and provide you with a complete guide

Cover Image for Spring Data JPA map the native query result to Non-Entity POJO
hibernatejpaspringspring-data

Spring Data JPA map the native query result to Non-Entity POJO

Published on September 2, 2023

šŸ“ Spring Data JPA: Mapping Native Query Results to Non-Entity POJOs 🌱 Have you ever faced the challenge of mapping the result of a native query to a Non-Entity POJO in Spring Data JPA? Fear not! In this blog post, we will explore common issues and provi

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?

Blog | Matheus Mello