jdbc.properties#hibernate settings hibernate.show_sql=truehibernate.format_sql=truehibernate.cache.use_query_cache=truehibernate.cache.provider_class=...
分类:
编程语言 时间:
2014-07-07 12:43:02
阅读次数:
184
1、meta标签大多数移动浏览器将HTML页面放大为宽的视图(viewport)以符合屏幕分辨率。你可以使用视图的meta标签来进行重置。下面的视图标签告诉浏览器,使用设备的宽度作为视图宽度并禁止初始的缩放。在标签里加入这个meta标签IE8或者更早的浏览器并不支持Media Query。你可以使用...
分类:
Web程序 时间:
2014-07-07 12:12:20
阅读次数:
190
PHP 输出json。 $result = mysql_query($sql); //查询结果 $users=array(); $i=0; while($row=mysql_fetch_array($result,MYSQL_ASSOC)){ $users[$i]=$row; $i+...
分类:
编程语言 时间:
2014-07-07 11:12:16
阅读次数:
293
open a cmd window and type reg query "HKCU\Control Panel\International" which will show you the values as you want them.Then to modify them, use REG A...
分类:
其他好文 时间:
2014-07-06 23:26:01
阅读次数:
1227
2014年第一个脚本,哈哈!!! expect实现远程主机自动执行命令脚本:#!/usr/bin/expect --if { [llength $argv] < 4 } { puts "Usage: $argv0 ip user passwd port commands timeout" exit ...
分类:
其他好文 时间:
2014-07-06 16:23:01
阅读次数:
341
转载自:http://blog.csdn.net/yuhua3272004/article/details/2909538Hibernate3.0 採用新的基于ANTLR的HQL/SQL查询翻译器,在Hibernate的配置文件里,hibernate.query.factory_class属性用来选...
分类:
系统相关 时间:
2014-07-05 20:45:47
阅读次数:
295
url: 要求为String类型的参数,(默认为当前页地址)发送请求的地址。type: 要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put和 delete也可以使用,但仅部分浏览器支持。timeout: 要求为Number类型的参数,设置请求...
分类:
其他好文 时间:
2014-07-05 19:15:26
阅读次数:
179
function curlBy($url, $data=array()){ $ch = curl_init(); if(!empty($data)){ if (is_array($data) && $data) { $formdata = http_build_query($data); curl....
分类:
其他好文 时间:
2014-07-05 17:10:24
阅读次数:
228
Linux下还原数据库代码:
1,创建一个空的数据库cddl
mysql> create database cddl;
Query OK, 1 row affected (0.00 sec)
2,还原数据库
[root@chicago mysqlsoftware]# cd /etc/rc.d/init.d
[root@chicago mysqlsoftware]# cd /etc/rc...
分类:
数据库 时间:
2014-07-04 08:58:17
阅读次数:
301
Hibernate Query Language(HQL)Criteria QueryNative SQL下面对其分别进行解释select子句:有时并不需要取得对象的所有属性,这时可以使用select子句进行属性查询,如select s.name from Student s。例:voidHQLse...
分类:
系统相关 时间:
2014-07-02 18:24:33
阅读次数:
326