1、hibernate.cfg.xml配置如下: (数据库连接配置)
com.mysql.jdbc.Driver
jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&characterEnc...
分类:
系统相关 时间:
2014-05-10 08:13:33
阅读次数:
688
使用工具:Eclipse Stardard 4.32版本(window7环境)
今天我们通过一个及其简单的例子来分析一个java程序是如何在我们的及其上跑起来的。部分内容是参考其他人的,会在参考的地方注明。
我的测试代码部分如下:
public class Test {
public static void main(String[] args) {
new Test()...
分类:
编程语言 时间:
2014-05-10 04:40:10
阅读次数:
414
今天遇到一个问题调试了很久,关于css的优先级问题.像常规的id选择器(#test) >
类选择器class(.test) > 标签选择器input (中间还有一些类型不详举了),相比大家都很清楚这次遇到就是input[type=text]
{background:red} 和 类选择器 .aa{b...
分类:
Web程序 时间:
2014-05-10 03:07:59
阅读次数:
387
测试webservice的时候,如果出现这个错误:"The test form is only
available for requests from the local machine" 在web.config中加入以下配置,就可以解决问题。
也就是说,在默认情况下,...
分类:
Web程序 时间:
2014-05-10 02:24:13
阅读次数:
352
关于mysql备份还原命令操作,一切都在cmd中进行,不是进入mysql命令行**************************************************************备份命令:(命令不需要输入密码,输入密码会被认为是数据库的名字,密码等按回车会提示输入)mysqldump-hlocalhost-uroot-ptest>d:/test...
分类:
数据库 时间:
2014-05-09 21:38:00
阅读次数:
397
class Student { private string _name; public int
Age = 0; public static void Test() { Student stu = new ...
分类:
其他好文 时间:
2014-05-09 20:27:01
阅读次数:
305
一:mysql创建一个修改表字段的存储过程drop procedure if exists
pr_test;create procedure pr_test()begin declare var int; declare var1 int; set
var=416; set var1=420; wh...
分类:
数据库 时间:
2014-05-09 20:17:20
阅读次数:
460
/*验证邮箱格式*/ function checkEmail(strEmail){
if(!/^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/ .test(strEmail)){ return
false; } else ...
分类:
Web程序 时间:
2014-05-09 20:02:19
阅读次数:
482
Linux环境下使用python调用C的printf例子:#!/usr/bin/env
python2.7#-*- coding:utf-8 -*-from ctypes import *def test(): #libc =
cdll.LoadLibrary("libc.so.6") ...
分类:
编程语言 时间:
2014-05-09 19:51:59
阅读次数:
469
using System;using System.IO;using
System.Security.Cryptography;using System.Text;namespace Test{ public class
MD5Code { /// /// ...
分类:
其他好文 时间:
2014-05-09 19:43:27
阅读次数:
277