Spring Boot :: (v3.2.2)
For logs:
import lombok.extern.slf4j.Slf4j;
and I use the ‘@Slf4j’ annotation on the classes.
At application start-up, I had this worning:
Standard Commons Logging discovery in action with spring-jcl: please remove commons-logging.jar from classpath in order to avoid potential conflicts
I solved it by editing the POM:
inside the tag : <dependencies>
I added the first dependency like this:
<dependency>
<groupId>org.springframework.boot</groupId>.
<artifactId>spring-boot-starter</artifactId>
<exclusions>
<exclusions>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>.
</exclusion>
</exclusions>
</dependency>
Is this the best solution or could I adopt others?