锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲六月丁香婷婷综合,中文字幕亚洲图片,亚洲国产午夜精品理论片http://www.tkk7.com/GavinMiao/category/49352.html鎴戝湪浠版湜錛宩ava涔嬩笂zh-cnFri, 13 Sep 2019 16:51:02 GMTFri, 13 Sep 2019 16:51:02 GMT60緙栫爜鑷抽珮娉曞垯-楂樺唴鑱氫綆鑰﹀悎http://www.tkk7.com/GavinMiao/archive/2019/09/11/434613.htmlGavinMiaoGavinMiaoWed, 11 Sep 2019 07:59:00 GMThttp://www.tkk7.com/GavinMiao/archive/2019/09/11/434613.htmlhttp://www.tkk7.com/GavinMiao/comments/434613.htmlhttp://www.tkk7.com/GavinMiao/archive/2019/09/11/434613.html#Feedback0http://www.tkk7.com/GavinMiao/comments/commentRss/434613.htmlhttp://www.tkk7.com/GavinMiao/services/trackbacks/434613.html闃呰鍏ㄦ枃

GavinMiao 2019-09-11 15:59 鍙戣〃璇勮
]]>
鍏徃鍙g鍙婂緟閬囪瘎浠風殑緗戠珯http://www.tkk7.com/GavinMiao/archive/2012/03/27/372859.htmlGavinMiaoGavinMiaoTue, 27 Mar 2012 15:13:00 GMThttp://www.tkk7.com/GavinMiao/archive/2012/03/27/372859.htmlhttp://www.tkk7.com/GavinMiao/comments/372859.htmlhttp://www.tkk7.com/GavinMiao/archive/2012/03/27/372859.html#Feedback1http://www.tkk7.com/GavinMiao/comments/commentRss/372859.htmlhttp://www.tkk7.com/GavinMiao/services/trackbacks/372859.htmlhttp://www.b1.tooyard.com/
2.鍒嗘櫤緗戯細http://www.fenzhi.com/  
3.鎴戣瘎it錛?a >http://wopingit.com/   
4.浼佷笟鐐硅瘎緗戯細http://www.71dp.com/   
5.涓浗浼佷笟璇勪環緗戯細 http://www.ceea.net.cn/  
6.鍏徃鐐硅瘎緗戯細http://www.gsdpw.com/  
7.浼佷笟浠樿垂閭璇烽潰璇曪細http://www.tradecv.com/

GavinMiao 2012-03-27 23:13 鍙戣〃璇勮
]]>
window涓媎os紿楀彛涓枃涔辯爜瑙e喅鍔炴硶http://www.tkk7.com/GavinMiao/archive/2012/03/20/372258.htmlGavinMiaoGavinMiaoTue, 20 Mar 2012 03:16:00 GMThttp://www.tkk7.com/GavinMiao/archive/2012/03/20/372258.htmlhttp://www.tkk7.com/GavinMiao/comments/372258.htmlhttp://www.tkk7.com/GavinMiao/archive/2012/03/20/372258.html#Feedback0http://www.tkk7.com/GavinMiao/comments/commentRss/372258.htmlhttp://www.tkk7.com/GavinMiao/services/trackbacks/372258.html榪涘叆娉ㄥ唽琛細
HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe
鏂板緩DWORD鍊鹼紝鐒跺悗閲嶅懡鍚嶄負錛欳odePage錛屼慨鏀瑰叾鍊間負鍗佽繘鍒剁殑936

GavinMiao 2012-03-20 11:16 鍙戣〃璇勮
]]>
POI瀛︿範http://www.tkk7.com/GavinMiao/archive/2012/02/22/370488.htmlGavinMiaoGavinMiaoWed, 22 Feb 2012 02:01:00 GMThttp://www.tkk7.com/GavinMiao/archive/2012/02/22/370488.htmlhttp://www.tkk7.com/GavinMiao/comments/370488.htmlhttp://www.tkk7.com/GavinMiao/archive/2012/02/22/370488.html#Feedback0http://www.tkk7.com/GavinMiao/comments/commentRss/370488.htmlhttp://www.tkk7.com/GavinMiao/services/trackbacks/370488.htmlPOI鎵鏈夌粍浠訛細




GavinMiao 2012-02-22 10:01 鍙戣〃璇勮
]]>
MyEclipse淇敼欏圭洰鍚嶇Оhttp://www.tkk7.com/GavinMiao/archive/2011/12/03/365484.htmlGavinMiaoGavinMiaoSat, 03 Dec 2011 15:37:00 GMThttp://www.tkk7.com/GavinMiao/archive/2011/12/03/365484.htmlhttp://www.tkk7.com/GavinMiao/comments/365484.htmlhttp://www.tkk7.com/GavinMiao/archive/2011/12/03/365484.html#Feedback1http://www.tkk7.com/GavinMiao/comments/commentRss/365484.htmlhttp://www.tkk7.com/GavinMiao/services/trackbacks/365484.html欏圭洰涓婂彸鍑婚紶鏍?->Properties-->MyEclipse-->Web-->Content Root-->Web content-root-->鏀規垚浣犳兂瑕佺殑欏圭洰鍚?鍗沖彲

GavinMiao 2011-12-03 23:37 鍙戣〃璇勮
]]>
杞澆錛歵omcat鍚勭閰嶇疆鍙婄紪鐮佽緗?/title><link>http://www.tkk7.com/GavinMiao/archive/2011/12/01/365266.html</link><dc:creator>GavinMiao</dc:creator><author>GavinMiao</author><pubDate>Thu, 01 Dec 2011 02:49:00 GMT</pubDate><guid>http://www.tkk7.com/GavinMiao/archive/2011/12/01/365266.html</guid><wfw:comment>http://www.tkk7.com/GavinMiao/comments/365266.html</wfw:comment><comments>http://www.tkk7.com/GavinMiao/archive/2011/12/01/365266.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/GavinMiao/comments/commentRss/365266.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/GavinMiao/services/trackbacks/365266.html</trackback:ping><description><![CDATA[    鍙湁娉ㄥ唽鐢ㄦ埛鐧誨綍鍚庢墠鑳介槄璇昏鏂囥?a href='http://www.tkk7.com/GavinMiao/archive/2011/12/01/365266.html'>闃呰鍏ㄦ枃</a><img src ="http://www.tkk7.com/GavinMiao/aggbug/365266.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/GavinMiao/" target="_blank">GavinMiao</a> 2011-12-01 10:49 <a href="http://www.tkk7.com/GavinMiao/archive/2011/12/01/365266.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>XP 鐢ㄥ懡浠ゆ煡鐪嬪拰鏉姝昏繘紼?/title><link>http://www.tkk7.com/GavinMiao/archive/2011/11/28/364996.html</link><dc:creator>GavinMiao</dc:creator><author>GavinMiao</author><pubDate>Mon, 28 Nov 2011 07:28:00 GMT</pubDate><guid>http://www.tkk7.com/GavinMiao/archive/2011/11/28/364996.html</guid><wfw:comment>http://www.tkk7.com/GavinMiao/comments/364996.html</wfw:comment><comments>http://www.tkk7.com/GavinMiao/archive/2011/11/28/364996.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/GavinMiao/comments/commentRss/364996.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/GavinMiao/services/trackbacks/364996.html</trackback:ping><description><![CDATA[<span id="dpvtxnd" class="Apple-style-span" style="font-family: 瀹嬩綋, Arial; background-color: #fffcf3; ">1錛氭煡鐪?080绔彛鍗犵敤鎯呭喌錛?br />C:\Documents and Settings\Administrator>netstat -aon | findstr "8080"<br />  TCP    0.0.0.0:<strong><font color="#008000" style="line-height: 1.5; ">8080</font></strong>           0.0.0.0:0              LISTENING       <font color="#F00000" style="line-height: 1.5; "><strong>3608<br /><br /></strong></font></span>2<span id="n7dhvv1" class="Apple-style-span" style="font-family: 瀹嬩綋, Arial; background-color: #fffcf3; ">錛氭煡鐪嬭繘紼?br /><br />C:\Documents and Settings\Administrator>tasklist | findstr "3608"<br /><font color="#0000F0" style="line-height: 1.5; "><strong>javaw.exe</strong></font>                   3608 Console                 0     69,484 K<br /><br />3.鏉榪涚▼錛?br /><div>tskill 3608</div></span><img src ="http://www.tkk7.com/GavinMiao/aggbug/364996.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/GavinMiao/" target="_blank">GavinMiao</a> 2011-11-28 15:28 <a href="http://www.tkk7.com/GavinMiao/archive/2011/11/28/364996.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>MyEclipse + Tomcat欏圭洰閲嶅懡鍚?/title><link>http://www.tkk7.com/GavinMiao/archive/2011/11/15/363844.html</link><dc:creator>GavinMiao</dc:creator><author>GavinMiao</author><pubDate>Tue, 15 Nov 2011 07:09:00 GMT</pubDate><guid>http://www.tkk7.com/GavinMiao/archive/2011/11/15/363844.html</guid><wfw:comment>http://www.tkk7.com/GavinMiao/comments/363844.html</wfw:comment><comments>http://www.tkk7.com/GavinMiao/archive/2011/11/15/363844.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/GavinMiao/comments/commentRss/363844.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/GavinMiao/services/trackbacks/363844.html</trackback:ping><description><![CDATA[<span style="color: #2e2e2e; font-family: 瀹嬩綋; font-size: 15px; line-height: 24px; background-color: #f2f9ff; ">鏂囩珷鏉ユ簮錛?br />闂鎻忚堪錛?br />鍘熸潵欏圭洰鍚嶇О鏄痵hopping錛岄儴緗插埌tomcat鍚庣洿鎺ヨ緭鍏ュ湴鍧绔彛鍚庡姞欏圭洰鍚峢ttp://localhost:8080/shopping灝卞彲浠ユ祻瑙堜富欏典簡錛屽悗鏉ユ垜鎶婇」鐩悕鏀規垚shoppingCar錛岄噸鏂伴儴緗插埌tomcat鍚庡彂鐜伴儴緗茶繃鍘葷殑欏圭洰榪樻槸shopping鑰屼笉鏄痵hoppingCar<br />瑙e喅鏂規錛?br />鍦∕yEclipse閲岄潰鍙妸欏圭洰閲嶅懡鍚嶆槸涓嶈鐨勶紝榪樿淇敼浠ヤ笅鍐呭錛?br />欏圭洰→properties→MyEclipse→Web涓嬩慨鏀筗eb Context-root鐨勫悕瀛椾負閲嶅懡鍚嶄箣鍚庣殑鍚嶅瓧鍗沖彲銆?/span><img src ="http://www.tkk7.com/GavinMiao/aggbug/363844.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/GavinMiao/" target="_blank">GavinMiao</a> 2011-11-15 15:09 <a href="http://www.tkk7.com/GavinMiao/archive/2011/11/15/363844.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>杞澆錛氬湪欏圭洰涓嬌鐢ㄥ涓暟鎹簮錛嶅sessionFactory鏂規http://www.tkk7.com/GavinMiao/archive/2011/11/14/363689.htmlGavinMiaoGavinMiaoMon, 14 Nov 2011 08:11:00 GMThttp://www.tkk7.com/GavinMiao/archive/2011/11/14/363689.htmlhttp://www.tkk7.com/GavinMiao/comments/363689.htmlhttp://www.tkk7.com/GavinMiao/archive/2011/11/14/363689.html#Feedback0http://www.tkk7.com/GavinMiao/comments/commentRss/363689.htmlhttp://www.tkk7.com/GavinMiao/services/trackbacks/363689.html

閫傜敤鑼冨洿錛氶傚悎SSH鏋舵瀯璁塊棶澶氫釜鏁版嵁搴擄紝鏁版嵁搴撶殑綾誨瀷鍜岃〃緇撴瀯涓嶅繀鐩稿悓錛屼笖娌℃湁璺ㄥ簱浜嬪姟鐨勬儏鍐碉紙璺ㄥ簱浜嬪姟鏈濂界敤鍒嗗竷寮忎簨鍔″鐞嗭級銆?/p>

鏂囩珷鏉ユ簮錛?a >http://apps.hi.baidu.com/share/detail/15756344

瀹炵幇鏂瑰紡錛?font color="#ff0000">鎴戜滑鍙互鍦╯pring鐨勯厤緗枃浠朵腑閰嶇疆澶氫釜sessionFactory,濡傦細
<bean id="aDataSource"
   class="org.apache.commons.dbcp.BasicDataSource"
   destroy-method="close">
   <property name="driverClassName">
    <value>${adriver}</value>
   </property>
   <property name="url">
    <value>${aurl}</value>
   </property>
   <property name="username">
    <value>${ausername}</value>
   </property>
   <property name="password">
    <value>${apassword}</value>
   </property>
</bean>
<bean id="bDataSource"
   class="org.apache.commons.dbcp.BasicDataSource"
   destroy-method="close">
   <property name="driverClassName">
    <value>${bdriver}</value>
   </property>
   <property name="url">
    <value>${burl}</value>
   </property>
   <property name="username">
    <value>${busername}</value>
   </property>
   <property name="password">
    <value>${bpassword}</value>
   </property>
</bean>
<bean id="cDataSource"
   class="org.apache.commons.dbcp.BasicDataSource"
   destroy-method="close">
   <property name="driverClassName">
    <value>${cdriver}</value>
   </property>
   <property name="url">
    <value>${curl}</value>
   </property>
   <property name="username">
    <value>${cusername}</value>
   </property>
   <property name="password">
    <value>${cpassword}</value>
   </property>
</bean>

 

<!-- Hibernate SessionFactorys -->
<bean id="aSessionFactory"
   class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
   <property name="dataSource">
    <ref local="aDataSource" />
   </property>
   <property name="mappingResources">
    <list>
     <value>
      .hbm.xml鏂囦歡
     </value>
    </list>
   </property>
   <property name="hibernateProperties">
    <props>
     <prop key="hibernate.dialect">
      ${ahibernate.dialect}
     </prop>
     <prop key="hibernate.show_sql">true</prop>
     <prop key="format_sql">true</prop>
    </props>
   </property>
</bean>

<bean id="bSessionFactory"
   class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
   <property name="dataSource">
    <ref local="bDataSource" />
   </property>
   <property name="mappingResources">
    <list>
     <value>
      .hbm.xml鏂囦歡
     </value>
    </list>
   </property>
   <property name="hibernateProperties">
    <props>
     <prop key="hibernate.dialect">
      ${bhibernate.dialect}
     </prop>
     <prop key="hibernate.show_sql">true</prop>
     <prop key="format_sql">true</prop>
    </props>
   </property>
</bean>

<bean id="cSessionFactory"
   class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
   <property name="dataSource">
    <ref local="cDataSource" />
   </property>
   <property name="mappingResources">
    <list>
     <value>
       .hbm.xml鏂囦歡
     </value>
    </list>
   </property>
   <property name="hibernateProperties">
    <props>
     <prop key="hibernate.dialect">
      ${chibernate.dialect}
     </prop>
     <prop key="hibernate.show_sql">true</prop>
     <prop key="format_sql">true</prop>
    </props>
   </property>
</bean>

<bean id="sessionFactory" class="com.cintel.dcp.datasource.MultiSessionFactory">
   <property name="sessionFactory"><ref local="aSessionFactory"/></property>
</bean>
娉ㄦ剰錛?font color="#ff0000">鏈鍚庝竴涓?font color="#0000ff">com.cintel.dcp.datasource.MultiSessionFactory瑕佽嚜宸卞疄鐜幫紝瀹冨疄鐜頒簡SessionFactory鎺ュ彛鍜孉pplicationContext鎺ュ彛錛屽涓嬶細
package com.cintel.dcp.datasource;

import java.io.Serializable;
import java.sql.Connection;
import java.util.Map;
import java.util.Set;

import javax.naming.NamingException;
import javax.naming.Reference;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.HibernateException;
import org.hibernate.Interceptor;
import org.hibernate.SessionFactory;
import org.hibernate.StatelessSession;
import org.hibernate.classic.Session;
import org.hibernate.engine.FilterDefinition;
import org.hibernate.metadata.ClassMetadata;
import org.hibernate.metadata.CollectionMetadata;
import org.hibernate.stat.Statistics;
import org.springframework.beans.factory.NoSuchBeanDefinitionException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

public class MultiSessionFactory implements SessionFactory, ApplicationContextAware {
private static final long serialVersionUID = 2064557324203496378L;
private static final Log log = LogFactory.getLog(MultiSessionFactory.class);
private ApplicationContext applicationContext = null;
private SessionFactory sessionFactory = null;

public ApplicationContext getApplicationContext() {
   return applicationContext;
}

public void setApplicationContext(ApplicationContext applicationContext) {
   this.applicationContext = applicationContext;
}

public SessionFactory getSessionFactory(String sessionFactoryName) {
   log.debug("sessionFactoryName:"+sessionFactoryName);
   try{
    if(sessionFactoryName==null||sessionFactoryName.equals("")){
     return sessionFactory;
    }
    return (SessionFactory)this.getApplicationContext().getBean(sessionFactoryName);
   }catch(NoSuchBeanDefinitionException ex){
    throw new RuntimeException("There is not the sessionFactory <name:"+sessionFactoryName+"> in the applicationContext!");
   }
}

public SessionFactory getSessionFactory() {
   String sessionFactoryName = CustomerContextHolder.getCustomerType();
   return getSessionFactory(sessionFactoryName);
}

public void setSessionFactory(SessionFactory sessionFactory) {
   this.sessionFactory = sessionFactory;
}


/* (non-Javadoc)
* @see org.hibernate.SessionFactory#close()
*/
public void close() throws HibernateException {
   getSessionFactory().close();
}
/* (non-Javadoc)
* @see org.hibernate.SessionFactory#evict(java.lang.Class)
*/
public void evict(Class persistentClass) throws HibernateException {
   getSessionFactory().evict(persistentClass);
}
/* (non-Javadoc)
* @see org.hibernate.SessionFactory#evict(java.lang.Class, java.io.Serializable)
*/
public void evict(Class persistentClass, Serializable id) throws HibernateException {
   getSessionFactory().evict(persistentClass, id);
}
/* (non-Javadoc)
* @see org.hibernate.SessionFactory#evictCollection(java.lang.String)
*/
public void evictCollection(String roleName) throws HibernateException {
   getSessionFactory().evictCollection(roleName);
}
/* (non-Javadoc)
* @see org.hibernate.SessionFactory#evictCollection(java.lang.String, java.io.Serializable)
*/
public void evictCollection(String roleName, Serializable id) throws HibernateException {
   getSessionFactory().evictCollection(roleName, id);
}
/* (non-Javadoc)
* @see org.hibernate.SessionFactory#evictEntity(java.lang.String)
*/
public void evictEntity(String entityName) throws HibernateException {
   getSessionFactory().evictEntity(entityName);
}
/* (non-Javadoc)
* @see org.hibernate.SessionFactory#evictEntity(java.lang.String, java.io.Serializable)
*/
public void evictEntity(String entityName, Serializable id) throws HibernateException {
   getSessionFactory().evictEntity(entityName, id);
}
/* (non-Javadoc)
* @see org.hibernate.SessionFactory#evictQueries()
*/
public void evictQueries() throws HibernateException {
   getSessionFactory().evictQueries();
}
/* (non-Javadoc)
* @see org.hibernate.SessionFactory#evictQueries(java.lang.String)
*/
public void evictQueries(String cacheRegion) throws HibernateException {
   getSessionFactory().evictQueries(cacheRegion);
}
/* (non-Javadoc)
* @see org.hibernate.SessionFactory#getAllClassMetadata()
*/
public Map getAllClassMetadata() throws HibernateException {
   return getSessionFactory().getAllClassMetadata();
}
/* (non-Javadoc)
* @see org.hibernate.SessionFactory#getAllCollectionMetadata()
*/
public Map getAllCollectionMetadata() throws HibernateException {
   return getSessionFactory().getAllCollectionMetadata();
}
/* (non-Javadoc)
* @see org.hibernate.SessionFactory#getClassMetadata(java.lang.Class)
*/
public ClassMetadata getClassMetadata(Class persistentClass) throws HibernateException {
   return getSessionFactory().getClassMetadata(persistentClass);
}
/* (non-Javadoc)
* @see org.hibernate.SessionFactory#getClassMetadata(java.lang.String)
*/
public ClassMetadata getClassMetadata(String entityName) throws HibernateException {
   return getSessionFactory().getClassMetadata(entityName);
}
/* (non-Javadoc)
* @see org.hibernate.SessionFactory#getCollectionMetadata(java.lang.String)
*/
public CollectionMetadata getCollectionMetadata(String roleName) throws HibernateException {
   return getSessionFactory().getCollectionMetadata(roleName);
}
/* (non-Javadoc)
* @see org.hibernate.SessionFactory#getCurrentSession()
*/
public Session getCurrentSession() throws HibernateException {
   return getSessionFactory().getCurrentSession();
}
/* (non-Javadoc)
* @see org.hibernate.SessionFactory#getDefinedFilterNames()
*/
public Set getDefinedFilterNames() {
   return getSessionFactory().getDefinedFilterNames();
}
/* (non-Javadoc)
* @see org.hibernate.SessionFactory#getFilterDefinition(java.lang.String)
*/
public FilterDefinition getFilterDefinition(String filterName) throws HibernateException {
   return getSessionFactory().getFilterDefinition(filterName);
}
/* (non-Javadoc)
* @see org.hibernate.SessionFactory#getStatistics()
*/
public Statistics getStatistics() {
   return getSessionFactory().getStatistics();
}
/* (non-Javadoc)
* @see org.hibernate.SessionFactory#isClosed()
*/
public boolean isClosed() {
   return getSessionFactory().isClosed();
}
/* (non-Javadoc)
* @see org.hibernate.SessionFactory#openSession()
*/
public Session openSession() throws HibernateException {
   return getSessionFactory().openSession();
}
/* (non-Javadoc)
* @see org.hibernate.SessionFactory#openSession(java.sql.Connection)
*/
public Session openSession(Connection connection) {
   return getSessionFactory().openSession(connection);
}
/* (non-Javadoc)
* @see org.hibernate.SessionFactory#openSession(org.hibernate.Interceptor)
*/
public Session openSession(Interceptor interceptor) throws HibernateException {
   return getSessionFactory().openSession(interceptor);
}
/* (non-Javadoc)
* @see org.hibernate.SessionFactory#openSession(java.sql.Connection, org.hibernate.Interceptor)
*/
public Session openSession(Connection connection, Interceptor interceptor) {
   return getSessionFactory().openSession(connection, interceptor);
}
/* (non-Javadoc)
* @see org.hibernate.SessionFactory#openStatelessSession()
*/
public StatelessSession openStatelessSession() {
   return getSessionFactory().openStatelessSession();
}
/* (non-Javadoc)
* @see org.hibernate.SessionFactory#openStatelessSession(java.sql.Connection)
*/
public StatelessSession openStatelessSession(Connection connection) {
   return getSessionFactory().openStatelessSession(connection);
}
/* (non-Javadoc)
* @see javax.naming.Referenceable#getReference()
*/
public Reference getReference() throws NamingException {
   return getSessionFactory().getReference();
}
}


鐒跺悗鎴戠敤涓涓父閲忕被鏉ユ爣璇唖essionFactory
public class DynamicDataSourceType {
public static final String A= "aSessionFactory";
public static final String B= "bSessionFactory";
public static final String C= "cSessionFactory";
}

鏈鍚庝竴涓叧閿被錛氱敤鏉ュ瓨鏀懼綋鍓嶆鍦ㄤ嬌鐢ㄧ殑sessionFactory
public class CustomerContextHolder {

private static final ThreadLocal contextHolder = new ThreadLocal();

public static void setCustomerType(String customerType) {
   Assert.notNull(customerType, "customerType cannot be null");
   contextHolder.set(customerType);
}

public static String getCustomerType() {
   return (String) contextHolder.get();
}

public static void clearCustomerType() {
   contextHolder.remove();
}
}

鍙互鍦╝ction銆乻ervice銆乨ao涓繘琛屾暟鎹簱鍒囨崲錛屽垏鎹㈡柟寮忥細
CustomerContextHolder.setCustomerType(DynamicDataSourceType.A);

浠ヤ笂鎬濊礬鏉ヨ嚜javaEye璁哄潧鐨勪竴涓珮鎵嬶紝鍦ㄦ鏍囪瘑鎰熻阿



GavinMiao 2011-11-14 16:11 鍙戣〃璇勮
]]>
杞澆錛氬姩鎬佸垏鎹㈡暟鎹簮(spring+hibernate)http://www.tkk7.com/GavinMiao/archive/2011/11/14/363685.htmlGavinMiaoGavinMiaoMon, 14 Nov 2011 07:37:00 GMThttp://www.tkk7.com/GavinMiao/archive/2011/11/14/363685.htmlhttp://www.tkk7.com/GavinMiao/comments/363685.htmlhttp://www.tkk7.com/GavinMiao/archive/2011/11/14/363685.html#Feedback0http://www.tkk7.com/GavinMiao/comments/commentRss/363685.htmlhttp://www.tkk7.com/GavinMiao/services/trackbacks/363685.html

鏂囩珷鏉ユ簮錛?/strong>

璧峰洜錛氬湪褰撳墠鎴戞墜涓婄殑涓涓」鐩腑闇瑕佸涓暟鎹簮,騫朵笖鏉ヨ嚜浜庝笉鍚岀被鍨嬬殑鏁版嵁搴?.. 鍥犱負寰堝鍘嗗彶鍘熷洜.榪欎釜欏圭洰鐨勪綇鏁版嵁婧愭槸MySQL,鏁翠釜緋葷粺鐨凜URD閮芥槸鎿嶄綔鐨勮繖涓暟鎹簱.

浣嗘槸榪樻湁鍙﹀涓や釜鐢ㄤ簬鏁版嵁閲囬泦鐨勬暟鎹簱: MSSQL,ACCESS.榪樺ソ鍙槸鐢ㄤ簬鏁版嵁閲囬泦錛屽湪浜嬪姟涓婂彲浠ヤ笉瑕佽法鏁版嵁搴撲簡錛岃繖涓鐐硅妭鐪佷簡濂藉鐨勫伐浣滈噺.鐜錛氭垜鎼緩鐨勬祴璇曠幆澧冩槸 spring2.5.6+hibernate3.2
鎬濊礬錛氬姩鎬佸垏鎹㈡暟鎹簮紜垏鐨勬潵璇存槸鍦ㄥ悓涓綾誨瀷鏁版嵁搴撶殑鎯呭喌涓嬬殑銆傛剰鎬濆氨鏄 , 鍦ㄧ郴緇熶腑鐨勪嬌鐢ㄧ殑鏁版嵁搴撳垎甯冨湪澶氬彴鏁版嵁搴撴湇鍔″櫒鎴栬呭湪鍚屽彴鏈嶅姟鍣ㄤ笂鐨勫涓暟鎹簱. 鍦ㄨ繍琛屾椂鏈熼棿鏍規嵁鏌愮鏍囪瘑絎︽潵鍔ㄦ佺殑閫夋嫨褰撳墠鎿嶄綔鐨勬暟鎹簱.     1.鏁版嵁婧愭槸鐩稿悓綾誨瀷鐨勬暟鎹簱: 涓涓猄essionFactory+鍔ㄦ佹暟鎹簮+涓涓簨鍔$鐞嗗櫒     2.鏁版嵁婧愭槸涓嶅悓綾誨瀷鐨勬暟鎹簱: 鏍規嵁綾誨瀷 閰嶇疆澶氬SessionFactory妯℃嫙錛氫袱涓猰ysql鏁版嵁婧?涓涓狝ccess鏁版嵁婧?/span>
瀹炵幇錛?/span>
1.鍒囨崲鏁版嵁婧愰渶瑕佹爣璇嗙,鏍囪瘑絎︽槸Object綾誨瀷
package lhp.example.context;
public enum DBType {
dataSource1, dataSource2;
}

2.鐒跺悗鍒涘緩涓涓敤浜庡垏鎹㈡暟鎹簮(璁劇疆鎴栬呰幏寰椾笂涓嬫枃)鐨勫伐鍏風被
package lhp.example.context;

public class ContextHolder {
private static final ThreadLocal<Object> holder = new ThreadLocal<Object>();

public static void setDbType(DBType dbType) {
holder.set(dbType);
}

public static DBType getDbType() {
return (DBType) holder.get();
}

public static void clearDbType() {
holder.remove();
}
}

3.鍒涘緩鍔ㄦ佹暟鎹簮綾?緇ф壙org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource榪欎釜綾?
package lhp.example.context;

import java.util.logging.Logger;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

public class DynamicDataSource extends AbstractRoutingDataSource {
public static final Logger logger = Logger.getLogger(DynamicDataSource.class.toString());

@Override
protected Object determineCurrentLookupKey() {
DBType key = ContextHolder.getDbType();//鑾峰緱褰撳墠鏁版嵁婧愭爣璇嗙
//logger.info("褰撳墠鏁版嵁婧?:" + key);
return key;
}

}

4.鐒跺悗閰嶇疆澶氫釜鏁版嵁婧?/span>
<!-- 鏁版嵁婧? 錛?mysql -->
<bean id="dataSource1" class="com.mchange.v2.c3p0.ComboPooledDataSource">
<property name="driverClass" value="com.mysql.jdbc.Driver" />
<property name="jdbcUrl" value="jdbc:mysql://127.0.0.1:3306/dec" />
<property name="user" value="root" />
<property name="password" value="" />
</bean>
<!-- 鏁版嵁婧? 錛?mysql -->
<bean id="dataSource2" class="com.mchange.v2.c3p0.ComboPooledDataSource">
<property name="driverClass" value="com.mysql.jdbc.Driver" />
<property name="jdbcUrl" value="jdbc:mysql://127.0.0.1:3306/lms" />
<property name="user" value="root" />
<property name="password" value="" />
</bean>

<!-- 鏁版嵁婧? 錛? access -->
<bean id="dataSource3" class="com.mchange.v2.c3p0.ComboPooledDataSource">
<property name="driverClass" value="sun.jdbc.odbc.JdbcOdbcDriver" />
<property name="jdbcUrl" value="jdbc:odbc:accessTest" />
<property name="user" value="administrator" />
<property name="password" value="XLZX0309" />
</bean>

<!-- mysql 鍔ㄦ佹暟鎹簮璁劇疆-->
<bean id="mysqlDynamicDataSource" class="lhp.example.context.DynamicDataSource">
<property name="targetDataSources">
<!-- 鏍囪瘑絎︾被鍨?-->
<map key-type="lhp.example.context.DBType">
<entry key="dataSource1" value-ref="dataSource1" />
<entry key="dataSource2" value-ref="dataSource2" />
</map>
</property>
<property name="defaultTargetDataSource" ref="dataSource1" />
</bean>

5.閰嶇疆sessionFactory
<!-- mysql sessionFactory -->
<bean id="mysqlSessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource" ref="mysqlDynamicDataSource" />
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.hbm2ddl.auto">update</prop><!--create validate -->
<prop key="hibernate.query.substitutions">true 1, false 0</prop>
</props>
</property>
</bean>

<!-- access sessionFactory -->
<bean id="aceessSessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource" ref="dataSource3" />
<property name="hibernateProperties">
<props>
<!-- access 璇硶鍜孧SSQL鐩鎬技 鎵浠ョ敤鐨凪SSQL鏂硅█錛屾垨鑰呭彲浠ヤ嬌鐢ㄧ涓夋柟鏂硅█ -->
<prop key="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</prop>
<prop key="hibernate.jdbc.batch_size">30</prop>
<prop key="hibernate.jdbc.fetch_size">50</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.format_sql">false</prop>
<prop key="hibernate.hbm2ddl.auto">update</prop><!--create validate -->
<prop key="hibernate.query.substitutions">true 1, false 0</prop>
<prop key="hibernate.cglib.use_reflection_optimizer">true</prop>
<!-- <prop key="hibernate.cache.use_second_level_cache">true</prop> -->
<!-- <prop key="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</prop> -->
<!-- <prop key="hibernate.cache.use_query_cache">true</prop> -->
<!-- <prop key="hibernate.generate_statistics">true</prop> -->
<!-- <prop key="hibernate.cache.provider_configuration_file_resource_path">classpath:ehcache.xml</prop> -->
</props>
</property>
</bean>

6.嫻嬭瘯鐢ㄤ緥
package lhp.example.junit;

import static org.junit.Assert.*;
import java.sql.DatabaseMetaData;
import lhp.example.context.ContextHolder;
import lhp.example.context.DBType;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.junit.Before;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ServiceTest {
private ApplicationContext context;
//涓変釜鏁版嵁婧愮殑URL
private String dataSource1_URL = "jdbc:mysql://127.0.0.1:3306/dec";
private String dataSource2_URL = "jdbc:mysql://127.0.0.1:3306/lms";
private String dataSource3_URL = "jdbc:odbc:accessTest";
private SessionFactory mysqlSessionFactory;
private SessionFactory aceessSessionFactory;

@Before
public void setUp() throws Exception {
// 閫夋嫨鏁版嵁婧愬垵濮嬪寲spring
ContextHolder.setDbType(DBType.dataSource1);
//
String[] xmlFiles = new String[] {
"applicationContext-dataSource.xml",
"applicationContext-hibernate.xml",
"applicationContext-spring.xml" };
//
context = new ClassPathXmlApplicationContext(xmlFiles);
//
mysqlSessionFactory = (SessionFactory) context.getBean("mysqlSessionFactory");
aceessSessionFactory = (SessionFactory) context.getBean("aceessSessionFactory");
}

@SuppressWarnings("deprecation")
@Test
public void mysqlDataSourceTest() {
try {

Session mysqlSession = mysqlSessionFactory.openSession();
// 鑾峰緱鏁版嵁搴撳厓鏁版嵁
DatabaseMetaData meatData = mysqlSession.connection().getMetaData();

// 榛樿鍚姩鏁版嵁婧?dataSource1
//鏂█褰撳墠鏁版嵁婧怳RL鏄惁鏄痙ataSource1鐨刄RL
assertEquals(dataSource1_URL, meatData.getURL());

// 鍒囨崲鍒版暟鎹簮 dataSource2
ContextHolder.setDbType(DBType.dataSource2);
mysqlSession = mysqlSessionFactory.openSession();
meatData = mysqlSession.connection().getMetaData();
//鏂█褰撳墠鏁版嵁婧怳RL鏄惁鏄痙ataSource2鐨刄RL
assertEquals(dataSource2_URL, meatData.getURL());

} catch (Exception e) {
e.printStackTrace();
}
}

@SuppressWarnings("deprecation")
@Test
public void accessDataSourceTest() {
try {
Session accessSession = aceessSessionFactory.openSession();
// 鑾峰緱鏁版嵁搴撳厓鏁版嵁
DatabaseMetaData meatData = accessSession.connection().getMetaData();
//鏂█褰撳墠鏁版嵁婧怳RL鏄惁鏄痙ataSource3鐨刄RL
assertEquals(dataSource3_URL, meatData.getURL());


} catch (Exception e) {
e.printStackTrace();
}
}

}


GavinMiao 2011-11-14 15:37 鍙戣〃璇勮
]]>
tomcat 璋冨唴瀛?/title><link>http://www.tkk7.com/GavinMiao/archive/2011/10/26/362065.html</link><dc:creator>GavinMiao</dc:creator><author>GavinMiao</author><pubDate>Wed, 26 Oct 2011 01:51:00 GMT</pubDate><guid>http://www.tkk7.com/GavinMiao/archive/2011/10/26/362065.html</guid><wfw:comment>http://www.tkk7.com/GavinMiao/comments/362065.html</wfw:comment><comments>http://www.tkk7.com/GavinMiao/archive/2011/10/26/362065.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/GavinMiao/comments/commentRss/362065.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/GavinMiao/services/trackbacks/362065.html</trackback:ping><description><![CDATA[<div>涓銆乯ava.lang.OutOfMemoryError: PermGen space 閿欒瑙e喅鍔炴硶錛?br /><div><div>淇敼TOMCAT_HOME/bin/catalina.sh </div><div>鍦?#8220;echo "Using CATALINA_BASE: $CATALINA_BASE"”涓婇潰鍔犲叆浠ヤ笅琛岋細 </div><div>JAVA_OPTS="-server -XX:PermSize=64M -XX:MaxPermSize=128m <br />浜屻乯ava.lang.OutOfMemoryError: Java heap space 閿欒瑙e喅鍔炴硶錛?br /><div><div>瑙e喅鏂規硶錛氭墜鍔ㄨ緗瓾eap size </div><div>淇敼TOMCAT_HOME/bin/catalina.sh </div><div>鍦?#8220;echo "Using CATALINA_BASE: $CATALINA_BASE"”涓婇潰鍔犲叆浠ヤ笅琛岋細 </div><div>JAVA_OPTS="-server -Xms800m -Xmx800m -XX:MaxNewSize=256m"<br /><br /><div>娉ㄦ剰錛欻eap Size 鏈澶т笉瑕佽秴榪囧彲鐢ㄧ墿鐞嗗唴瀛樼殑80錛咃紝涓鑸殑瑕佸皢-Xms鍜?Xmx閫夐」璁劇疆涓虹浉鍚岋紝鑰?Xmn涓?/4鐨?Xmx鍊箋?nbsp;</div></div></div></div></div></div><img src ="http://www.tkk7.com/GavinMiao/aggbug/362065.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/GavinMiao/" target="_blank">GavinMiao</a> 2011-10-26 09:51 <a href="http://www.tkk7.com/GavinMiao/archive/2011/10/26/362065.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鐢ㄥ懡浠ゆ墦寮windows甯哥敤杞歡http://www.tkk7.com/GavinMiao/archive/2011/09/28/359656.htmlGavinMiaoGavinMiaoWed, 28 Sep 2011 01:40:00 GMThttp://www.tkk7.com/GavinMiao/archive/2011/09/28/359656.htmlhttp://www.tkk7.com/GavinMiao/comments/359656.htmlhttp://www.tkk7.com/GavinMiao/archive/2011/09/28/359656.html#Feedback0http://www.tkk7.com/GavinMiao/comments/commentRss/359656.htmlhttp://www.tkk7.com/GavinMiao/services/trackbacks/359656.htmlmspaint 鐢誨浘鏉?nbsp;
mstsc 榪滅▼妗岄潰榪炴帴
notepad 鎵撳紑璁頒簨鏈?/span>
winmsd.exe 鏌ョ湅緋葷粺淇℃伅
Sndvol32 闊抽噺鎺у埗紼嬪簭
diskmgmt.msc 紓佺洏綆$悊鍣?br />cleanmgr 鍨冨溇鏁寸悊
conf 鍚姩netmeeting鑱婂ぉ宸ュ叿
cleanmgr.exe 紓佺洏娓呯悊 
calc.exe 璁$畻鍣?br />regedt32 娉ㄥ唽琛ㄧ紪杈戝櫒



GavinMiao 2011-09-28 09:40 鍙戣〃璇勮
]]>
鐢佃剳浣跨敤鎶宸э細windows鑷甫瀹氭椂鍏蟲満http://www.tkk7.com/GavinMiao/archive/2011/09/28/359654.htmlGavinMiaoGavinMiaoWed, 28 Sep 2011 01:16:00 GMThttp://www.tkk7.com/GavinMiao/archive/2011/09/28/359654.htmlhttp://www.tkk7.com/GavinMiao/comments/359654.htmlhttp://www.tkk7.com/GavinMiao/archive/2011/09/28/359654.html#Feedback0http://www.tkk7.com/GavinMiao/comments/commentRss/359654.htmlhttp://www.tkk7.com/GavinMiao/services/trackbacks/359654.html杞澆錛?a >http://bbs.yhcgo.com/read.php?tid-77128.html

1.Windows XP鐨?a target="_blank" id="url_2" style="outline-style: none; outline-width: initial; outline-color: initial; text-decoration: none; color: #0070af; ">瀹氭椂鍏蟲満鍛戒護鏄敱Shutdown.exe紼嬪簭鏉ユ帶鍒剁殑錛屼綅浜嶹indows\System32鏂囦歡澶逛腑銆?br />濡傛灉鎯寵Windows 2000涔熷疄鐜板悓鏍風殑鏁堟灉錛屽彲浠ユ妸Shutdown.exe澶嶅埗鍒?span id="rlt_2" style="outline-style: none; outline-width: initial; outline-color: initial; cursor: pointer; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #fa891b; ">緋葷粺鐩綍涓嬨?/span>
緋葷粺鏍圭洰褰曪細C:\windows\涓嬶紱
2.winows+r鎵撳紑“榪愯”杈撳叆妗嗭紝鐒跺悗杈撳叆浠ヤ笅鍛戒護錛?br />at 22:00 Shutdown -s           --->鏃犲掕鏃舵錛屽埌
22:00鐐規彁紺哄叧鏈?/span>
shutdown.exe -s -t 3600 -->60鍒嗛挓鍚庯紝浠?div style="display: inline-block; ">
鍊掕鏃剁殑鏂瑰紡鍏蟲満
Shutdown 錛峴 錛峵 1320 -->
鎸囧畾緋葷粺鍦?2鍒嗛挓鍚庤嚜鍔ㄥ叧闂?/span>
3.
濡傛灉鎯沖彇娑堢殑璇濓紝鍙互鍦ㄨ繍琛屼腑杈撳叆“shutdown -a”銆傚彟澶栬緭鍏?#8220;shutdown -i”錛屽垯鍙互鎵撳紑璁劇疆鑷姩鍏蟲満瀵硅瘽妗嗭紝瀵硅嚜鍔ㄥ叧鏈鴻繘琛岃緗?nbsp;
4.
Shutdown.exe鐨勫弬鏁?
-r錛氬叧鏈哄茍閲嶅惎
-t 鏃墮棿錛氳緗叧鏈哄掕鏃?br />“-s”灝辮〃紺哄叧闂湰鍦拌綆楁満
“-a”琛ㄧず鍙栨秷鍏蟲満鎿嶄綔
-i錛氭樉紺哄浘褰㈢敤鎴風晫闈紝浣嗗繀欏繪槸Shutdown鐨勭涓涓夐」


GavinMiao 2011-09-28 09:16 鍙戣〃璇勮
]]>
birt鍒濊璇?/title><link>http://www.tkk7.com/GavinMiao/archive/2011/09/22/359209.html</link><dc:creator>GavinMiao</dc:creator><author>GavinMiao</author><pubDate>Wed, 21 Sep 2011 16:01:00 GMT</pubDate><guid>http://www.tkk7.com/GavinMiao/archive/2011/09/22/359209.html</guid><wfw:comment>http://www.tkk7.com/GavinMiao/comments/359209.html</wfw:comment><comments>http://www.tkk7.com/GavinMiao/archive/2011/09/22/359209.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/GavinMiao/comments/commentRss/359209.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/GavinMiao/services/trackbacks/359209.html</trackback:ping><description><![CDATA[瀹樼綉錛?a >http://www.eclipse.org/birt/phoenix/</a> <br />1.<div style="display: inline-block; "></div><span id="pzfjn3d" class="Apple-style-span" style="font-family: Arial, sans-serif; font-size: 12px; line-height: 16px; background-color: #ffffff; ">BIRT鏄竴涓熀浜嶦clipse鐨勫紑婧怶eb搴旂敤紼嬪簭 <br />2.涓昏鐢ㄥ湪鍩轟簬Java鍜孞2EE鐨剋eb搴旂敤紼嬪簭涓婏紱<br />3.浣跨敤birt鍙互瀹炵幇錛氬垪琛ㄣ佸浘鏍囥佹販鍚堟姤琛ㄣ佷氦鍙夎〃錛堜簩緇磋〃錛夛紱<br />4.瀹夎錛?br /><div style="display: inline-block; "><div>鏈漢鐢ㄧ殑鏃禡yEclipse6.6錛屽搴旂殑Eclipse3.3.錛?/div></div></span><span id="plbplnp" class="Apple-style-span" style="color: #333333; font-family: Arial; line-height: 26px; background-color: #ffffff; ">    <br />濡傛灉浣跨敤鐨勬槸eclipse3.3鐗堟湰錛屼綘搴旇鐢╞irt-report-framework-2_2_0.zip錛?br />鍦板潃錛歨ttp://archive.eclipse.org/birt/downloads/build.php?build=R-R1-2_2_0-200706261010/birt-report-framework-2_2_0.zip <br /> <div style="display: inline-block; "><div><a >http://archive.eclipse.org/birt/downloads/build.php?build=R-R1-2_2_0-200706261010/birt-runtime-2_2_0.zip</a></div></div><br />濡傛灉浣跨敤鐨勬槸eclipse3.4錛屼綘搴旇鐢╞irt-report-framework-2_3_0.zip銆?br />5.鍙傝冩枃绔犲湴鍧錛?br /><div><a >http://www.docin.com/p-177563530.html</a></div><div><a >http://wenku.baidu.com/view/e9414713a216147917112885.html <br /></a><div><a >http://wenku.baidu.com/view/8f996c553c1ec5da50e27093.html<br /></a><div><a href="http://www.tkk7.com/amigoxie/archive/2009/05/03/268684.html">http://www.tkk7.com/amigoxie/archive/2009/05/03/268684.html</a></div><a ><a ></a></a></div><a ></a></div></span><img src ="http://www.tkk7.com/GavinMiao/aggbug/359209.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/GavinMiao/" target="_blank">GavinMiao</a> 2011-09-22 00:01 <a href="http://www.tkk7.com/GavinMiao/archive/2011/09/22/359209.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>select count(*)鏃訛紝鎶ラ敊java.lang.ClassCastException: java.lang.Longhttp://www.tkk7.com/GavinMiao/archive/2011/09/15/358708.htmlGavinMiaoGavinMiaoThu, 15 Sep 2011 07:12:00 GMThttp://www.tkk7.com/GavinMiao/archive/2011/09/15/358708.htmlhttp://www.tkk7.com/GavinMiao/comments/358708.htmlhttp://www.tkk7.com/GavinMiao/archive/2011/09/15/358708.html#Feedback0http://www.tkk7.com/GavinMiao/comments/commentRss/358708.htmlhttp://www.tkk7.com/GavinMiao/services/trackbacks/358708.html闃呰鍏ㄦ枃

GavinMiao 2011-09-15 15:12 鍙戣〃璇勮
]]>
鍚勬暟鎹簱鏁版嵁綾誨瀷姣旇緝http://www.tkk7.com/GavinMiao/archive/2011/09/06/358081.htmlGavinMiaoGavinMiaoTue, 06 Sep 2011 05:01:00 GMThttp://www.tkk7.com/GavinMiao/archive/2011/09/06/358081.htmlhttp://www.tkk7.com/GavinMiao/comments/358081.htmlhttp://www.tkk7.com/GavinMiao/archive/2011/09/06/358081.html#Feedback0http://www.tkk7.com/GavinMiao/comments/commentRss/358081.htmlhttp://www.tkk7.com/GavinMiao/services/trackbacks/358081.html

GavinMiao 2011-09-06 13:01 鍙戣〃璇勮
]]>
UE璁劇疆java鐜http://www.tkk7.com/GavinMiao/archive/2011/09/05/358008.htmlGavinMiaoGavinMiaoMon, 05 Sep 2011 09:29:00 GMThttp://www.tkk7.com/GavinMiao/archive/2011/09/05/358008.htmlhttp://www.tkk7.com/GavinMiao/comments/358008.htmlhttp://www.tkk7.com/GavinMiao/archive/2011/09/05/358008.html#Feedback0http://www.tkk7.com/GavinMiao/comments/commentRss/358008.htmlhttp://www.tkk7.com/GavinMiao/services/trackbacks/358008.html闃呰鍏ㄦ枃

GavinMiao 2011-09-05 17:29 鍙戣〃璇勮
]]>
ssh涓庤璁℃ā寮?/title><link>http://www.tkk7.com/GavinMiao/archive/2011/08/29/357477.html</link><dc:creator>GavinMiao</dc:creator><author>GavinMiao</author><pubDate>Mon, 29 Aug 2011 02:42:00 GMT</pubDate><guid>http://www.tkk7.com/GavinMiao/archive/2011/08/29/357477.html</guid><wfw:comment>http://www.tkk7.com/GavinMiao/comments/357477.html</wfw:comment><comments>http://www.tkk7.com/GavinMiao/archive/2011/08/29/357477.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.tkk7.com/GavinMiao/comments/commentRss/357477.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/GavinMiao/services/trackbacks/357477.html</trackback:ping><description><![CDATA[鍙傝冩枃绔犳潵婧愶細<br /><div><a >http://www.docin.com/p-87219490.html</a>  <br /><a >http://kaixuan489577823.iteye.com/blog/662864</a>  <br /><div></div>涓銆乻truts1涓昏鐢ㄥ埌鐨勮璁℃ā寮忥細<br />1.Straegy絳栫暐妯″紡<br />2.singletom鍗曚緥妯″紡<br />3.command鍛戒護妯″紡<br />4.Facade澶栬妯″紡<br />5.composite view緇勬垚妯″紡<br />6.decorator瑁呴グ妯″紡<br />7.MVC妯″紡<br />浜屻乻pring涓昏鐢ㄥ埌鐨勮璁℃ā寮忥細<br />1.綆鍗曞伐鍘傚嵆闈欐佸伐鍘傛ā寮廠tatic Factory Method<br />2.宸ュ巶妯″紡Factory Method<br />3.鍗曚緥妯″紡Singleton<br />4.閫傞厤鍣ˋdapter<br />5.瑁呴グ鍣―ecorator<br />6.浠g悊Proxy<br />7.瑙傚療鑰匫bserver<br />8.絳栫暐Strategy<br />9.妯℃澘鏂規硶Template Method<br />涓夈乻truts2涓昏鐢ㄥ埌鐨勬ā寮忥細<br />1.MVC妯″紡<br />2.command鍛戒護妯″紡<br />3.浠g悊Proxy<br />4.閫傞厤鍣ˋdapter<br />5.鍗曚緥妯″紡Singleton<br />6. <span id="f1xlbbb" class="Apple-style-span" style="font-family: Helvetica, Tahoma, Arial, sans-serif; line-height: 25px; ">鑱岃矗閾炬ā寮?Chain of Responsibility </span><br /><br /><div><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; line-height: 25px; ">GoF璁捐妯″紡鐨勫垎綾伙細 <br />鏍規嵁鐩殑鍑嗗垯鍒嗙被錛?nbsp;<br />1錛?鍒涘緩鍨嬶細creational 涓庡璞$殑鍒涘緩鏈夊叧銆?nbsp;<br />2錛?緇撴瀯鍨嬶細Structural 澶勭悊綾繪垨瀵硅薄涔嬮棿鐨勭粍鍚堛?nbsp;<br />3錛?琛屼負鍨嬶細behavioral 鎻忚堪綾繪垨瀵硅薄濡備綍浜や簰鍙婂浣曞垎閰嶈亴璐c?br /><br /><br />鍒涘緩鍨嬫ā寮?br /><br />1.鎶借薄宸ュ巶妯″紡 AbstractFactory <br />2.寤洪犺呮ā寮?Builder <br />3.宸ュ巶鏂規硶妯″紡 Factory Method <br />4.鍘熷瀷妯″紡 Prototype <br />5.鍗曚緥妯″紡 Singleton <br /><br />緇撴瀯鍨嬫ā寮?nbsp;<br /><br />1.閫傞厤鍣ㄦā寮?Adapter <br />2.妗ユ帴妯″紡 Bridge <br />3.緇勫悎妯″紡 Composite <br />4.瑁呴グ妯″紡 Decorator <br />5.澶栬妯″紡 Facade <br />6.浜厓妯″紡 Flyweight <br />7.浠g悊妯″紡 Proxy <br /><br />琛屼負妯″紡 <br /><br />1.鑱岃矗閾炬ā寮?Chain of Responsibility <br />2.鍛戒護妯″紡 Command <br />3.瑙i噴鍣ㄦā寮?Interpreter <br />4.榪唬鍣ㄦā寮?Iterator <br />5.涓粙鑰呮ā寮?Mediator <br />6.澶囧繕褰曟ā寮?Memento <br />7.瑙傚療鑰呮ā寮?Observer <br />8.鐘舵佹ā寮?State <br />9.絳栫暐妯″紡 Strategy <br />10.妯℃澘鏂規硶妯″紡 Template Method <br />11.璁塊棶鑰呮ā寮?Visitor</span></div></div><img src ="http://www.tkk7.com/GavinMiao/aggbug/357477.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/GavinMiao/" target="_blank">GavinMiao</a> 2011-08-29 10:42 <a href="http://www.tkk7.com/GavinMiao/archive/2011/08/29/357477.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鐬庤亰http://www.tkk7.com/GavinMiao/archive/2011/08/23/357151.htmlGavinMiaoGavinMiaoTue, 23 Aug 2011 15:26:00 GMThttp://www.tkk7.com/GavinMiao/archive/2011/08/23/357151.htmlhttp://www.tkk7.com/GavinMiao/comments/357151.htmlhttp://www.tkk7.com/GavinMiao/archive/2011/08/23/357151.html#Feedback0http://www.tkk7.com/GavinMiao/comments/commentRss/357151.htmlhttp://www.tkk7.com/GavinMiao/services/trackbacks/357151.html浜嬪姟鍏鋒湁鍥涗釜鐗瑰緛錛氬師瀛愭э紙 Atomicity 錛夈佷竴鑷存э紙 Consistency 錛夈侀殧紱繪э紙 Isolation 錛夊拰鎸佷箙鎬э紙 Durability 錛夈傝繖鍥涗釜鐗規х畝縐頒負 ACID 鐗規?br />浜嬪姟鏄竴緇勫師瀛愭搷浣滃崟鍏?br />浠庢暟鎹簱瑙掑害璇達紝灝辨槸涓緇凷QL鎸囦護錛?br />瑕佷箞鍏ㄩ儴鎵ц鎴愬姛錛岃涔堟挙閿涓嶆墽琛屻?br />
浣跨敤鍗曟佹ā寮忕殑鐩爣鏄負浜嗘帶鍒跺璞$殑鍒涘緩錛屽崟鎬佹ā寮忕粡甯鎬嬌鐢ㄥ湪鎺у埗璧勬簮鐨勮闂笂銆備緥濡傛暟鎹簱榪炴帴鎴朣ocket榪炴帴絳夈傚崟鎬佹ā寮忓彲浠ユ帶鍒跺湪鏌愪釜鏃跺埢鍙湁涓涓嚎紼嬭闂祫婧愩?br />


GavinMiao 2011-08-23 23:26 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 久久国产精品免费| 曰批全过程免费视频观看免费软件| 一区二区免费在线观看| 永久免费看mv网站入口| 亚洲欧美日韩久久精品| 在线免费观看污网站| 亚洲GV天堂无码男同在线观看| 日韩视频免费一区二区三区| 亚洲精品美女久久7777777| 午夜视频在线观看免费完整版| 亚洲色成人四虎在线观看| 免费毛片在线播放| 一级全免费视频播放| 在线亚洲97se亚洲综合在线| 国产免费无码一区二区| 在线电影你懂的亚洲| 一本无码人妻在中文字幕免费| 亚洲色大18成人网站WWW在线播放| 免费国产综合视频在线看| 成在线人直播免费视频| 亚洲AV无码成人精品区天堂| 91青青国产在线观看免费 | 久久夜色精品国产嚕嚕亚洲av| 中文字幕免费不卡二区| 亚洲成人免费电影| 精品国产免费观看久久久| 国产免费AV片在线观看播放| 亚洲日本中文字幕区| 毛片免费观看网站| 国产裸体美女永久免费无遮挡| 91在线精品亚洲一区二区| 免费精品国产自产拍观看| 久久青草免费91线频观看站街| 亚洲AV综合色区无码二区爱AV| 国产乱子伦精品免费女| 日本免费中文字幕| 亚洲JIZZJIZZ妇女| 亚洲午夜视频在线观看| 日本媚薬痉挛在线观看免费| 在线播放免费人成毛片乱码| 亚洲午夜精品久久久久久app|