Skip to content
Advertisement

Application failed after added swagger configuration

I’m using spring boot and I want to add swagger configuration, the problem is after I run the application I get this error:

JavaScript

In my class I added this methods:

JavaScript

In my pom.xml I added this dependencies:

JavaScript

I can’t understand what is wrong, I followed online solution asking me to add @EnableSwagger2WebMv and @EnableSwagger2 but I still get errors. I tried to add @EnableSwagger2 in the SpringBootApplication and I get this error:

JavaScript

Advertisement

Answer

My application is working that

JavaScript

Also i added to application.properties this, but i added this because of spring version

JavaScript

and i added these dependencies

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement