Spring Context File Not Found
While working on Spring framework you will have to load context file first to load all bean and framework definition. Sometime while working on Eclise after setting up everything correctly Eclipse will still complain about file not found exception and you will exception similiar as below:
Sample project with cofiguration and resource file structure:
- In this case If you have project structure already set up and you already put context file in classpath or resources folder then right click project –> Properties –> Java Build Path –> Click Source tab then remove both resources and config folder and add back again. This will referesh classpath again and you those classpath issue thould be resolved.
- Sample Java class to load context file:
- For more information please visit Spring tutorial here