thanks jayson to help me
Original Message:
Sent: Sat March 11, 2023 04:08 AM
From: Jayson Billy
Subject: How to add banner to a Spring-Boot Application
Follow the steps below and use the code.
1- Create a new file named banner.txt in the src/main/resources directory of your Spring Boot project.
2- Add your banner text to the banner.txt file. The banner text should be ASCII art, and it will be displayed in the console when the Spring Boot application starts.
3- In your Spring Boot application, add the following code to the main class:
@SpringBootApplication
public class MyApplication {
public static void main(String[] args) {
SpringApplication app = new SpringApplication(MyApplication.class);
app.setBannerMode(Banner.Mode.CONSOLE);
app.run(args);
}
}
Run your Spring Boot application, and the banner text will be displayed in the console.
Note that you can also set the Banner.Mode.OFF mode to turn off the banner display, or Banner.Mode.LOG mode to log the banner text instead of displaying it in the console.
This might help you brother. I recently fixed this issue for this, you can check it.
------------------------------
Jayson Billy
Original Message:
Sent: Thu March 09, 2023 02:21 AM
From: DC Kumawat
Subject: How to add banner to a Spring-Boot Application
How to generate and add banner in a new Spring Boot Development Page