java.lang.NoClassDefFoundError: org/bouncycastle/crypto/generators/SCrypt

While encoding your password/data with SCryptPasswordEncoder, you might be getting the below exception: java.lang.NoClassDefFoundError: org/bouncycastle/crypto/generators/SCrypt at org.springframework.security.crypto.scrypt.SCryptPasswordEncoder.digest(SCryptPasswordEncoder.java:195) ~[spring-security-crypto-6.0.3.jar:6.0.3] at org.springframework.security.crypto.scrypt.SCryptPasswordEncoder.encode(SCryptPasswordEncoder.java:150) […]

Continue reading...

JsonMapperException: No JsonMapper class is found

You might have faced the below exception org.jobrunr.utils.mapper.JsonMapperException: No JsonMapper class is found. Make sure you have either Jackson, Gson […] Continue reading »

Spring @RestControllerAdvice Annotation Example

Spring Framework, with its extensive support for building RESTful APIs, offers a convenient way to handle exceptions using the @RestControllerAdvice […] Continue reading »

Java throw and throws Keywords

In this blog post, we will explore the purpose and usage of Java’s throw and throws keywords. Java provides two […] Continue reading »

Java Stream map() vs flatMap() Method

Java Stream is a powerful feature introduced in Java 8 that allows developers to process collections of data in a […] Continue reading »

Java Heap Memory vs Stack Memory: Understanding the Differences

On this page, we will explore the differences between Java Heap Memory vs Stack Memory and understand the difference. Java’s […] Continue reading »

Top 5 React Hooks

React hooks were introduced in version 16.8 to manage the state of React applications. Hooks provide a more elegant and […] Continue reading »

How to consume REST APIs in React using Axios

Axios is a popular JavaScript library that simplifies the process of making HTTP requests, including REST API calls, in React. […] Continue reading »

How to call a REST API in React

In modern web development, integrating REST APIs into our React applications is a common requirement. REST APIs enable us to […] Continue reading »

Setup a React Development Environment and Getting Started

React has gained immense popularity among developers for its efficient and flexible JavaScript library for building attractive user interfaces. To […] Continue reading »

Different ways to convert an Entity to a DTO in Java

In Java development, it is common to separate the concerns of the Data Layer (entity) and the presentation layer (DTO […] Continue reading »

Does Spring Boot automatically close database connection?

Yes, Spring Boot can automatically manage and close database connections for you. Spring Boot provides integration with various database technologies […] Continue reading »

1 6 7 8 9 10 44