How to disable Spring Boot Registration Configuration?
I am using Spring Boot and want to completely disable automatic configuration registration and use SLF4J and logback directly.
I've tried the following:
@EnableAutoConfiguration(exclude={LoggingApplicationListener.class})
Which didn't work. Is there a way to completely disable Spring Boot logging configuration?
+3
source to share
3 answers
If you don't want to customize JAVA_OPTS
, you can override the behavior SpringBootServletInitializer
as described in Spring Boot: LoggingApplicationListener preventing logging from application log
0
source to share