- 博客(21)
- 收藏
- 关注
转载 离线安装Chrome Postman 和Postman Interceptor 插件
由于无法访问国外网络,所以安装chrome的插件一直是心中的痛。 老版本的postman已经无法使用了,怀念老的postman,可以直接使用chrome的开发者工具来进行调试,github地址https://github.com/postmanlabs/postman-chrome...
2017-07-21 22:03:00
724
转载 Hibernate sql查询转为对象
hibernate 查询转换为指定的Bean,自带AliasToBeanResultTransformer必须把数据库列指定别外与Bean的属性相同,自定义实现数据库列直接转为属性 自定义转换类ToBeanResultTransformer import java.math.B...
2017-03-27 17:54:00
357
转载 基础表
CREATE TABLE `dictionary` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, `key` varchar(100) NOT NULL, `descr` varcha...
2016-11-29 20:44:00
182
转载 异常处理
public class MyExceptionHandler implements HandlerExceptionResolver { private final Log LOGGER = LogFactory.getLog(this.getClass()); @Ove...
2016-05-31 10:19:00
96
转载 Java获取泛型参数
protectedDataTableService(){ this.entityClass=null; Classclazz=getClass(); Typetype=clazz.getGenericSuperclass(); ...
2015-09-07 17:54:00
96
转载 jquery开发自定义的插件
先从简单的开始。首先我们要了解一下什么叫jquery,jquery是对js的一系列的分装,说白了他就是js的分装以后的产物。但是我们用jquery来实现会更加的方便。使用jquery的插件也很简单。只需要jquery的官网下载最新版本的jquery,然后再我们的网页的head下面引用一下就好了...
2015-09-02 17:48:00
73
转载 java 判断类和实例的关系
1、instanceOf关键字,用来判断对象是否是类的实例2、isAssignableFrom,用来判断类型间是否存在派生关系3、isInstance方法,用来判断对象是否属于某个类型的实例 //useinstanceOf,用来判断对象是否是类的实例 System.out.prin...
2015-09-02 17:34:00
105
转载 jquery datatable
columns render $(document).ready(function(){ $('#example').DataTable({ "columns":[ {"data":"name"}, ...
2015-09-01 14:46:00
98
转载 其它
阻止事件冒泡 $("#id").click(function(event){ event.stopPropagation(); }); 转载于:https://my.osch...
2015-09-01 13:54:00
92
转载 选择内容
选择所有已选择的checkbox var$checkbox=$("#listTabletbodyinput[type='checkbox']:checked"); 记录表格选择状态,翻页用 vardetailRows=[]; varidx=$.i...
2015-09-01 10:48:00
111
转载 nginx
nginx server name 过长 nginx.conf http{ server_names_hash_bucket_size 64;} 转载于:https://my.os...
2015-08-13 16:39:00
82
转载 @Value
In this tutorial, we will show you how to set a default value for@Value 1. @Value Examples To set a default value in Spring expression, useEl...
2015-07-31 17:50:00
106
转载 spring test
@RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations={"/applicationContext.xml"}) @ActiveProfiles("development") ...
2015-07-31 17:44:00
83
转载 Mysql
创建数据库CREATE DATABASE IF NOT EXISTS yourdbname DEFAULT CHARSET utf8 COLLATE utf8_general_ci; 备份,还原mysqldump备份:mysqldump -u用户名 -p密码 -h主机 数据库...
2015-07-24 15:16:00
93
转载 iptables
表:filter、nat、mangle 链:INPUT、OUTPUT、FORWARD,PREROUTING,POSTROUTING 动作:ACCEPT,DROP 定义默认策略iptables [-t 表名] <-P> <链名> <动作> 查...
2015-07-24 11:26:00
79
转载 ntpdate
s1a.time.edu.cn 北京邮电大学 s1b.time.edu.cn 清华大学 s1c.time.edu.cn 北京大学 s1d.time.edu.cn 东南大学 s1e.time.edu.cn 清华大学 s2a.time.edu.cn 清华大学 s2b.time.edu.cn 清华大...
2015-07-24 11:18:00
317
转载 crontab
直接用crontab命令编辑 # Example of job definition:# .---------------- minute (0 - 59)# | .------------- hour (0 - 23)# | | .---------- day of month ...
2015-07-24 10:58:00
113
转载 jquery.layout
<scripttype="text/javascript"> $(function(){ $("body").layout({ applyDefaultStyles:true,//应用默认样式 ...
2015-05-28 15:22:00
236
转载 jackson 自定义序列化
/** *jsonnull值不返回 * *@authorxulin *@version1.02015年3月10日 */ publicclassNotNullObjectMapperextendsObjectMapper{ privatestaticfi...
2015-03-12 19:06:00
248
转载 httpclient4.3
PoolingHttpClientConnectionManagercm=newPoolingHttpClientConnectionManager(); cm.setMaxTotal(XXX);//连接池最大并发连接数 cm.setDefaultMax...
2015-01-26 16:27:00
78
转载 CSS
text-overflow:ellipsis;//让截断的文字显示为点点。还有一个值是clip意思是截断不显示点点 white-space:nowrap;//让文字不换行 overflow:hidden;//超出要隐藏 ...
2014-09-10 09:05:00
89
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人