Spring Boot DevTools

Spring Boot Devtools:

Step1:

1. Spring Boot DevTools provides automatic restart functionality,

allowing developers to quickly see changes made to their application without needing to manually restart the server.

2. Any changes to class files trigger a restart of the application,

speeding up the development process.

Step2:

Spring Boot Devtools Features:

Automatic restart.

Step3: Add Dependency:

<dependency>

<groupId>org.springframework.boot</groupId>

<artifactId>spring-boot-devtools</artifactId>

</dependency>

Step4:

Q) How to disable Auto Reload in Spring Boot application?

A) System.setProperty("spring.devtools.restart.enabled", "false");

Step5:

Enabling automatic Restart in Intellij:

a. File>Settings>Build,Execuion,Deployment>compiler>select Build Project Automatically

b. Advanced Settings>compiler>select Allow auto-make to start even if developed application is currently running.


要查看或添加评论,请登录

Sankar Karra的更多文章

  • Understanding Theory Concepts of Cursors, Indexes, and Views in Oracle(SQL/PLSQL)

    Understanding Theory Concepts of Cursors, Indexes, and Views in Oracle(SQL/PLSQL)

    Understanding Theory Concepts of Cursors, Indexes, and Views in Oracle(SQL/PLSQL): Cursors in Oracle (PL/SQL): 1…

  • STS/Eclipse Shortcuts

    STS/Eclipse Shortcuts

    Most important STS/Eclipse shortcuts: 1. Imports: ctrl+shift+o 2.

  • Spring Boot Actuator and Admin Server, Client UI

    Spring Boot Actuator and Admin Server, Client UI

    Spring Boot Actuator Theory: Step1: a. Spring boot Actuator called a Production-ready end-points or production-ready…

  • Swagger UI or Test UI

    Swagger UI or Test UI

    Swagger UI(Test UI): 1. Swagger is an Open Source and it is Test UI.

  • HR Interview Story

    HR Interview Story

    HR Interview Story: A week ago, I sent a rejection email to a candidate who had interviewed for an open position…

  • Components in AEM

    Components in AEM

    Components in AEM: create a webpage by combining different components like a header, footer, text, image, video, or any…

  • Content Management System Tool

    Content Management System Tool

    In this article, I will discuss AEM[Adobe Experience Manager] AEM is a Content Management System Tool..

  • MongoDB

    MongoDB

    MongoDB: MongoDatabase Installation Process: 1. Download the MongoDB Zip file and extract it.

  • How do you choose between Hystrix and Resilience4j for Java web services?

    How do you choose between Hystrix and Resilience4j for Java web services?

    How do you choose between Hystrix and Resilience4j for Java web services? 1 Hystrix overview Hystrix is a library…

  • How do I form good study habits?

    How do I form good study habits?

    How do I form good study habits? Since you want to study then make up your mind for it. You don't have to study for 1…

社区洞察

其他会员也浏览了