1.修改quartz问题。2完善数据范围添加策略支持。3修改swaggerbug。4取消验证码

This commit is contained in:
yandanyang
2020-11-28 23:02:08 +08:00
parent 70173ebd22
commit 01fe8a7c16
17 changed files with 263 additions and 115 deletions

View File

@@ -19,6 +19,7 @@ import org.springframework.context.EnvironmentAware;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.springframework.core.env.Environment;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.RequestHandler;
import springfox.documentation.builders.ApiInfoBuilder;
@@ -194,7 +195,11 @@ public class SmartSwaggerDynamicGroupConfig implements EnvironmentAware, BeanDef
return false;
};
groupIndex++;
return Predicates.and(RequestHandlerSelectors.withClassAnnotation(RestController.class), methodPredicate);
return Predicates.or(
Predicates.and(RequestHandlerSelectors.withClassAnnotation(RestController.class),methodPredicate),
Predicates.and(
RequestHandlerSelectors.withMethodAnnotation(ResponseBody.class),methodPredicate)
);
}
private ApiInfo serviceApiInfo() {