How to configure Maven PATH and use mvn on Windows command line

Right click on My Computer >> Properties >> Advanced system settings >> System Properties window will get displayed Under Advanced >> Environment Variables Click on New to set Environment Variables Variable name: JAVA_HOME Variable value: C:\Program Files\Java\jdk1.8.0_121 Variable name: M2 Variable value: %M2_HOME%\bin Variable name: M2_HOME Variable value: C:\Program Files\Apache Software Foundation\apache-maven-3.5.0 Variable name: Path …

PriorityQueue in Java

A PriorityQueue is used when the objects are supposed to be processed based on the priority. It is known that a Queue follows the First-In-First-Out algorithm, but sometimes the elements of the queue are needed to be processed according to the priority, that’s when the PriorityQueue comes into play. The PriorityQueue is based on the …

Enable Spring Boot Devtools in IntelliJ

1. Add Dependency in pom.xml <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> </dependency> 2. In your intellij IDEA go to: file->settings->build,execution,deployment. Go to ->compiler->build project automatically. 3. Advanced Setting -> Enable auto-make