In this article we will see a quick guide for spring boot in java . Spring Boot is the Java Enterprise Framework that makes it easy to create Spring powered applications that are stand-aloneproduction-ready and to create it with a minimum of efforts.

 

If we talk about In spring mvc we need a lot of xml configuration to create a application . As we knew that xml configuration are error prone also . But In spring boot we can create application with minimum effort .

You can create spring boot application just fill simple information using https://start.spring.io .

 

 

Just fill simple details like groupId and Artifact and add dependencies as per your requirement after that click on generate project . i will generate spring boot project and downloaded as zip file . Unzip this project and import in your IDE like eclipse , STS etc. You can follow this How to create spring boot project article for more details .

How to change port in Spring Boot ?

When you run your application in your machine it is used by default 8080 port . You can change it in multiple ways .

Very simple method is just add server.port property in properties file.

server.port = 8090

Now you application run on 8090 port .