8000 @EnableSwagger2 breaking my unit tests · Issue #1894 · springfox/springfox · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
@EnableSwagger2 breaking my unit tests #1894
Closed
@rawadrifai

Description

@rawadrifai

Hey guys - we are trying to use this at the NFL, and we are running into this exception when adding @EnableSwagger2 annotation. It's odd because it works on some projects. We're not quite able to pin point the problem. If I remove the annotation and just keep @configuration, it builds fine, but when I try to access the swagger UI at host:port/swagger-ui.html from a browser, it shows a pop up: Unable to infer base url. This is common when using dynamic servlet registration... etc.

Can you help please?

java.lang.IllegalStateException at TokenUtilTest.java:43
        Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException at TokenUtilTest.java:43
            Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException at TokenUtilTest.java:43
                Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException at TokenUtilTest.java:43

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0