SpringBoot project, the possible reason why the Swagger2 document interface has no content

Project scenario:


Problem Description

提示:这里描述项目中遇到的问题:

In the springboot project, the swagger2 document interface has no content

 
 

 

Cause Analysis:

1. The path of the release document is not set in the configuration class of SpringSecurity

2. The resources needed to release Swagger2 are not set in the configuration class of SpringSecurity


 

solution:

Tip: Fill in the specific solution to the problem here:

 Check the code in the configuration class, especially "/swagger-resources/**", not "/swagger-resource/**"

Guess you like

Origin blog.csdn.net/weixin_60249074/article/details/127089540