Learn about the “Failed to Load ApplicationContext” error message when running Junit tests with the Spring Controller, and how to fix it.
Also find me here:
Baeldung Author
Hamid Reza Sharifi
I’m an experienced Software Engineer with a demonstrated history of working in the computer software industry. I received my Ph.D. degree in Computer Software Engineering from Islamic Azad University, Science And Research Branch in 2018. Over the past few years, I have been working mainly on projects built around Java, Spring Boot, Agile Methodologies, REST API, Microservice, and Keycloak IAM. Also, I’m very interested in learning new technologies and the latest practices in the industry.
Here's what I've written (so far):
Baeldung on Java
- All
- Spring Boot (10)
- Security (8)
- Spring Security (4)
- Testing (2)
- Spring (2)
- REST (2)
- Logging (2)
- Java IO (2)
- Java (2)
- Architecture (2)
- Spring Web (1)
- Spring Data (1)
- Spring Cloud (1)
- Persistence (1)
- Docker (1)
HMAC in Java
Filed under Security
Learn how to work with the HMAC algorithm in Java.
Writing Log Data to Syslog Using Log4j2
Filed under Logging, Spring Boot
Learn to write log data to Syslog using Log4j2 and Spring Boot.
Swagger @Api Description Is Deprecated
Filed under REST
Learn alternatives to the deprecated description attribute with Swagger 2 and OpenAPI 3.
Getting the Java Version at Runtime
Filed under Java
Learn to find the Java version at runtime.
TLS Setup in Spring
Learn how to set up TLS in Spring.
Get All Endpoints in Spring Boot
Filed under REST, Spring Boot
Learn to find all endpoints for a Spring Boot REST application.
Insert a Row in Excel Using Apache POI
Filed under Java IO
Learn how to inser a new row between two rows in an Excel file using the Apache POI library
Prevent Cross-Site Scripting (XSS) in a Spring Application
Filed under Spring Security
When writing a web service in Spring we need to create a custom filter in order to protect our services from cross-site scripting attacks. We explore how to achieve this using ESAPI and Jsoup.
Baeldung on Linux
- All
- Security (1)
- Processes (1)
- Networking (1)
- Network Monitoring (1)
- File Permissions (1)
Listing All DNS Records in a Domain Using dig
Filed under Network Monitoring
A quick and practical guide to using dig for listing all DNS records in a domain.
Configuring DNS in the resolv.conf File
Filed under Networking
Learn multiple ways to configure DNS in Linux.
Change Permissions for a Folder and All Its Content in Linux
Filed under File Permissions
Learn to change permissions for a folder and all its content in Linux.
Get Process ID of Linux Foreground and Background Processes
Filed under Processes
Learn to find the process ID of Linux foreground and background processes.
HTTPS Connection Using Curl
Filed under Security
Learn to make an HTTPS connection using curl.