use Illuminate\Support\Facades\DB; //引入数据库类 public function user(){ var_dump('aaa'); $arr = [ 'title'=>'aaaa', 'descs'=>'bbbb' ]; DB::table('new')->in ...
分类:
数据库 时间:
2020-07-28 13:55:38
阅读次数:
78
自定标签和过滤器 自定义过滤器 1. app应用文件夹中创建一个templatetags文件件,必须是这个名字 2. templatetags文件夹中创建一个 xx.py文件,文件名字随便起 3. 创建自定义过滤器 from django import template register = tem ...
分类:
其他好文 时间:
2020-07-28 10:03:39
阅读次数:
72
spring在初始化之后, 还调用了一次 Bean 的后置处理器. 代码片段: org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory#applyBeanPostProcessorsAfterIniti ...
分类:
其他好文 时间:
2020-07-28 00:30:16
阅读次数:
109
创建相关的类(这里是直接在之前类的基础上进行修改) package com.guan.dao; public interface Fruit { String getFruit(); } package com.guan.dao; public class FruitImpl implements ...
分类:
编程语言 时间:
2020-07-27 23:43:21
阅读次数:
69
dnf包管理器克服了yum包管理器的一些瓶颈,提升了包括用户体验,内存占用,依赖分析,运行速度等。CentOS7使用dnf,下载并安装下面包:wgethttp://springdale.math.ias.edu/data/puias/unsupported/7/x86_64/dnf-conf0.6.4-2.sdl7.noarch.rpmwgethttp://springdale.math.ias.
分类:
其他好文 时间:
2020-07-27 09:56:55
阅读次数:
106
apple 官方文档 https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/Multithreading/RunLoopManagement/RunLoopManagement.html#//apple_ ...
分类:
移动开发 时间:
2020-07-27 09:52:52
阅读次数:
89
加载或者安装R包 stringr,stringr时报错如下 libicui18n.so.64 找不到 加载: library(stringi)Error: package or namespace load failed for ‘stringi’ in dyn.load(file, DLLpath ...
分类:
其他好文 时间:
2020-07-27 09:39:17
阅读次数:
150
celery的使用 # 1 异步任务框架,执行异步任务,执行延迟任务,执行定时任务 # 2 Celery is a project with minimal funding, so we don’t support Microsoft Windows. Please don’t open any i ...
分类:
其他好文 时间:
2020-07-26 23:15:34
阅读次数:
64
FLASH的配置步骤 将FLASH2812_API_v210.lib 添加到头文件中。 (2)将Flash281x_API_Config.h Flash281x_API_Library.h 两个头文件添加进include目录下。这两个头文件主要包含的是 FLASH_API函数的定义 状态返回的定义 ...
一般写JDBC代码的时候都会有这么一句代码: 1 Class.forName("com.mysql.jdbc.Driver"); 这是加载数据库的注册驱动。但是从JDBC4.0后,就不用显式加载了,也就是人家DriverManager类自动帮你加载了,这句代码你不用写了,直接获取数据库连接就行。 可 ...
分类:
数据库 时间:
2020-07-26 15:41:48
阅读次数:
74