⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testmode.java

📁 SSH 开发网上订餐系统。由于SSH相关包太大不方便上传。请自行导入。
💻 JAVA
字号:
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()) ;
			}
			*/
	
			
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -