Understanding Zero-day Exploit of Log4j Security Vulnerability and Solution (CVE-2021-44228, CVE-2021-45046)
Introduction On 9th December 2021, an industry-wide vulnerability was discovered…
January 14, 2022
In this post, we will see multiple ways to use @PackageScan
annotation.
@ComponentScan("com.mypackage1")
@ComponentScan({"com.mypackage1", "com.mypackage2"})
@ComponentScan(basePackageClasses = {MyClass1.class, MyClass2.class})
This way is type-safe.
@ComponentScan(basePackages={"com.mypackage1", "com.mypackage2"})
@ComponentScans(value = {
@ComponentScan("com.mypackage1"),
@ComponentScan("com.mypackage2")
})
See another post, where we write on Fixing Autowire Bean Not Found
Introduction On 9th December 2021, an industry-wide vulnerability was discovered…
Suppose you have two lists, and you want Union and Intersection of those two…
Its good to write unit tests cases, and this part is mostly forgotten by…
Introduction I was trying to integrate Okta with Spring, and when I deploy the…
Introduction In a Spring boot app, we tend to use annotation, so that Spring…
Introduction Java log4j has many ways to initialize and append the desired…
Introduction In this post we will see following: How to schedule a job on cron…
Introduction There are some cases, where I need another git repository while…
Introduction In this post, we will see how to fetch multiple credentials and…
Introduction I have an automation script, that I want to run on different…
Introduction I had to write a CICD system for one of our project. I had to…
Introduction Java log4j has many ways to initialize and append the desired…