Square CSS

Showing posts with label SpringBoot tutorials. Show all posts
Showing posts with label SpringBoot tutorials. Show all posts

Thursday, October 18, 2018

SpringApplication

SpringApplication is a class which has a static parametrized method called run(). Using this method any Spring Boot application can be bootstrapped by passing the class in this method.

One can start the application by calling the static run() method of SpringApplication.


  
   public static void main(String[] args){
       SpringApplication.run(nameOfMainClass.class,args);  
   }



  Next >> Spring Boot : Hello World Example
                      Create a Spring Boot application to print "Hello Wor ...

Spring Boot Starter

In big projects, it becomes difficult to handle dependencies. Spring boot provides a set of dependencies which can be easily implemented.

For providing dependency a developer can provide the artifactId as spring-boot-starter-*  where "*" is the application type in lowercase.

For example, if JPA application needs to be developed just provide spring-boot-starter-jpa in the artifactId.


Let's have a look over some examples :


Security implementation using Spring Boot Starters -

  
   <dependency>
       <gropuId>org.springframework.boot</groupId>
       <artifactId>spring-boot-starter-security</artifactId>    
   </dependency>


Thymleaf implementation using Spring Boot Starters -

  
   <dependency>
       <gropuId>org.springframework.boot</groupId>
       <artifactId>spring-boot-starter-thymleaf</artifactId>    
   </dependency>


  Next >> SpringApplication
                      SpringApplication is a class which has a static parametrized method ...


Spring Boot : Introduction

Spring Boot provides the Java developers to create a stand-alone application with an ease which the developer can just run in no time. With the minimal configuration requirement, Spring Boot is becoming popular day by day.




Benefits of using Spring Boot :

  • Easy to use.
  • Reduction in the time of production.
  • Easy to work with data layers using annotation based configurations.
  • Increase in productivity.
  • Reduction in complexity.

      Next >> Spring Boot Starters
                         In big projects, it becomes difficult to handle dependencies. Spring boot ... 


    Some Algorithms

    Algorithm: Tower of Hanoi

    Tower of Hanoi consists of three towers called as pegs with n number of rings. Rings are of different size.  Conditions to be fulfill...

    Popular Posts