ClassPathResource classPathResource = new ClassPathResource("template/books.xml");
InputStream inputStream =classPathResource.getInputStream();
InputStream inputStream = Thread.currentThread().getContextClassLoader().getResourceAsStream("template/books.xml");
InputStream inputStream = this.getClass().getResourceAsStream("template/books.xml");
File file = ResourceUtils.getFile("classpath:template/books.xml");
InputStream inputStream = new FileInputStream(file);
File directory = new File("src/main/resources");
String courseFile = directory.getCanonicalPath();
String path = BookController.class.getClass().getResource("/com/scba/modules/book/books.xml").getPath();
String path = ResourceUtils.getFile("src/main/java/com/scba/modules/book/books.xml").getAbsolutePath();