0

I am using SpringBootApplication

I have used org.springframework.core.io.ClassPathResource for getting file from the project classpath like shown below

File file = new ClassPathResource("File1").getFile();

My files are in the resources folder

This is working fine in the Spring STS. I get IO Exception when I export my project as WAR and deploy it in the TOMCAT container (Project folder structure changes when it is exported to WAR).

What is the work around for this issue?

PRATHAP S
  • 675
  • 2
  • 8
  • 26

0 Answers0