import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;
Resource data = new ClassPathResource(fileName);
return new String(FileCopyUtils.copyToByteArray(data.getFile()));
spring-core:4.3.6.RELEASE
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;
Resource data = new ClassPathResource(fileName);
return new String(FileCopyUtils.copyToByteArray(data.getFile()));
spring-core:4.3.6.RELEASE