79339976

Date: 2025-01-08 16:16:12
Score: 1.5
Natty:
Report link

In my case i have declared swagger @Bean in 2 different class. Once i removed from one class it resolved.

@Configuration 
@EnableSwagger2 
public class EnrollmentSecureConfig {
@Bean //------> 1st time
public Docket api() {}
}

@Configuration
@EnableSwagger2
public class EnrollmentSecureConfig {

@Bean //-----?2nd time
public Docket api() {}

}

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Bean
  • Low reputation (1):
Posted by: bhargav venkat