Filter总共有五种,Authorization Filter,Resource Filter,Exception Filter,Action Filter,Result Filter Exception Filter 设置 新增全局异常过滤器GlobalExceptionFilter.cs, 当 ...
分类:
Web程序 时间:
2020-07-24 15:46:45
阅读次数:
98
Route::get('Index/{action}', function(App\Http\Controllers\IndexController $index, $action){ return $index->$action(); }); https://xueyuanjun.com/post ...
分类:
其他好文 时间:
2020-07-24 15:43:54
阅读次数:
122
SQL SQL(structured query language)是一种领域特定语言(DSL,domain-specific language),用于管理关系型数据库(relational database management system,RDBMS)。 SQL主要有4种类别 DDL Data ...
分类:
数据库 时间:
2020-07-24 15:24:48
阅读次数:
81
function* bar() { const result = yield new Promise((resolve, reject) => { setTimeout(() => { resolve('Hello Generator'); }, 3000); }); console.log(res ...
分类:
其他好文 时间:
2020-07-23 23:26:40
阅读次数:
118
在Flutter编程中,会经常用到".."的语法糖,如下 state.clone() ..splashImg = action.img ..famousSentence = action.famousSentence; 其实以上代码等同于 state.clone() state.splashImg ...
分类:
其他好文 时间:
2020-07-23 22:30:25
阅读次数:
171
参数说明 redis 配置文件说明: #redis.conf # Redis configuration file example. # ./redis-server /path/to/redis.conf ################################## INCLUDES ## ...
分类:
其他好文 时间:
2020-07-23 16:34:28
阅读次数:
56
先看MSDN上的解释: HttpContext.Current.Cache:为当前 HTTP 请求获取Cache对象。HttpRuntime.Cache:获取当前应用程序的Cache。 我们再用.NET Reflector工具看看HttpContext.Cache和HttpRuntime.Cache ...
分类:
Web程序 时间:
2020-07-22 20:06:26
阅读次数:
87
如果能看懂swiper官网文档,请忽略此篇文章。 遇到的问题: 主要是版本的问题,不同版本的swiper文件不同,导致总是引用不成功。按照我的版本来,肯定畅通无阻。实现后再尝试看官网文档,使用最新的版本。 1.首先下载swiper和vue-awesome-swipe。 下载我指定的版本,否则可能会打 ...
分类:
其他好文 时间:
2020-07-22 20:06:08
阅读次数:
93
1、编译进内核的模块 如果需要将一个模块配置进内核,需要在makefile中进行配置: obj-y += foo.o 2、编译可加载的模块 所有在配置文件中标记为-m的模块将被编译成可加载模块.ko文件。 如果需要将一个模块配置为可加载模块,需要在makefile中进行配置: obj-m += fo ...
分类:
系统相关 时间:
2020-07-22 11:35:13
阅读次数:
85
一、简述 配置多数据源意思就是在一个项目中使用多个数据库,在项目使用中可以不用手动切换数据库来实现不同数据库的数据获取和更新。 源码地址: https://github.com/hanguilin/boot-security 项目环境: SpringBoot 2.1.9、Spring Data Jp ...
分类:
编程语言 时间:
2020-07-22 11:30:31
阅读次数:
56