Reputation: 31
Even though I am placing banner.txt in src/main/resources
I am not able to customize the spring boot banner.
This is my directory tree :
D:.
├───.gradle
│ ├───4.8
│ │ ├───fileChanges
│ │ ├───fileContent
│ │ ├───fileHashes
│ │ └───taskHistory
│ ├───buildOutputCleanup
│ └───vcsWorkingDirs
├───build
│ ├───classes
│ │ └───java
│ │ └───main
│ │ └───hello
│ ├───libs
│ ├───resources
│ │ └───main
│ └───tmp
│ ├───bootJar
│ ├───compileJava
│ └───compileTestJava
├───gradle
│ └───wrapper
└───src
└───main
├───java
│ └───hello
└───resources
I tried modifying properties but it did not work
Upvotes: 3
Views: 11309
Reputation: 43
banner.txt
is the default name and src/main/resourses
is the default location but any can be used as long as it is configured in the properties file.
There are a couple reasons you could be having issues. There could be an error in your banner.txt
file, so make sure that this file is correct. If no banner is showing at all then make sure you do not have the banner-mode
setting turned off.
I would also just do a clean build to make sure your configurations have been updated.
Upvotes: 2
Reputation: 101
There is a easy way to change the default spring boot banner. Go to the below mentioned link -->
Upvotes: 10