javaµÝ¹éÉú³ÉÏÂÀÁбí¿ò
½ñÌìÓöµ½Ò»¸öÒªÉú³ÉÒ»¸öÏÂÀÁбí¿òµÄÎÊÌ⣬ÎÒµÄÏë·¨ÊÇ£º½«Êý¾Ý¿âÄÚµÄËùÓÐÊý¾Ý¶¼´æ´¢µ½Ò»¸öListÀïÃ棬ÔÙÔÚǰ̨±éÀúÕû¸ölist¡£
Ö´ÐÐЧ¹ûͼ£º
Ë®¹û
→Æ»¹û
→→Æ»¹ûϵÁÐ1
→→Æ»¹ûϵÁÐ2
→→Æ»¹ûϵÁÐ3
→→Æ»¹ûϵÁÐ4
→Àæ
→ÌÒ×Ó
ѧϰÓÃÆ·
→±Ê
→→Ǧ±Ê
→→¸Ö±Ê
→→ë±Ê
→±Ê¼Ç±¾
¾ßÌåÎÊÌâÈçÏ£º
ËùÒª»ñÈ¡µÄÊý¾ÝÊÇÔÚͬһ¸ö±íÄÚ£¬±í×Ö¶ÎÓÐ hplb_id hplb_mingcheng hplb_shangjiid
ÏëÒª½â¾ö´ËÀàÎÊÌ⣬×îºÃµÄ·½·¨£¬¾ÍÊÇÀûÓõݹ顣
ÏÈ˵һÏ£¬ÎÒÊÇÀûÓÃhibernateÀ´×öµÄÊý¾Ý¿â²éѯ£¬²éѯµÄ±íÃûΪ£ºTb_Huopinleibie£¬¶ÔÓ¦µÄʵÌåÀàΪTbHuopinleibie£¬»¹Óõ½Ò»¸ödaoÀࣺHuopinleibieDaoImpl¡£
//TbHuopinleibieʵÌåÀà
public class TbHuopinleibie{
// Fields
@Override
public String toString() {
return this.hplbMingcheng;
}
private Integer hplbId;
private String hplbMingcheng;
private Integer hplbShangjiId;
// Constructors
/** default constructor */
public TbHuopinleibie() {
}
// Property accessors
public Integer getHplbId() {
return this.hplbId;
}
public void setHplbId(Integer hplbId) {
this.hplbId = hplbId;
}
public String getHplbMingcheng() {
return this.hplbMingcheng;
}
public void setHplbMingcheng(String hplbMingcheng) {
this.hplbMingcheng = hplbMingcheng;
}
public Integer getHplbShangjiId() {
return this.hplbShangjiId;
}
public void setHplbShangjiId(Integer hplbShangjiId) {
this.hplbShangjiId = hplbShangjiId;
}
}
//HuopinleibieDaoImpl Íê³ÉÊý¾Ý¿âµÄ²éѯ£¬ÕâÀïÈç¹ûÄãûÓÐÓÃhibernateÒ²¿ÉÒÔ×Ô¼º·â×°Õâ¸öÀֻ࣬ҪÄܹ»Íê³ÉÊý¾Ý¿âµÄ²éѯ¾Í¿ÉÒÔÁË¡£
import java.util.*;
public class HuopinleibieDaoImpl {
public List queryByHQL(String hql) {
SessionFactory factory = HibernateUtils.getSessionFactory();
Session session = null;
Transaction ts = null;
List list = null;
try {
session = factory.openSession();
ts = session.beginTransaction();
ts.begin();
list = session.createQuery(hql).list();
ts.commit();
} c
Ïà¹ØÎĵµ£º
JavaỊ̈߳ºÐÂÌØÕ÷-ÕÏ°Æ÷
Java5ÖУ¬Ìí¼ÓÁËÕÏ°Æ÷À࣬ΪÁËÊÊÓ¦Ò»ÖÖеÄÉè¼ÆÐèÇ󣬱ÈÈçÒ»¸ö´óÐ͵ÄÈÎÎñ£¬³£³£ÐèÒª·ÖÅäºÃ¶à×ÓÈÎÎñÈ¥Ö´ÐУ¬Ö»Óе±ËùÓÐ×ÓÈÎÎñ¶¼Ö´ÐÐÍê³Éʱºò£¬²ÅÄÜÖ´ÐÐÖ÷ÈÎÎñ£¬Õâʱºò£¬¾Í¿ÉÒÔÑ¡ÔñÕÏ°Æ÷ÁË¡£
ÕÏ°Æ÷ÊǶàÏ̲߳¢·¢¿ØÖƵÄÒ»ÖÖÊֶΣ¬Ó÷¨ºÜ¼òµ¥¡£ÏÂÃæ¸ø¸öÀý×Ó£º
import jav ......
java ÊÓƵ´¦Àí ffmped+mencoder
תÔØ×Ô http://huqilong.blog.51cto.com/53638/136985
ffmpeg+mencoder¼¸ºõ¿ÉÒÔÍê³ÉÄ¿Ç°»ùÓÚwebµÄ²¥¿Íƽ̨ÈκÎÒôÊÓƵ´¦ÀíµÄ²Ù×÷.Èç¹û»¹ÐèÒªÌí¼ÓһЩʲôµÄ»°,ÄÇô¾ÍÊÇÊÓƵÔÚÏß¼Öƹ¦ÄÜÁË,Õâ¸öÒ²¿ÉÒÔÓÃffmpeg+fmsÀ´Íê³É,Òò´ËÒ»°ãµÄÀàËÆÓÚYouTubeµÄһЩ¿É¼û¹¦Äܶ¼¿ÉÒÔÔÚffmpeg+menco ......
°æȨÉùÃ÷£º×ªÔØʱÇëÒÔ³¬Á´½ÓÐÎʽ±êÃ÷ÎÄÕÂÔʼ³ö´¦ºÍ×÷ÕßÐÅÏ¢¼°±¾ÉùÃ÷
http://as112255.blogbus.com/logs/38662785.html
package com.softeem.jbs.lesson4;
import java.util.Random;
/**
* ÅÅÐò²âÊÔÀà
*
* ÅÅÐòËã·¨µÄ·ÖÀàÈçÏ£º
* 1.²åÈëÅÅÐò£¨Ö±½Ó²åÈëÅÅÐò¡¢ÕÛ°ë²åÈëÅÅÐ ......
synchronized£º ͬ²½µÄ
synchronizedÔÚ²Ù×÷ÉÏÓÐÁ½ÖÖÓ°Ïì¶ÔÏóµÄÇé¿ö£º
1) ÔÚij¸ö¶ÔÏóʵÀýÄÚ£¬synchronized method(){}¿ÉÒÔ·ÀÖ¹¶à¸öÏß³Ìͬʱ·ÃÎÊÕâ¸ö¶ÔÏóµÄsynchronized·½·¨£¨Èç¹ûÒ»¸ö¶ÔÏóÓжà¸ösynchronized·½·¨£¬Ö»ÒªÒ»¸öÏ̷߳ÃÎÊÁËÆäÖеÄÒ»¸ösynchronized·½·¨£¬ÆäËüÏ̲߳»ÄÜͬʱ·ÃÎÊÕâ¸ö¶ÔÏóÖÐÈκÎÒ»¸ösynchronized·½·¨£ ......
windows xpÏÂÅäÖÃJDK»·¾³±äÁ¿£º
1.°²×°JDK£¬°²×°¹ý³ÌÖпÉÒÔ×Ô¶¨Ò尲װĿ¼µÈÐÅÏ¢£¬ÀýÈçÎÒÃÇÑ¡Ôñ°²×°Ä¿Â¼ÎªD:\java\jdk1.5.0_08£»
¡¡ 2.°²×°Íê³Éºó£¬ÓÒ»÷“ÎҵĵçÄÔ”£¬µã»÷“ÊôÐÔ”£»
3.Ñ¡Ôñ“¸ß¼¶”Ñ¡Ï£¬µã»÷“ ......