mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	remove 移除无用swagger配置
This commit is contained in:
		@@ -29,9 +29,6 @@ public class ResourcesConfig implements WebMvcConfigurer
 | 
			
		||||
    {
 | 
			
		||||
        /** 本地文件上传路径 */
 | 
			
		||||
        registry.addResourceHandler(Constants.RESOURCE_PREFIX + "/**").addResourceLocations("file:" + RuoYiConfig.getProfile() + "/");
 | 
			
		||||
 | 
			
		||||
        /** swagger配置 */
 | 
			
		||||
        registry.addResourceHandler("/swagger-ui/**").addResourceLocations("classpath:/META-INF/resources/webjars/springfox-swagger-ui/");
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
 
 | 
			
		||||
@@ -112,7 +112,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
 | 
			
		||||
                .antMatchers("/profile/**").anonymous()
 | 
			
		||||
                .antMatchers("/common/download**").anonymous()
 | 
			
		||||
                .antMatchers("/common/download/resource**").anonymous()
 | 
			
		||||
                .antMatchers("/swagger-ui.html").anonymous()
 | 
			
		||||
                .antMatchers("/doc.html").anonymous()
 | 
			
		||||
                .antMatchers("/swagger-resources/**").anonymous()
 | 
			
		||||
                .antMatchers("/webjars/**").anonymous()
 | 
			
		||||
                .antMatchers("/*/api-docs").anonymous()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user