锘??xml version="1.0" encoding="utf-8" standalone="yes"?>
鎬ц兘浼樺寲涓?涔熷氨寤虹儲寮?鐢ㄧ紦瀛?欏甸潰鍋氶潤鎬佸寲,鍒嗗簱,璇誨啓鍒嗙.鏈榪戝涔犱簡涓涓媝ython,璇█鐗規т笉鏄緢浜嗚В,浣嗕篃鑳藉啓鍑哄皬鍔熻兘鍧?
JAVA鐗涗漢,鍛婅瘔鎴?鎬庝箞鎵嶈兘璁╄嚜宸卞己澶ц搗鏉?鍥為3騫存病鏈夎嚜璞殑鎶鏈?鏋佸害閮侀椃涓?/p>
涓嶅湪娌夐粯涓垎鍙?灝卞湪娌夐粯涓浜?!!!!1
鍏充簬IBatis.Net 鐗堟湰1.321閲岄潰鐨刢acheModel鏈変竴涓狟UG錛屽ソ澶х殑銆傚綋浣犱嬌鐢–acheModel
鑰屽悓鏃舵煡璇㈠嚭鏉ョ殑緇撴灉鏄疦ULL鐨勮瘽錛孖Batis緙撳瓨灝變細鏈夐棶棰樸傚湪IBatis.Net 鐗堟湰1.32閲岄潰涓鍏辨湁3澶勩?/p>
MappedStatements 400琛屽錛?527 琛?778琛?/p>
搴旇鏀逛負
聽
obj = RunQueryForObject(request, session, parameterObject, resultObject);
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 if(obj!=null)
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 {
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 _statement.CacheModel[key] = obj;
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 }
姣忎竴涓紦瀛樺墠錛屽垽鏂槸鍚︿負絀恒?/p>
import java.util.TimerTask;
public class HelloWorldTask extends TimerTask{
聽 public聽 void聽 run (){
聽聽 System.out.print("Hello world");
聽 }
}
package com.xiewei.soft.text;
import java.io.IOException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;
public class Fixed {
聽 public static void main(String[] arg) throws IOException{
聽聽 ApplicationContext ctx=new FileSystemXmlApplicationContext("JavaSource/conf/timetask.xml");
聽聽 System.in.read();
聽 }
}
鐒跺悗鍦╯pring閰嶇疆鏂囦歡涓彃鍏?br /><beans>
聽 <bean id ="helloWordTask"聽 class="com.xiewei.soft.text.HelloWorldTask" />
聽 <bean id="timerTask" class="org.springframework.scheduling.timer.ScheduledTimerTask">
聽聽聽 <property name="delay">
聽聽聽聽聽 <value>1000</value>
聽聽聽 </property>
聽聽聽 <property name="period">
聽聽聽聽聽 <value>3000</value>
聽聽聽 </property>
聽聽聽 <property name="timerTask">
聽聽聽聽聽 <ref local="helloWordTask"/>
聽聽聽 </property>
聽 </bean>
聽 <bean id="timerFactory" class="org.springframework.scheduling.timer.TimerFactoryBean">
聽聽 <property name="scheduledTimerTasks">
聽聽聽聽聽 <list>
聽聽聽聽聽 <ref local="timerTask"/>
聽聽聽聽聽 </list>
聽聽聽 </property>
聽 </bean>
</beans>
嫻嬭瘯鎴愬姛錛侊紒錛侊紒錛侊紒錛?br />
聽聽聽dataoutputstream.flush();
聽聽聽 聽聽聽聽 } catch (Exception e) {
聽聽聽聽// TODO Auto-generated catch block
聽聽聽聽e.printStackTrace();
聽聽聽}
聽聽聽聽聽聽聽聽聽聽聽 return true;
聽 聽}else{
聽 聽聽return false;
聽 聽}
聽聽聽聽
聽聽聽聽
聽 }