posted @ 2015-11-24 16:44
new PersonBean()
阅读(133)
推荐(0)
posted @ 2015-08-11 15:14
new PersonBean()
阅读(113)
推荐(0)
摘要:
在虚拟机安装完mysql后,配置bin到环境变量path,cmd登陆mysql ,>>mysql -hlocalhost -uroot -ppassword>>use mysql>>Grant all privileges on *.* to 'root'@'%' identified by 'password' with grant option;>>select user,host,password from user;这时可以从主机试下登陆虚拟机mysqlhost:192.168.*.*(分配
阅读全文
posted @ 2013-12-08 19:37
new PersonBean()
阅读(257)
推荐(0)
摘要:
//实现接口public interface MyInterface { void pri();}public class TestClass1 { public MyInterface test(){ return new MyInterface(){ public void pri() { System.out.println(1); } }; } public static void main(String[] args) { MyInterface...
阅读全文
posted @ 2013-10-09 15:51
new PersonBean()
阅读(1971)
推荐(0)
摘要:
文本输入框特效大集合1、选中后方可编辑:我会好好学习 你的姓名:2、点击链接后方可编辑: 先点击我哦! 你的姓名:3、输入框从中间输入: 从中间输入:4、输入框变色: 输入框变色:5、输入框只能输入数字(用的是正则表达式): 你的年龄:6、输入框只能输入中文(用的是正则表达式): 你的中文名:7、只能输入英文和数字(用的是正则表达式):你的昵称:8、输入框不能编辑,但表单可以获得输入框内的值: 总和: 总和:9、输入框禁止输入法:
阅读全文
posted @ 2013-09-17 12:18
new PersonBean()
阅读(194)
推荐(0)
摘要:
jQuery获取Select选择的Text和Value: 1. var checkText=jQuery("#select_id").find("option:selected").text(); //获取Select选择的Text 2. var checkValue=jQuery("#select_id").val(); //获取Select选择的option Value 3. var checkIndex=jQuery("#select_id ").get(0).selectedIndex; //获取Selec
阅读全文
posted @ 2013-09-17 10:29
new PersonBean()
阅读(213)
推荐(0)
摘要:
1 HashMap不是线程安全的 hastmap是一个接口 是map接口的子接口,是将键映射到值的对象,其中键和值都是对象,并且不能包含重复键,但可以包含重复值。HashMap允许null key和null value,而hashtable不允许。2 HashTable是线程安全的一个Collection。HashMap是Hashtable的轻量级实现(非线程安全的实现),他们都完成了Map接口,主要区别在于HashMap允许空(null)键值(key),由于非线程安全,效率上可能高于Hashtable。HashMap允许将null作为一个entry的key或者value,而Hashtable
阅读全文
posted @ 2013-09-16 23:35
new PersonBean()
阅读(162)
推荐(0)
摘要:
Struts2-2.3.15.1:http://mirrors.cnnic.cn/apache//struts/binaries/struts-2.3.15.1-all.zipSpring-3.3.0:http://repo.springsource.org/libs-milestone-local/org/springframework/spring/4.0.0.M3/spring-framework-4.0.0.M3-dist.zipHibernate-4.2.4:http://ncu.dl.sourceforge.net/project/hibernate/hibernate4/4.2.
阅读全文
posted @ 2013-09-12 10:39
new PersonBean()
阅读(431)
推荐(0)
摘要:
解决方法一:(最重要的一种方法) 你看下my.ini,有无 [mysql]default-character-set=utf8[client] default-character-set=utf8[mysqld] default-character-set=utf8 然后建立表时,也要用(比如) DROP TABLE IF EXISTS `Company`; CREATE TABLE IF NOT EXISTS `Company` ( `Cname` VARCHAR(10) NOT NULL, `Caddr` VARCHAR(100), `Ctel` VARCHAR(16) )ENGIN...
阅读全文
posted @ 2013-09-06 10:59
new PersonBean()
阅读(505)
推荐(0)
摘要:
public String read(String urlString){ try { StringBuffer html = new StringBuffer(); URL url = new URL(urlString); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); InputStreamReader inputReader = new InputStreamReader(conn...
阅读全文
posted @ 2013-09-06 08:41
new PersonBean()
阅读(321)
推荐(0)