'Swagger UI doesnt work after pom dependency upgrade

I have upgraded Swagger-UI from 2.2.8 to 4.1.3 . After upgrading UI is not loading and in the console, I am getting unable to locate the .js and .css files.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source