I am trying to integrate Spring Sleuth with an existing Spring Boot application with below version. For some reason, during the start up, it;s failing to create bean with below error
The BatchEnrollment class as @EnableScheduling and @Scheduled methods
<spring-cloud.version>2021.0.3</spring-cloud.version>
<spring-cloud-starter-sleuth.version>3.1.3</spring-cloud-starter-sleuth.version>
<artifactId>spring-boot-starter-aop</artifactId>
<version>2.6.13</version>
<artifactId>spring-boot-starter-actuator</artifactId>
<version>2.6.13</version>
org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class com.scheduler.BatchEnrollment: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: No visible constructors in class