?? testmode.java
字號(hào):
package com.web.model;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class testMode {
/**
* @param args
*/
public static void main(String[] args) {
ApplicationContext ctx =
new ClassPathXmlApplicationContext("applicationContext.xml") ;
FoodStyleDAO md = (FoodStyleDAO)ctx.getBean("FoodStyleDAOProxy") ;
List l =md.findAll() ;
Iterator it = l.iterator() ;
while(it.hasNext())
{
FoodStyle a = (FoodStyle)it.next() ;
System.out.print(a.getFsName()) ;
}
//AccountFood a = md.findById("127") ;
//System.out.print(a.getAfId()) ;
/*UserInfoDAO u = (UserInfoDAO)ctx.getBean("UserInfoDAOProxy") ;
List l = u.findAll() ;
Iterator it = l.iterator() ;
while(it.hasNext())
{
UserInfo fi = (UserInfo)it.next() ;
System.out.println(fi.getULinkMan()) ;
}
*/
/*FoodStyle fs = new FoodStyle() ;
fs.setFsId("6") ;
fs.setFsName("asd他") ;
f.delete(fs) ;
fs.setFsName("其他") ;
f.save(fs) ;
System.out.print("suceess") ;
List l = f.findAll() ;
Iterator it = l.iterator() ;
while(it.hasNext())
{
FoodStyle fi = (FoodStyle)it.next() ;
System.out.println(fi.getFsName()) ;
}
*/
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -