• 大小: 25.82MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-09
  • 语言: 其他
  • 标签: java  ssm  mysql  

资源简介

网上订餐系统外卖,网上商店,源码

资源截图

代码片段和文件信息

package elm3;

import java.io.InputStream;
import java.util.List;

import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import org.junit.Before;
import org.junit.Test;

import com.igeek.mapper.InFood;
import com.igeek.mapper.InUser;
import com.igeek.pojo.Food;
import com.igeek.pojo.User;

public class TestFoodMapper {
private SqlSessionFactory factory=null;

@Before
public void init(){
try{
InputStream in = Resources.getResourceAsStream(“SqlMapConfig.xml“);
factory = new SqlSessionFactoryBuilder().build(in);
}catch(Exception e){
e.printStackTrace();
}
}
@Test
public void testfoodMapper(){
SqlSession sqlSession=factory.openSession();
InFood infood=sqlSession.getMapper(InFood.class);
List list=infood.serchall();
for (Food food : list) {
System.out.println(food);
}

sqlSession.close();
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       5482  2018-05-03 20:17  elm3\.classpath

     文件        904  2018-05-03 18:04  elm3\.project

     文件        567  2018-05-03 18:04  elm3\.settings\.jsdtscope

     文件        578  2018-05-03 18:04  elm3\.settings\org.eclipse.core.resources.prefs

     文件        364  2018-05-03 18:04  elm3\.settings\org.eclipse.jdt.core.prefs

     文件        539  2018-05-03 18:04  elm3\.settings\org.eclipse.wst.common.component

     文件        305  2018-05-03 18:04  elm3\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2018-05-03 18:04  elm3\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2018-05-03 18:04  elm3\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件       3912  2018-05-03 21:14  elm3\build\classes\applicationContext.xml

     文件       6641  2018-05-03 20:18  elm3\build\classes\com\igeek\controller\Manager.class

     文件       3227  2018-05-03 21:20  elm3\build\classes\com\igeek\controller\ManagerAdmin.class

     文件       6338  2018-05-03 20:18  elm3\build\classes\com\igeek\controller\ManagerFood.class

     文件       5835  2018-05-03 20:18  elm3\build\classes\com\igeek\controller\ManagerMerchant.class

     文件       3716  2018-05-03 20:18  elm3\build\classes\com\igeek\controller\ManagerOrder.class

     文件        306  2018-05-03 20:18  elm3\build\classes\com\igeek\mapper\InAdmin.class

     文件        311  2018-05-03 18:04  elm3\build\classes\com\igeek\mapper\InAdmin.xml

     文件        629  2018-05-03 20:18  elm3\build\classes\com\igeek\mapper\InFood.class

     文件       1450  2018-05-03 18:04  elm3\build\classes\com\igeek\mapper\InFood.xml

     文件        674  2018-05-03 20:18  elm3\build\classes\com\igeek\mapper\InMerchant.class

     文件       2022  2018-05-03 18:04  elm3\build\classes\com\igeek\mapper\InMerchant.xml

     文件        316  2018-05-03 20:18  elm3\build\classes\com\igeek\mapper\InOrder.class

     文件        759  2018-05-03 18:04  elm3\build\classes\com\igeek\mapper\InOrder.xml

     文件        608  2018-05-03 20:18  elm3\build\classes\com\igeek\mapper\InUser.class

     文件       1254  2018-05-03 18:04  elm3\build\classes\com\igeek\mapper\InUser.xml

     文件       1708  2018-05-03 20:18  elm3\build\classes\com\igeek\pojo\Admin.class

     文件       1385  2018-05-03 20:18  elm3\build\classes\com\igeek\pojo\DingDan.class

     文件       3356  2018-05-03 20:18  elm3\build\classes\com\igeek\pojo\Food.class

     文件       4330  2018-05-03 20:18  elm3\build\classes\com\igeek\pojo\Merchant.class

     文件       1394  2018-05-03 20:18  elm3\build\classes\com\igeek\pojo\Order.class

............此处省略492个文件信息

评论

共有 条评论