公司使用我定制过的swagger作为接口文档平台。昨日同事反映一个问题,说mvc控制器中新增加了一个接口,写法与其他接口无异,为什么加上他swagger接口文档平台就报错、注释掉他即正常? 正好最近由于fastjson的反序列化绕过黑名单机制RCE漏洞事件,正研究fastjson及其他json序列化 ...
分类:
Web程序 时间:
2020-06-23 13:11:42
阅读次数:
135
QcefView:一个集成了CEF的Qt Widget 官方网址:http://tishion.github.io/QCefView/Github地址:https://github.com/tishion/QCefViewQCefView是一个与Chromium Embedded Framework ...
分类:
其他好文 时间:
2020-06-22 21:01:05
阅读次数:
229
A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number ...
分类:
其他好文 时间:
2020-06-22 19:18:22
阅读次数:
60
代码: if(!doc.setContent(&file)){读取失败操作}发现总是返回false; 使用如下代码调试: if(!doc.setContent(&file,&sErrormsg,&iErrorLine,&iErrorCol)) errmsg返回是格式有问题.解决方法: 一定要确保读取 ...
分类:
其他好文 时间:
2020-06-22 15:47:13
阅读次数:
78
题目如下: Given an array of integers arr and an integer k. Find the least number of unique integers after removing exactly k elements. Example 1: Input: a ...
分类:
其他好文 时间:
2020-06-22 15:12:41
阅读次数:
60
当浏览器访问网站 http://example.com 时,对服务器而言需要进行一次重定向,判断需要定向至根目录。 而当浏览器访问网站 http://example.com/ 时服务器会直接返回网站设置的根目录默认页面。 同样的,假设 http://example.com/movie 被URL重写跳 ...
分类:
Web程序 时间:
2020-06-22 13:03:31
阅读次数:
72
一、实现代码如下: QStandardItemModel* model = new QStandardItemModel(); /* 设置列数 */ model->setColumnCount(7); model->setHeaderData(0, Qt::Horizontal, "周一"); /* ...
分类:
其他好文 时间:
2020-06-22 13:02:21
阅读次数:
48
题目标签:Sort 题目给了一组 数字,让我们组成一个最大数返回。 从example 2 看出,排序不是按照一般的大小,而是按照搭配组合,比较大小后才得出结果。 3, 30 的结果是 330 大于 303, 所以 3 要排序在 30 之前。 建立一个cutom comparator来实现,具体看co ...
分类:
其他好文 时间:
2020-06-22 01:39:41
阅读次数:
61
常用配置 热部署 配置依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> </depen ...
分类:
编程语言 时间:
2020-06-22 01:27:22
阅读次数:
51
1 简介 本文主要介绍Qt ui界面的简单使用,介绍一些常用的控件。 参考视频:https://www.bilibili.com/video/BV1XW411x7NU?p=22 2 常用控件 常用分类: (1)Buttons 其中,Tool Button常常和QToolBar配合使用。 (2)Con ...
分类:
其他好文 时间:
2020-06-21 23:34:59
阅读次数:
58