Monday , November 20 2017

Recent Posts

May, 2017

  • 17 May

    How to convert Java Map to JSON

    Here I am going to show you how to convert a Java Map to JSON format using Jackson. Java Map to JSON : In the previous tutorials we have seen how to convert a Java object to JSON string, you can see the dependencies of Jackson their. Here I am …

    Read More »
  • 17 May

    How to convert JSON to Java Object Example

    Here I am going to show you how to convert JSON to Java Object using Jackson. JSON to Java object : In the previous tutorials we have seen how to convert a Java object to JSON string, you can see the dependencies of Jackson their. JSON to Java object Reading …

    Read More »
  • 14 May

    How to Find Duplicate Words Count in a File

    In this tutorial, I am going to show you the most important question in Java Interview. How to find duplicate words count in a file. Input : Give a Text file with duplicate words like below : Output : Find Duplicate Words Count in a File : Recommended : try …

    Read More »
  • 3 May

    Types of Spring Bean Scopes Example

    In this tutorials, I am going to show you different types of Spring Bean Scopes with simple examples. Spring Bean Scopes : In spring we have 5 different types of bean scopes. We can define the bean scope in spring configuration file using scope attribute in <bean> tag or we …

    Read More »
  • 3 May

    Spring MVC Tiles Example (Apache Tiles)

    In this tutorials, I am going to show you how to work with Spring MVC With Apache Tiles. Spring MVC Tiles : Spring MVC Tiles are mostly used combination. Apache Tiles is a templating framework helpful to minimize the development effort of web application (Spring, Struts) user interfaces. Technologies Used …

    Read More »
  • 2 May

    Hibernate Right Join Example

    In this tutorial, we are going to show you how to work with Hibernate Right Join. What is Right Join ? Right Join is a keyword in SQL. Which returns all the data from right hand side (table2) and matched records from left hand side table (table1). We can see …

    Read More »
  • 2 May

    Hibernate Left Join Example

    In this tutorials, I am going to show you how to work with Hibernate Left Join. What is Left Join ? The Left Join is a keyword in SQL, which returns all data from the left hand side table and matched records from right hand side table. We can see …

    Read More »
  • 1 May

    How to install Maven on Ubuntu 14.x

    In this tutorials, I am going to show you how to install Maven on Ubuntu 14.x. Maven on Ubuntu 14.x : Unlike installing the maven on windows versions, it is not necessary to download the maven zip from external resources. We can easily install the maven using basic linux commands. …

    Read More »
  • 1 May

    Spring Boot How to change the Tomcat to Jetty Server

    In this tutorial, I am going to show you how to change the Tomcat to Jetty Server with Spring Boot. Tomcat to Jetty Server : Tomcat is the embedded default server coming with Spring Boot. To change the Tomcat to Jetty server, we should change the dependencies in pom.xml like …

    Read More »
  • 1 May

    STS Gradle Setup Tutorials

    Today I am going to show you how to setup Gradle in STS (Spring Tool Sute). STS Gradle : We can install the Gradle in STS using the STS Dashboard. To install the Gradle in STS we need to have the below requirements. Requirements : The STS version should be …

    Read More »
  • 1 May

    How To Change Spring Boot Context Path

    In this tutorials, I am going to show you how to change the Spring Boot Context path. Spring Boot Context Path  : Like changing the server port in spring boot, to change the context path in Spring Boot we have 3 ways. Lets see the above 3 scenarios one by …

    Read More »

April, 2017

  • 30 April

    How to change Spring Boot Tomcat Port Number

    In this tutorials, I am going to show you how to change the Spring Boot Tomcat Port number. In the previous tutorials I have shown you how to create a simple Spring Boot Hello World application with default port (8080).  You can download the application and make the below changes. …

    Read More »
  • 30 April

    Spring Boot FileUpload Ajax Example

    In this tutorials, we are going to see how to work with Spring Boot Fileupload using Jquery Ajax. Spring Boot FileUpload : We can upload all types of files like text, pdf, img and videos in spring using MultipartFile interface. The MultipartFile is a representation of an uploaded file received in …

    Read More »
  • 23 April

    How to Rotate Elements in List

    In this example tutorials, I am going to show you how to rotate elements in List. Rotate Elements in List : We can rotate elements in Java.util.List by using the Collections.rotate(List<?> list, int distance) method. The Collections.rotate(List<?> list,int distance) method rotates the elements in the given list by the given distance. Happy …

    Read More »
  • 23 April

    How to Shuffle an Array using Java

    In this example, I am going to show  you how to shuffle an array using Java. Shuffle an Array : We can shuffle an array in Java using shuffle(List<?> list) method. shuffle(List<?> list) is a static method coming from java.util.Collections class used to shuffle the given array elements. Recommended : …

    Read More »