SonarQube rule: “Using command line arguments is security-sensitive” in Spring Boot application

If you are not using any command-line arguments ,then you could avoid mentioning the args parameter in the run method .Like the below code.

public class Application {

    public static void main(String[] args) {;


This will remove sonarqube hotspot issue.

Leave a Comment