question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Why show "Unable to render this definition"?

See original GitHub issue

this is my spring-mvc.xml image this is my SwaggerConfig image this is SwaggerConfig`bean setting image

I’m not sure my setting is ok .


    @Bean
    public Docket createRestApi1() {
        System.out.println("SwaggerConfig.createRestApi--1");
        return new Docket(DocumentationType.SWAGGER_2)
        		.pathMapping("/")
                .apiInfo(apiInfo())
                .groupName("客户端操作")
                .select()
                .apis(RequestHandlerSelectors.basePackage("com.tecsun.controller.client"))
                .paths(PathSelectors.any())
                .build();
    }
    private ApiInfo apiInfo() {
        return new ApiInfoBuilder()
            .title("德生")
            .description("文件中心文档")
            .termsOfServiceUrl("http://www.e-tecsun.com")
            .version("1.0")
            .build();
    }
}

image

please save me from my BUG 😃

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
dengfengfengcommented, Jul 9, 2018

I know where the error is. I should statement swagger2`bean in spring-mvc.xml not in spring.xml

0reactions
stale[bot]commented, Jul 8, 2020

This issue has been automatically closed because it has not had recent activity. Please re-open a new issue if this is still an issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Swagger..Unable to render this definition The provided ...
I experimented with Gson instead of Jackson as Spring's default serializer. The /v3/api-docs that Gson generates is wrapped in double quotes.
Read more >
Swagger: unable to render this definition · Issue #4531 - GitHub
API Platform version(s) affected: dev/main Description After merging PR #4300, I got the following error when trying to open the UI: Unable ......
Read more >
Unable to render this definition The provided defi...
Hello: I generated the python-flask server stubs from the swagger hub, plugged in all the code and when I run the code locally, ......
Read more >
Integrated Swagger UI throws error on valid OpenAPI spec file
Unable to render this definition ... Create a new project; Create a new file named openapi.json with the contents shown below and commit...
Read more >
OpenAPI - Unable to render this definition - SAP Community
Hi,. I guess the error in the UI comes from the fact that no OpenAPI definition could be created on the fly on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found