Blog

Page 364 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for Spring RestTemplate GET with parameters
javaspring

Spring RestTemplate GET with parameters

Published on September 2, 2023

๐Ÿ“ **Title:** Making GET Requests with Parameters using Spring RestTemplate ๐Ÿ‘‹ Hey there, tech enthusiasts! Today, we're going to tackle an important question: how to make GET requests with parameters using Spring RestTemplate. This common issue often baf

Cover Image for Difference between applicationContext.xml and spring-servlet.xml in Spring Framework
javaspring

Difference between applicationContext.xml and spring-servlet.xml in Spring Framework

Published on September 2, 2023

# Understanding the Difference between applicationContext.xml and spring-servlet.xml in Spring Framework ๐ŸŒฑ If you're new to the Spring Framework or have been working with it for a while, you might have come across two different XML files: `applicationCon

Cover Image for Spring MVC @PathVariable with dot (.) is getting truncated
springspring-mvc

Spring MVC @PathVariable with dot (.) is getting truncated

Published on September 2, 2023

# Spring MVC @PathVariable with dot (.) is getting truncated: How to Fix It? ๐Ÿ“– **Introduction** If you've been experiencing issues with Spring MVC @PathVariable getting truncated, you're not alone. This problem has been reported by several developers. Ho

Cover Image for Correct way to install psql without full Postgres on macOS?
macos

Correct way to install psql without full Postgres on macOS?

Published on September 2, 2023

# ๐Ÿ’ป Easy Guide: How to Install psql without Full Postgres on macOS Are you tired of installing the whole PostgreSQL package just to get psql on your macOS? Look no further! In this guide, we will walk you through the correct way to install psql without t

Cover Image for Running code after Spring Boot starts
javaspring

Running code after Spring Boot starts

Published on September 2, 2023

# ๐Ÿš€ Running Code After Spring Boot Starts So, you just built your Spring Boot app and now you want to run some code after it starts. Maybe you need to monitor a directory for changes or perform some other important task. Whatever the reason, you're in th

Cover Image for @RequestParam vs @PathVariable
javaspringspring-mvc

@RequestParam vs @PathVariable

Published on September 2, 2023

# RequestParam vs PathVariable: Handling Special Characters ## Understanding the Difference ๐Ÿ”น When working with Spring MVC in Java, we often come across the need to handle special characters in request parameters and path variables. Two commonly used an

Cover Image for Difference between spring @Controller and @RestController annotation
javaspringspring-mvc

Difference between spring @Controller and @RestController annotation

Published on September 2, 2023

# Difference between Spring `@Controller` and `@RestController` Annotation ๐ŸŽฎ๐Ÿ“ก Are you confused about when to use the `@Controller` and `@RestController` annotations in your Spring application? ๐Ÿค” Worry not! In this blog post, we'll dive into the key dif

Cover Image for How to use OrderBy with findAll in Spring Data
springspring-dataspring-data-jpa

How to use OrderBy with findAll in Spring Data

Published on September 2, 2023

# How to use OrderBy with findAll in Spring Data So you want to use the `OrderBy` clause with the `findAll` method in Spring Data to retrieve records in a specific order. You're in luck because Spring Data provides built-in functionality to achieve this.

Cover Image for @Resource vs @Autowired
annotationsdependency-injectionjavaspring

@Resource vs @Autowired

Published on September 2, 2023

# ๐Ÿ“Title: Resource vs Autowired: Which annotation should you use in Dependency Injection? Are you confused about which annotation to choose for Dependency Injection (DI)? ๐Ÿค” You're not alone! The debate between **@Resource** and **@Autowired** has left d

Blog | Matheus Mello