Can someone explain me how do i read my jrxml as inputstream under my static resources.
This is my resigtered resource path
registry.addResourceHandler("/resources/**").addResourceLocations("WEB-INF/resources/");
under resources i have reports folder, under reports folder i have samplereport.jrxml
i use these codes but it always throws filenotfound exception
Resource resource = new ClassPathResource("/reports/samplereport.jrxml");
InputStream resourceInputStream = resource.getInputStream();
I tried this and moved my samplereport.jrxml at the same path of my class and it work.
InputStream employeeReportStream
= this.getClass().getResourceAsStream("/samplereport.jrxml");
But i dont want to work on this way. Thank you in advance.