Search Results
Showing results for "java"
Latest Articles
Reading a List from properties file and load with Spring annotation @Value
# 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
Why is Spring"s ApplicationContext.getBean considered bad?
# 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
Difference between Role and GrantedAuthority in Spring Security
๐ 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
Spring Boot configure and use two data sources
๐ **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
Type safety: Unchecked cast
# 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>
What"s the difference between Hibernate and Spring Data JPA
## 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
Understanding Spring @Autowired usage
# 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
Spring Boot - How to log all requests and responses with exceptions in single place?
# ๐ 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
What is the difference between putting a property on application.yml or bootstrap.yml in spring boot?
# ๐ 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
How to check String in response body with mockMvc
๐ 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,