The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Now your job is to find the total ...
分类:
其他好文 时间:
2017-10-25 13:12:08
阅读次数:
95
得到表单数据:1、String str = request.getParameter(String)//根据表单名得到表单值,如果是多个同名的键值,返回第一个值。2、String[] str= request.getParameterValues(String)//根据表单名得到表单值的数组,将同名 ...
分类:
其他好文 时间:
2017-10-25 00:59:49
阅读次数:
135
分布式事务是企业集成中的一个技术难点,也是每一个分布式系统架构中都会涉及到的一个东西,特别是在微服务架构中,几乎可以说是无法避免,本文就分布式事务来简单聊一下。 数据库事务 在说分布式事务之前,我们先从数据库事务说起。 数据库事务可能大家都很熟悉,在开发过程中也会经常使用到。但是即使如此,可能对于一 ...
分类:
其他好文 时间:
2017-10-25 00:50:35
阅读次数:
190
//字体 private static BaseFont bfChinese = BaseFont.CreateFont(@"C:\Windows\Fonts\simsun.ttc,1", BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED); private Fo... ...
分类:
其他好文 时间:
2017-10-24 18:27:36
阅读次数:
201
Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All occurrenc ...
分类:
其他好文 时间:
2017-10-24 17:14:18
阅读次数:
147
List<Bean> lbean =newArrayList<>();//添加几个实体类到list里面Collections.sort(lbean, new Comparator<Bean>(){ publicintcompare(Beano1,Beano2) { //按照创建时间降序排列 if(o ...
分类:
编程语言 时间:
2017-10-24 14:59:54
阅读次数:
155
首先定义抽象类BaseTest 实现类直接使用@Resource注入bean,使用@Test注解编写测试方法 ...
分类:
其他好文 时间:
2017-10-24 13:10:25
阅读次数:
182
Suppose that a website contains two tables, the Customers table and the Orders table. Write a SQL query to find all customers who never order anything ...
分类:
其他好文 时间:
2017-10-24 11:34:41
阅读次数:
158
1、安装纯净版2008R2系统,先开防火墙,改3389端口; 在注册表中修改两个位置: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp HKEY_LOCAL_MACHINE\S ...
分类:
数据库 时间:
2017-10-23 01:15:03
阅读次数:
234
什么是cookie 1.cookie是存储于访问者计算机中的变量2.cookie是浏览器提供的一种机制3.可以由js控制(设置、读取、删除)4.cookie可以实现跨页面全局变量可以跨越同域名下多个网页,但不能跨越多个域名使用5.同一个网站所有页面共享一套cookie 可以设置有效期限存储空间大概4 ...
分类:
Web程序 时间:
2017-10-22 23:27:23
阅读次数:
276