Search Results

Showing results for "java"

Latest Articles

Cover Image for Reading a List from properties file and load with Spring annotation @Value
javaspring

Reading a List from properties file and load with Spring annotation @Value

Published on September 2, 2023

# Reading a List from Properties File and Loading with Spring Annotation @Value So you want to have a list of values in a `.properties` file and load it directly into your class using Spring annotation `@Value`. You're wondering if there's a way to do thi

Cover Image for Why is Spring"s ApplicationContext.getBean considered bad?
javaspring

Why is Spring"s ApplicationContext.getBean considered bad?

Published on September 2, 2023

# Why is Spring's `ApplicationContext.getBean()` considered bad? ๐Ÿคจ So you're diving into the world of Spring, configuring beans left and right, and you stumble upon this answer on Stack Overflow claiming that calling `ApplicationContext.getBean()` is a b

Cover Image for Difference between Role and GrantedAuthority in Spring Security
javaspringspring-mvc

Difference between Role and GrantedAuthority in Spring Security

Published on September 2, 2023

๐ŸŒŸ Understanding the Difference between Role and GrantedAuthority in Spring Security ๐ŸŒŸ Are you feeling puzzled by the concepts of "Role" and "GrantedAuthority" in Spring Security? Don't worry, you're not alone! Many developers find it confusing and treat

Cover Image for Spring Boot configure and use two data sources
javaspringspring-mvc

Spring Boot configure and use two data sources

Published on September 2, 2023

๐Ÿ“ **Blog Post: Spring Boot - Configure and Use Two Data Sources** ๐Ÿ‘‹ Hey there tech enthusiasts! Today, let's dive into a common question: "How can I configure and use two data sources in Spring Boot?" If you're facing this challenge, worry not! We've go

Cover Image for Type safety: Unchecked cast
javaspring

Type safety: Unchecked cast

Published on September 2, 2023

# Type safety: Unchecked cast - What's the Deal? ๐Ÿ˜ฎ So you're working on your Java project, feeling all confident and mighty, when suddenly you come across this pesky warning in Eclipse: **Type safety: Unchecked cast from Object to HashMap<String,String>

Cover Image for What"s the difference between Hibernate and Spring Data JPA
hibernatejavajpaspringspring-data-jpa

What"s the difference between Hibernate and Spring Data JPA

Published on September 2, 2023

## Understanding the Differences: Hibernate vs Spring Data JPA ๐ŸŒŸ Hey there, tech enthusiasts! ๐Ÿ‘‹ Are you feeling a tad perplexed about the differences between Hibernate and Spring Data JPA? Fear not, for we've got your back! In this blog post, we'll dive

Cover Image for Understanding Spring @Autowired usage
javaspring

Understanding Spring @Autowired usage

Published on September 2, 2023

# Understanding Spring @Autowired Usage Do you find yourself scratching your head when trying to understand how to use the `@Autowired` annotation in the Spring framework? You're not alone! Many developers struggle with the same question. But fear not, th

Cover Image for Spring Boot - How to log all requests and responses with exceptions in single place?
javaspring

Spring Boot - How to log all requests and responses with exceptions in single place?

Published on September 2, 2023

# ๐Ÿ“ How to Log All Requests and Responses with Exceptions in a Single Place with Spring Boot Are you working on a REST API with Spring Boot? Do you need to log all requests, including input parameters, methods, and responses, in a single place? If so, th

Cover Image for What is the difference between putting a property on application.yml or bootstrap.yml in spring boot?
javaspring

What is the difference between putting a property on application.yml or bootstrap.yml in spring boot?

Published on September 2, 2023

# ๐Ÿš€ The Difference Between application.yml and bootstrap.yml in Spring Boot Are you confused about where to put your properties in Spring Boot? ๐Ÿค” Don't worry, you're not alone! In this blog post, we'll explore the differences between the `application.ym

Cover Image for How to check String in response body with mockMvc
javamockingspring

How to check String in response body with mockMvc

Published on September 2, 2023

๐Ÿ”Ž How to check String in response body with mockMvc? ๐Ÿ“ So you're working on an integration test using mockMvc and you want to check if a specific string is present in the response body. You've tried a few things but haven't had any success. Don't worry,