Simple Solution
  • Java
  • Spring
  • Spring Boot
  • Tutorials
  • Tags
Java Convert classpath resource JSON File to Java Object using Gson
Java Convert classpath resource JSON File to Java Object using Gson

In this Java Gson tutorial, we show you how to read a JSON file from classpath resources and convert the JSON content to Java object using the Gson library and Apache Commons IO library. By different Java example programs we learn how to convert JSON content to a HashMap, a List of Map, an object of a custom defined class or a List of objects.

Java Get the URL of Classpath Resource using Apache Commons IO
Java Get the URL of Classpath Resource using Apache Commons IO

In this Java tutorial, we learn how to get the URL of a classpath resource using the IOUtils class of Apache Commons IO library.

Java Read Classpath Resource as String using Apache Commons IO
Java Read Classpath Resource as String using Apache Commons IO

In this Java tutorial, we learn how to read a classpath resource into a String using the IOUtils class of Apache Commons IO library.

Java Read Classpath Resource as Byte Array using Apache Commons IO
Java Read Classpath Resource as Byte Array using Apache Commons IO

In this Java tutorial, we learn how to read a classpath resource into a byte array using the IOUtils class of Apache Commons IO library.

Copyright © 2019 SimpleSolution.dev. All Rights Reserved.