• 大小: 66.07MB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2023-02-26
  • 语言: 其他
  • 标签: spring  controller  json  

资源简介

这是基于easyUI框架开发的一个简单的共享单车管理系统,里面有几处需要配置json文件的路径

资源截图

代码片段和文件信息

package com.bike.controller;


import java.sql.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.bike.createjson.MyJson;
import com.bike.service.BikeMangerService;
import com.bike.vo.BikeManger;

import net.sf.json.JSON;
import net.sf.json.JSONobject;

@Controller
public class BikeMangerController {
@Autowired
BikeMangerService bike;

// @ResponseBody
@RequestMapping(value = “/bikemanger“ )
public String bikemanger(
@RequestParam(“bike_id“) String bike_id
@RequestParam(“bike_status“) String bike_status
) {
List list = bike.findBikeAll(bike_idbike_status);

// Mapject> result = new HashMapject>();  
  
// for(BikeManger bManger:list) {
// System.out.println(“车辆ID:“+bManger.getBike_id());
// System.out.println(“投入时间:“+bManger.getStarttime());
// System.out.println(“车辆状态:“+bManger.getBike_status());
// System.out.println(“使用次数:“+bManger.getUsetimes());
// System.out.println(“地点:“+bManger.getPlace());
// System.out.println(“备注:“+bManger.getNote());
// }
MyJson myJson = new MyJson();
myJson.F(list“bikemanger“);//后面为json文件的名称
       return “bikemanger“;
}

@RequestMapping(“/addbike“)
public String addbike(
@RequestParam(“bike_id“) String bike_id
@RequestParam(“starttime“) Date starttime
@RequestParam(“place“) String place
@RequestParam(“note“) String note) {

java.sql.Date sqlDate=new java.sql.Date(starttime.getTime());

bike.Addbike(bike_id sqlDate place note);

System.out.println(“增加成功“);
bikemanger(““““);
return “bikemanger“;
}





@RequestMapping(“/bikebxmanger“)
public String bikebxmanger() {
return “bikebxmanger“;
}
@RequestMapping(“/bikecharge“)
public String bikecharge() {
return “bikecharge“;
}

}

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

     文件        928  2018-05-22 22:07  Bike\.classpath

     文件        904  2018-05-08 13:44  Bike\.project

     文件        567  2018-05-08 13:44  Bike\.settings\.jsdtscope

     文件         69  2018-05-22 16:43  Bike\.settings\org.eclipse.core.resources.prefs

     文件        364  2018-05-08 13:44  Bike\.settings\org.eclipse.jdt.core.prefs

     文件        464  2018-05-08 13:44  Bike\.settings\org.eclipse.wst.common.component

     文件        353  2018-05-08 13:44  Bike\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2018-05-08 13:44  Bike\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2018-05-08 13:44  Bike\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件       2673  2018-06-06 17:40  Bike\build\classes\beans.xml

     文件      11085  2018-06-04 20:14  Bike\build\classes\bike.sql

     文件       2375  2018-06-08 07:51  Bike\build\classes\com\bike\controller\BikeMangerController.class

     文件       4166  2018-06-08 07:51  Bike\build\classes\com\bike\controller\ChargeController.class

     文件       5640  2018-06-08 07:51  Bike\build\classes\com\bike\controller\LoginController.class

     文件       1666  2018-06-08 07:51  Bike\build\classes\com\bike\controller\MyUseBikeController.class

     文件       1816  2018-06-08 07:51  Bike\build\classes\com\bike\controller\RegisterController.class

     文件       4730  2018-06-08 07:51  Bike\build\classes\com\bike\controller\UseBikeController.class

     文件       4373  2018-06-08 07:51  Bike\build\classes\com\bike\controller\UserController.class

     文件       1984  2018-06-08 07:51  Bike\build\classes\com\bike\controller\UserMangerController.class

     文件       1913  2018-06-08 07:51  Bike\build\classes\com\bike\createjson\CreateFileUtil.class

     文件       1502  2018-06-08 07:51  Bike\build\classes\com\bike\createjson\JsonFormatTool.class

     文件       2063  2018-06-08 08:37  Bike\build\classes\com\bike\createjson\MyJson.class

     文件       3129  2018-06-08 07:51  Bike\build\classes\com\bike\dao\BikeMangerDao.class

     文件       1425  2018-06-08 07:51  Bike\build\classes\com\bike\dao\ChargeInfoDao$1.class

     文件       2539  2018-06-08 07:51  Bike\build\classes\com\bike\dao\ChargeInfoDao.class

     文件       1707  2018-06-08 07:51  Bike\build\classes\com\bike\dao\LoginDao.class

     文件       1393  2018-06-08 07:51  Bike\build\classes\com\bike\dao\MyUseBikeInfoDao.class

     文件       1924  2018-06-08 07:51  Bike\build\classes\com\bike\dao\RegisterDao.class

     文件       4189  2018-06-08 07:51  Bike\build\classes\com\bike\dao\UseBikeDao.class

     文件       1550  2018-06-08 07:51  Bike\build\classes\com\bike\dao\UserInfoDao$1.class

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

评论

共有 条评论