首页>代码>springboot+jsp+bootstrap3+接口编程开发网站demo实例>/fmoney/fmoney-html/src/main/java/com/sxy/controller/BlockController.java
package com.sxy.controller;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import com.sxy.service.BlockService;
import com.sxy.vo.Block;
@Controller
public class BlockController {
@Autowired
private BlockService bs;
@RequestMapping("/show.htm")
public String getBlock(String hash,int num,int row,HttpServletRequest req){
Block b =bs.GetBlock(hash, num, row);
req.setAttribute("block", b);
return "show";
}
/*@RequestMapping("/getblock.htm")
public String getBlock(HttpServletRequest req){
List<Block> list =bs.getBlocks();
req.setAttribute("listblocks", list);
return "login";
}*/
}
最近下载更多
zjjhzjb LV15
2023年9月19日
1529860026 LV24
2022年10月8日
快乐男孩 LV6
2021年6月1日
panda猫儿 LV2
2021年5月14日
zoujialuo LV9
2020年8月12日
newstu1981 LV1
2020年6月12日
2187693636 LV12
2020年4月10日
风萧萧兮易水寒雨 LV2
2019年9月18日
chj198795 LV7
2019年8月7日
black-shuai LV6
2019年6月22日

最近浏览