V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  qinxi  ›  全部回复第 20 页 / 共 91 页
回复总数  1805
1 ... 16  17  18  19  20  21  22  23  24  25 ... 91  
2021-05-25 10:09:05 +08:00
回复了 GeekSuPro 创建的主题 问与答 618 什么值得买 ?
@GeekSuPro #15 Z6 卡太贵了 ,一步到胃 直接 Z7 2 😛
2021-05-22 10:46:29 +08:00
回复了 Biwood 创建的主题 iOS iOS 上有什么好用的图片编辑工具?(排除 Adobe 家的产品)
@Biwood #3 编辑,右上角三个点,标记.
2021-05-20 16:13:38 +08:00
回复了 PDX 创建的主题 Apple 对 Siri 说“播放林俊杰的曹操”
@cwcauc #16 apple music 重现, 用同事的 qq 音乐也重现
2021-05-18 10:44:08 +08:00
回复了 yggd 创建的主题 问与答 微信 iOS 更新后无法从相册分享照片
更新完微信是会这样,应该是注册到系统分享列表出问题了..重启解决
2021-05-18 09:18:10 +08:00
回复了 KennySun 创建的主题 职场话题 老婆怀孕被公司开除
@WilsonGGG #83 反讽而已.. 双赢就是赢两次
非超一线周边搞这个了估计回本太难了,小县城应该没有太大的需求..
2021-05-13 09:34:44 +08:00
回复了 ch2 创建的主题 程序员 在某大厂的朋友告诉我说,你想用台式机是不太可能的
我厂默认台式机, 需要笔记本单独申请😁
2021-05-12 14:23:46 +08:00
回复了 K120 创建的主题 职场话题 全勤奖头一次遇见这种制度
我们一季度全勤 500..不过我就刚入职那季度拿过..后面一请假就没了
2021-05-12 14:14:30 +08:00
回复了 chengkai 创建的主题 程序员 我又被爱奇艺索赔了 100 万
买爱奇艺会员不一定是为了支持正版,也有可能是为了让自己的解析方法不失效,持续更新而已😁
2021-05-11 15:56:23 +08:00
回复了 anzu 创建的主题 Java MyBatis 一个比较奇怪的参数绑定问题
猜测: 之前编译保留了参数名, 拆分后编译参数名被抹去了
2021-04-28 17:20:49 +08:00
回复了 FenixVu 创建的主题 问与答 Jenkins 远程目标机器执行 git clone 的问题
难道不应该在 A 机器 clone,build,
之后把 结果推送到 B 吗?
2021-04-26 11:54:15 +08:00
回复了 JasonLaw 创建的主题 程序员 Springfox 如何设置一个全局的 HTTP request header?
@JasonLaw #3 不知道普通的 header 可以不可以, 不过 auth 类 header 是可以的. 你可以用我说的第一种的 ,设置一次就可以了
2021-04-26 11:44:22 +08:00
回复了 JasonLaw 创建的主题 程序员 Springfox 如何设置一个全局的 HTTP request header?
@qinxi #1 这个就是全局的 header .如果你要默认值就把 defaultValue 加上就可以了
2021-04-26 11:42:47 +08:00
回复了 JasonLaw 创建的主题 程序员 Springfox 如何设置一个全局的 HTTP request header?
如果是 auth 类 header 会有个小锁
new Docket(DocumentationType.SWAGGER_2)
.useDefaultResponseMessages(false)
.apiInfo(apiInfo())
.select()
.apis(RequestHandlerSelectors.basePackage("com.xx"))
.paths(PathSelectors.any())
.build().securitySchemes(securitySchemes())
//.globalOperationParameters(globalOperationParameters())
.securityContexts(securityContexts());

private List<ApiKey> securitySchemes() {
ArrayList<ApiKey> list = new ArrayList<>();
list.add(new ApiKey("Authorization", "Authorization", "header"));
return list;
}

private List<SecurityContext> securityContexts() {
return Collections.singletonList(
SecurityContext.builder()
.securityReferences(defaultAuth())
.forPaths(PathSelectors.any())
.build()
);
}

private List<SecurityReference> defaultAuth() {
AuthorizationScope authorizationScope = new AuthorizationScope("global", "accessEverything");
AuthorizationScope[] authorizationScopes = new AuthorizationScope[1];
authorizationScopes[0] = authorizationScope;
return Collections.singletonList(
new SecurityReference("Authorization", authorizationScopes));
}


//如果是普通的 header
new Docket(DocumentationType.SWAGGER_2)
.useDefaultResponseMessages(false)
.apiInfo(apiInfo())
.select()
.apis(RequestHandlerSelectors.basePackage("com.xx"))
.paths(PathSelectors.any())
.build()
//.securitySchemes(securitySchemes())
.globalOperationParameters(globalOperationParameters())
;


private List<Parameter> globalOperationParameters() {
ArrayList<Parameter> list = new ArrayList<>();
Parameter parameter = new ParameterBuilder().name("key").required(true)
.description("").parameterType("header").defaultValue("")
.allowMultiple(false)
.modelRef(new ModelRef("string")).build();
list.add(parameter);

return list;
}
@felixcode #2 我的传呼机现在就是 5G,敏感肌可以用,孩子已经吃了一车了
2021-04-25 18:19:33 +08:00
回复了 xxmmoo 创建的主题 汽车 曾经的家电巨头创维要开始造车了...
@dynastysea #15 弯道超车的结果是中途需要频繁停下来充电
1 ... 16  17  18  19  20  21  22  23  24  25 ... 91  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5701 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 45ms · UTC 07:33 · PVG 15:33 · LAX 00:33 · JFK 03:33
Developed with CodeLauncher
♥ Do have faith in what you're doing.