There are mainly 3 ways to disable the spring boot logo banner at startup.
1- Pro-grammatically
SpringBootDemoApplication.java
package in.tecmentor;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class SpringBootDemoApplication {
public static void main(String[] args) {
SpringApplication springApp = new SpringApplication(SpringBootDemoApplication.class);
springApp.setBannerMode(Banner.Mode.OFF);
springApp.run(args);
}
}
Note- There are 3 possible Banner.Mode availables: OFF – Disable printing spring boot startup banner from console and log files. CONSOLE – Print the spring boot startup banner only to console. LOG – Print the spring boot startup banner only to the log file.