Blog

Page 347 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for Difference between the annotations @GetMapping and @RequestMapping(method = RequestMethod.GET)
javaspringspring-mvc

Difference between the annotations @GetMapping and @RequestMapping(method = RequestMethod.GET)

Published on September 2, 2023

# Understanding the Difference: @GetMapping vs @RequestMapping(method = RequestMethod.GET) πŸ’‘ If you're new to Spring Reactive or even a seasoned developer, you might have come across the annotations `@GetMapping` and `@RequestMapping(method = RequestMeth

Cover Image for Spring MVC - How to get all request params in a map in Spring controller?
javaspringspring-mvc

Spring MVC - How to get all request params in a map in Spring controller?

Published on September 2, 2023

πŸŒΊπŸ‘‹ Hey there tech enthusiasts! Have you ever found yourself in a situation where you want to capture all the request parameters in a map in your Spring controller, but you don't have access to the parameter names? Fear not! In this blog post, we will dis

Cover Image for Difference between using bean id and name in Spring configuration file
spring

Difference between using bean id and name in Spring configuration file

Published on September 2, 2023

# Understanding the Difference between Bean ID and Name in Spring Configuration 🌱 So you're diving into the world of Spring configuration files and you come across the `<bean>` element. Great! But you notice that there's an `id` attribute and a `name` at

Cover Image for Add context path to Spring Boot application
javaspringspring-mvc

Add context path to Spring Boot application

Published on September 2, 2023

# Adding a Context Path to a Spring Boot Application 🌱 Do you want to set a context root for your Spring Boot application? In other words, you want your app to be accessed from **localhost:port/{app_name}** while having all the controller paths append to

Cover Image for @RequestParam in Spring MVC handling optional parameters
javaspringspring-mvc

@RequestParam in Spring MVC handling optional parameters

Published on September 2, 2023

# Handling Optional Parameters with @RequestParam in Spring MVC Are you struggling with handling optional parameters in your Spring MVC application? Do you want to know how to handle different types of requests in your controllers? Look no further! In thi

Cover Image for How to POST form data with Spring RestTemplate?
javaspring

How to POST form data with Spring RestTemplate?

Published on September 2, 2023

πŸ“πŸ’» **Tech Blog** πŸ”₯πŸ”₯ Title: How to POST form data with Spring RestTemplate: Easy Solutions for Common Issues πŸ”₯πŸ”₯ Hey there tech enthusiasts! πŸ‘‹ Are you struggling with how to properly pass form data using Spring RestTemplate? Look no further! In this

Cover Image for Trigger 404 in Spring-MVC controller?
javaspringspring-mvc

Trigger 404 in Spring-MVC controller?

Published on September 2, 2023

πŸ“ **Title**: 😱 Trigger 404 in Spring-MVC controller? Don't Panic, Here's How! πŸ’‘ **Introduction**: Are you feeling like you're lost in the Spring-MVC wilderness, desperately trying to trigger a 404 error in your controller? Fear not! In this guide, we'

Cover Image for javax.transaction.Transactional vs org.springframework.transaction.annotation.Transactional
hibernatejavaspring

javax.transaction.Transactional vs org.springframework.transaction.annotation.Transactional

Published on September 2, 2023

# Understanding the Difference: javax.transaction.Transactional vs org.springframework.transaction.annotation.Transactional πŸ”„ Are you perplexed by the two annotations, `javax.transaction.Transactional` and `org.springframework.transaction.annotation.Tran

Cover Image for Unable to find a @SpringBootConfiguration when doing a JpaTest
javajunitspringspring-data

Unable to find a @SpringBootConfiguration when doing a JpaTest

Published on September 2, 2023

# "Unable to find a @SpringBootConfiguration" error when doing a JpaTest πŸ€” So, you're trying to run a simple JUnit test to check if your CrudRepositories are working fine. But you keep getting this pesky error: ``` Unable to find a @SpringBootConfigurat

Blog | Matheus Mello