0

Getting below error:

Error Logs

My homepage looks like:

HomePage

Pom.xml:

POM

  • It's trying to load API definition from `http://localhost:9090undefined`, which is not a valid URL. Can you post your source code and Swagger UI configuration? – Helen Jul 02 '18 at 09:17
  • My config file:Configuration EnableSwagger2 public class SpringFoxConfig { @Bean public Docket api() { return new Docket(DocumentationType.SWAGGER_2).select() .apis(Predicates.not(RequestHandlerSelectors.basePackage("org.springframework.boot"))) .paths(PathSelectors.any()).build(); } } – Nihul Rawat Jul 02 '18 at 09:34
  • I am getting this error in swagger-ui.min.js – Nihul Rawat Jul 02 '18 at 09:39
  • 1
    Please [edit your post](https://stackoverflow.com/posts/51132551/edit) and add your code. Don't post code/POM as images, post as it text and use the `{}` button to format as code. – Helen Jul 02 '18 at 09:51
  • @Helen These are basic html css files that are autogenerated webjars when I import the swagger-ui dependency in my spring boot project. They have around 300000 lines of code, so it is unable to put it here. – Nihul Rawat Jul 02 '18 at 09:58

0 Answers0