C++标准库中有很多资源占有(resource-owning)类型,比如 std::ifstream , std::unique_ptr 还有 std::thread 都是可移动(movable),但不可拷贝(cpoyable)。虽然, std::thread 实例不会如 std::unique_p ...
分类:
编程语言 时间:
2020-06-07 13:10:02
阅读次数:
72
前言 之前我很肤浅的以为为了实现某种请求过滤功能(比如图片转换、文件上传、安全认证等),都需要自己去实现javax.servlet.Filter。之后在web.xml中配置即可。 但事实上,Tomcat已经提供了部分相关的过滤器(本文只介绍常用的7个过滤器),只需要简单配置就可以使用。最近通过系统学 ...
分类:
其他好文 时间:
2020-06-07 12:39:09
阅读次数:
66
前提: 1.Springboot项目 2.引入maven 依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifactId> </dependenc ...
分类:
编程语言 时间:
2020-06-07 10:42:40
阅读次数:
101
django如何使用第三方js库“My97DatePicker”官方链接:http://www.my97.net/demo/resource/left.htm一:界面展示二:下载My97DatePickerhttp://www.my97.net/down/My97DatePicker.zip三:在django中setting.py指定存放路径:STATIC_URL=‘/static/‘STATIC
分类:
Web程序 时间:
2020-06-06 23:21:16
阅读次数:
95
select request_session_id spid, OBJECT_NAME(resource_associated_entity_id) tableName from sys.dm_tran_locks where resource_type='OBJECT' kill 59 ...
分类:
其他好文 时间:
2020-06-06 18:51:11
阅读次数:
63
1、Mybatis 自定义配置的分析 在我们自定义starter之前我们写了解一下Mybatis 是如何实现starter 在SpringBoot 引入的依赖如下: <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId ...
分类:
编程语言 时间:
2020-06-06 18:46:59
阅读次数:
61
1.前言 我们知道在ASP.NET Web Forms中,一个URL请求往往对应一个aspx页面,一个aspx页面就是一个物理文件,它包含对请求的处理。 而在ASP.NET MVC中,一个URL请求是由对应的一个Controller中的Action来处理的,由URL Routing来告诉MVC如何定 ...
分类:
Web程序 时间:
2020-06-06 18:21:59
阅读次数:
72
1.域名直接访问项目 案例:tomcat下域名直接访问项目,或者说,修改tomcat默认欢迎页 (1).修改server.xml 添加: <Context path="" docBase="C:\TOOL\apache-tomcat-8.0.51\webapps\home\" debug="0"/> ...
分类:
Web程序 时间:
2020-06-06 11:15:15
阅读次数:
91
1、锁表查询 --查看锁住的表 select request_session_id spid,OBJECT_NAME(resource_associated_entity_id) tableName from sys.dm_tran_locks where resource_type='OBJECT ...
分类:
数据库 时间:
2020-06-05 19:24:45
阅读次数:
68
https://www.unboundtech.com/cryptocurrency-exchange-hacks/ 2018-9 continues to be the year of the hack, with 23 recorded exchange hacks within the pas ...
分类:
其他好文 时间:
2020-06-05 15:22:30
阅读次数:
135