Filter总共有五种,Authorization Filter,Resource Filter,Exception Filter,Action Filter,Result Filter Exception Filter 设置 新增全局异常过滤器GlobalExceptionFilter.cs, 当 ...
分类:
Web程序 时间:
2020-07-24 15:46:45
阅读次数:
98
CountDownLatch的使用 概念 countDownLatch这个类使一个线程等待其他线程各自执行完毕后再执行。 countDownLatch是通过一个计数器来实现的,计数器的初始值是线程的数量。每当一个线程执行完毕后,计数器的值就-1,当计数器的值为0时,表示所有线程都执行完毕,然后在闭锁 ...
分类:
编程语言 时间:
2020-07-24 10:00:07
阅读次数:
71
title: NEU_Train_Camp_2020_基础数据结构 date: 2020-07-13 21:13:03 tags: c++ categories: New cover: 基础数据结构 A - Web Navigation POJ-1028 #include <string> #inc ...
分类:
其他好文 时间:
2020-07-24 09:31:06
阅读次数:
74
try (PrintWriter writer = new PrintWriter("student.txt")) { writer.println("姓名\t语文\t数学\t英语\t总分\t"); for (Student s : set) { writer.println(s.getName() ...
分类:
编程语言 时间:
2020-07-24 09:21:17
阅读次数:
128
问题:使用windos客户端RedisDestopManger可以连接,证明服务器连接正常,项目配置出现问题分析:原因在application.properties文件中最后多了一个空格总结:配置properties文件时要注意空格引起redis无法连接
分类:
其他好文 时间:
2020-07-23 22:47:34
阅读次数:
108
1)出现以下的报错信息: Exception:Traceback (most recent call last): 解决方案: 首先确保python.exe的名字没有被修改(之所以可能被修改是因为有些朋友希望实现cmd中python版本的切换,从而修改了python.exe的名字) 然后,相关编辑器 ...
分类:
编程语言 时间:
2020-07-23 18:59:50
阅读次数:
122
一:快速失败(fail—fast) 在用迭代器遍历一个集合对象时,如果遍历过程中对集合对象的内容进行了修改(增加、删除、修改),则会抛出Concurrent Modification Exception。 原理:迭代器在遍历时直接访问集合中的内容,并且在遍历过程中使用一个 modCount 变量。集 ...
分类:
编程语言 时间:
2020-07-22 21:03:06
阅读次数:
91
设计一个支持 push ,pop ,top 操作,并能在常数时间内检索到最小元素的栈。 push(x) —— 将元素 x 推入栈中。pop() —— 删除栈顶的元素。top() —— 获取栈顶元素。getMin() —— 检索栈中的最小元素。 思路:用一个辅助栈的栈顶记录原始栈的最小值,并且两个栈的 ...
分类:
其他好文 时间:
2020-07-22 20:49:40
阅读次数:
77
var jsonMPath = "modules\\json.lua".GetDLLRunDir(); if (!File.Exists(jsonMPath)) throw new Exception($"modules\\json.lua 不存在!"); Script script = new S ...
分类:
其他好文 时间:
2020-07-22 20:45:27
阅读次数:
99
题目描述 定义栈的数据结构,请在该类型中实现一个能够得到栈中所含最小元素的min函数(时间复杂度应为O(1))。 1 class Solution { 2 public: 3 stack<int>q,MIN; 4 void push(int value) { 5 q.push(value); 6 i ...
分类:
其他好文 时间:
2020-07-22 20:32:57
阅读次数:
73