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...
In any web application, there exists a folder named WebContent that automatically holds .class and jar files. When running a web application in eclipse or when deploying a war file to an...
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...
In this tutorial we show how Spring Boot serves static resources like (html, js, css) in a web application. 1- Default path for static resources By default Spring Boot serves...