mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	update 优化 删除无用注释 导致代码报null问题
This commit is contained in:
		@@ -54,6 +54,7 @@ public class SpringDocConfig {
 | 
			
		||||
        openApi.externalDocs(properties.getExternalDocs());
 | 
			
		||||
        openApi.tags(properties.getTags());
 | 
			
		||||
        openApi.paths(properties.getPaths());
 | 
			
		||||
        if (properties.getComponents() != null) {
 | 
			
		||||
            openApi.components(properties.getComponents());
 | 
			
		||||
            Set<String> keySet = properties.getComponents().getSecuritySchemes().keySet();
 | 
			
		||||
            List<SecurityRequirement> list = new ArrayList<>();
 | 
			
		||||
@@ -61,7 +62,7 @@ public class SpringDocConfig {
 | 
			
		||||
            keySet.forEach(securityRequirement::addList);
 | 
			
		||||
            list.add(securityRequirement);
 | 
			
		||||
            openApi.security(list);
 | 
			
		||||
 | 
			
		||||
        }
 | 
			
		||||
        return openApi;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user