Blog

Page 296 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for setMaxResults for Spring-Data-JPA annotation?
javajpaspringspring-dataspring-data-jpa

setMaxResults for Spring-Data-JPA annotation?

Published on September 2, 2023

πŸ“πŸ”₯βœ¨πŸ’» **Title: Mastering setMaxResults for Spring-Data-JPA Annotation** **Introduction** Are you feeling confused about how to use the `setMaxResults()` method with annotation in Spring-Data-JPA? Don't worry, you're not alone! In this blog post, we wi

Cover Image for @Scope("prototype") bean scope not creating new bean
springspring-mvc

@Scope("prototype") bean scope not creating new bean

Published on September 2, 2023

πŸ“ Blog Post: Why is my @Scope("prototype") Bean not Creating a New Bean? ✨ Introduction ✨ Hey there fellow tech enthusiasts! Have you ever encountered a situation where your annotated prototype bean in your Spring application didn't create a new instanc

Cover Image for Spring Boot Adding Http Request Interceptors
javaspringspring-mvc

Spring Boot Adding Http Request Interceptors

Published on September 2, 2023

# πŸš€ Adding Http Request Interceptors in Spring Boot Are you struggling to find the right way to add HttpRequest interceptors in your Spring Boot application? πŸ€” Do you want to log requests and responses for every HTTP request? You're not alone! Many deve

Cover Image for Is it possible to have empty RequestParam values use the defaultValue?
javaspringspring-mvc

Is it possible to have empty RequestParam values use the defaultValue?

Published on September 2, 2023

# πŸ“ Empty RequestParam values and defaultValue in Spring MVC Are you encountering an error when trying to handle empty request parameter values in your Spring MVC application? πŸ€” Imagine you have a request mapping similar to the following: ```java @Req

Cover Image for How to use JNDI DataSource provided by Tomcat in Spring?
javaspring

How to use JNDI DataSource provided by Tomcat in Spring?

Published on September 2, 2023

# How to Use JNDI DataSource Provided by Tomcat in Spring πŸ‘©β€πŸ’»πŸš€ Have you ever wondered how to efficiently utilize a **JNDI DataSource provided by Tomcat in Spring**? Look no further! We're here to demystify this process and provide you with easy-to-foll

Cover Image for How to shutdown a Spring Boot Application in a correct way?
spring

How to shutdown a Spring Boot Application in a correct way?

Published on September 2, 2023

# How to Shutdown a Spring Boot Application in a Correct Way? 😎πŸ’₯πŸ’‘ So you have built an awesome Spring Boot application that's ready to conquer the world, but now you are wondering how to properly shut it down in a production environment without causing

Cover Image for Can I set null as the default value for a @Value in Spring?
javaspring

Can I set null as the default value for a @Value in Spring?

Published on September 2, 2023

# Can I set null as the default value for a @Value in Spring? πŸ˜• Are you using the **@Value** annotation in Spring and wondering if you can set **null** as the default value? You're not alone! Many developers face this question while working with Spring.

Cover Image for @RequestBody and @ResponseBody annotations in Spring
annotationsjavaspringspring-mvc

@RequestBody and @ResponseBody annotations in Spring

Published on September 2, 2023

πŸ’»πŸ“πŸ”€πŸŒ±πŸŒΌπŸ˜ƒ Welcome to another exciting blog post on our tech journey! πŸŽ‰ Today, we will dive into the πŸŽ‚ world of Spring 3 and explore those mysterious πŸŒ€@RequestBody and @ResponseBody annotations. Have you ever wondered what they are for or how they ca

Cover Image for Content type "application/x-www-form-urlencoded;charset=UTF-8" not supported for @RequestBody MultiValueMap
springspring-mvc

Content type "application/x-www-form-urlencoded;charset=UTF-8" not supported for @RequestBody MultiValueMap

Published on September 2, 2023

πŸ“ **Title: Solving the Unsupported Media Type Error with 'application/x-www-form-urlencoded' in Spring MVC** πŸ‘‹ Hey there! Are you struggling with an error message that says "Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported"?

Cover Image for File inside jar is not visible for spring
classpathjarspring

File inside jar is not visible for spring

Published on September 2, 2023

# Problem: File inside jar is not visible for Spring πŸ€” **Introduction** So, you've encountered a problem where a file inside a jar is not visible for Spring? Don't worry, you're not alone. Many developers face this issue and struggle with finding a solu