拦截器 自定义拦截器实现HandlerInterceptor接口的三个方法。 public class MyInterceptor implements HandlerInterceptor{ @Override public boolean preHandle(HttpServletRequest ...
分类:
编程语言 时间:
2020-07-31 21:45:58
阅读次数:
89
问题解决:1)查看被锁表:select request_session_id spid,OBJECT_NAME(resource_associated_entity_id) tableNamefrom sys.dm_tran_locks where resource_type='OBJECT'2)解 ...
分类:
数据库 时间:
2020-07-31 19:24:53
阅读次数:
227
1、padding-bottom实现等比例缩放 原理:1、父元素设置定位为相对定位(position: relative)2、子元素设置定位为绝对定位(position: absolute)3、父元素padding-bottom值为百分比时以父元素为参考,正方形时同父元素一样的百分比。4、子元素的绝 ...
分类:
其他好文 时间:
2020-07-31 18:01:58
阅读次数:
89
例子: <!-- poi --><dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>3.17</version> <exclusions> <exclusion> <groupId> ...
分类:
数据库 时间:
2020-07-30 21:49:59
阅读次数:
87
public SeckillUser getSeckillUser(long id) { //查redis缓存 String seckillGoods = stringRedisTemplate.opsForValue().get(SeckillUserKey.seckillUserKey.getP ...
分类:
其他好文 时间:
2020-07-30 18:10:33
阅读次数:
58
众所周知,同一个功能点一般都有多个不同的测试点,即正向流程、异向流程,如登录功能,要验证正常登录、账号密码错误、账号密码为空等情况,为了避免总是漏测的情况,可将所有的测试用例编写在csv文件中,然后使用Jmeter工具中的CSV Data Set Config配置文件,对测试数据进行参数化,循环读取 ...
分类:
其他好文 时间:
2020-07-30 16:41:32
阅读次数:
90
属性和方法 DataFrame有许多的的属性和方法使得pabdas用起来非常的快捷简便。 导入数据: 1 import pandas as pd 2 import numpy as np 3 from pandas import Series,DataFrame 4 test=pd.read_exc ...
分类:
其他好文 时间:
2020-07-30 14:47:20
阅读次数:
103
资源 对象级资源:每个WPF的界面元素都有一个名为Resources的属性,这个属性继承自FrameworkElement类,其类型为ResourceDictionary,采用键值对的形式存储资源,当需要某个资源时,使用键值的形式索引到资源。资源保存时为object类型,所以在使用时先要对资源对象进 ...
贪吃蛇小游戏 pycharm——pygame game.py import pygame # 导包 from game_items import * # 导类和变量 class Game(object): # 这里的object类,意为顶级/基础类。 def __init__(self): self ...
分类:
编程语言 时间:
2020-07-30 14:24:28
阅读次数:
72