二、Flutter 本地存储 https://pub.dev/packages/shared_preferences Flutter 本地存储里面常用的一些方法 1、设置值 SharedPreferences prefs = await SharedPreferences.getInstance() ...
分类:
其他好文 时间:
2020-02-27 19:09:52
阅读次数:
82
1.redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool 查看代码:出现在创建jedisCluster对象这里,创建的对象,里面的host为127.0.0.0.1 ...
分类:
其他好文 时间:
2020-02-27 19:00:49
阅读次数:
72
spring boot 自动配置指的是针对很多spring 应用程序常见的应用功能,spring boot 能自动提供相关配置。spring boot 自动配置加载 Spring boot自动加载的原理一句话就可以说明:Spring Boot在进行SpringBootApplication对象实例化... ...
分类:
编程语言 时间:
2020-02-27 18:52:55
阅读次数:
73
背景:首先说一下背景,源于年前的一次libc的升级。再迁移打包机环境时遇到了报错/lib64/libc.so.6: version `GLIBC_2.14' not found 报错很明显,直接安装了对应的版本libc-2.14.so。然后按照网上的操作进入/lib64/,想着将当前的版本覆盖到旧版 ...
分类:
其他好文 时间:
2020-02-26 18:51:51
阅读次数:
61
```cpp #include #include static void interfaceOfSharedPtr(); int main(void) { interfaceOfSharedPtr(); return 0; } class Object { public: Object(int id... ...
分类:
编程语言 时间:
2020-02-24 21:06:37
阅读次数:
78
```cpp #include #include #include //auto ptr //shared_ptr //unique_ptr //weak_ptr class Parent; //采用前置声明 using ParentPtr = std::shared_ptr; typedef st... ...
分类:
编程语言 时间:
2020-02-24 21:03:42
阅读次数:
90
```cpp #include #include #include /* //this //调用了两次析构函数, ParentPtr p(this); //智能指针出了作用域后就delete this ,析构了 //所以错了,为了解决这个问题,就需要自身的类继承于 std::enable_share... ...
分类:
编程语言 时间:
2020-02-24 21:03:10
阅读次数:
121
```cpp #include #include #include class Object; typedef std::unique_ptr UniqueObjectPtr; using ObjectPtr = std::shared_ptr; void print(const UniqueObj... ...
分类:
编程语言 时间:
2020-02-24 20:24:28
阅读次数:
73
```cpp #include #include #include //智能指针总结: /* */ void sharedPtrNotice(); class Parent; typedef std::shared_ptr ParentPtr; typedef std::weak_ptr WeakP... ...
分类:
编程语言 时间:
2020-02-24 20:10:34
阅读次数:
106
1.properties文件指定Redis连接IP与密码 # Redis IP redis.host=127.0.0.1 redis.port=6379 #Redis PassWord redis.password=123 redis.timeOut=10000 # \u5BC6\u7801\u75 ...
分类:
编程语言 时间:
2020-02-24 16:52:53
阅读次数:
87