c++11 中的 shared_from_this() 来源于 boost 中的 enable_shared_form_this 类和 shared_from_this() 函数,功能为返回一个当前类的 std::share_ptr,使用方法如下: #include<memory> class Te ...
分类:
编程语言 时间:
2021-04-26 13:06:17
阅读次数:
0
我们通常有这样的需求:把一些固有的配置放到xxxx.properties,然后想将xxxx.properties的value映射到实体类中,以前的做法大概如下: 但到springboot这就完全不需要这样做了,只需要使用提供的注解即可完成,有两种方式可以实现: 1. @ConfigurationPr ...
分类:
编程语言 时间:
2021-04-24 11:50:50
阅读次数:
0
PostgreSQL 9.6安装 1、添加RPM sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm 2、安 ...
分类:
数据库 时间:
2021-04-21 12:51:42
阅读次数:
0
开启trim,可以给SSD写入提速的一种模式,打开关于本机→系统报告→sata(查看trim状态)显示否的话就继续往下操作开启trim, 打开终端输入 sudo trimforce enable 回车,输入密码 回车 接着输入Y回车 等待提示成功自动重启电脑,如果没有重启就手动重启一下再去查看tri ...
分类:
系统相关 时间:
2021-04-19 15:03:18
阅读次数:
0
今天在navicat中编写sql操作oracle数据库时进行了误操作,可以使用如下语句进行回退回滚,因为navicat是自动提交事务的,而rollback没法回滚。 oracle回退 --开启闪退 alter table TB_MENU_INFO enable row movement; --闪退到 ...
分类:
数据库 时间:
2021-04-19 14:34:24
阅读次数:
0
1、下载、解压 2、安装nginx需要的依赖 yum install -y gcc-c++ yum install -y pcre yum install -y pcre-devel yum install -y zlib yum install -y zilb-devel yum install ...
分类:
系统相关 时间:
2021-04-14 11:56:59
阅读次数:
0
转至:https://www.cnblogs.com/shenyiyangle/p/10503754.html netstat-a #显示所有活动的TCP连接以及计算机监听的TCP和UDP端口。 netstat-e #显示以太网发送和接收的字节数、数据包数等。 netstat-n #以数字形式显示所 ...
type Location = { //这是一个location pathname: Pathname; search: QueryString; query: Query; state: LocationState; action: Action; key: LocationKey;};class ...
分类:
其他好文 时间:
2021-04-13 12:11:38
阅读次数:
0
打开vi /etc/selinux/config, 设置 SELINUX=disabled yum grouplist yum groupinstall "GNOME Desktop" "Graphical Administration Tools" 安装epel库 yum -y install e ...
JavaScript 严格检查模式strict 'use strict' ; 严格检查模式,预防JavaScript的随意性导致产生的一些问题,放在script标签的第一行 局部变量建议使用let去定义 <!DOCTYPE html> <html lang="en"> <head> <meta ch ...
分类:
编程语言 时间:
2021-04-07 11:05:06
阅读次数:
0