Tagged: #classpath

Spring – Read files from classpath

Spring – Read files from classpath

In this tutorial, we discuss several ways of reading a resource file from classpath in a Spring MVC application. 1- ClassPathResource Using ClassPathResource class provided by Spring Core, you can...

ClassNotFoundException vs NoClassDefFoundError

ClassNotFoundException vs NoClassDefFoundError

ClassNotFoundException and NoClassDefFoundError occur when a required class is not found in the classpath at runtime. In this tutorial, we resolve the conflict between these 2 exceptions and explain the different...