首页>代码>【小C出品】spring+angularjs+bootstrap+mysql+mongodb整合开发小型开源博客系统,前台纯html>/src/main/java/org/yl/ims/controller/BlogCtrl.java
package org.yl.ims.controller; 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.ResponseBody; import org.yl.ims.model.db.Blog; import org.yl.ims.service.BlogService; import org.yl.ims.util.Page; @Controller @RequestMapping("blog") public class BlogCtrl { @Autowired private BlogService blogService; @RequestMapping("bloglist") @ResponseBody public Page<Blog> getBlog(int pageSize, int pageIndex) { return blogService.getBlogData(pageIndex, pageSize); } @RequestMapping("delblog") public int delBlog(int bid) { return blogService.delBlogById(bid); } }
最近下载更多
wanglinddad LV53
2022年4月5日
ohmlawx LV2
2021年10月28日
Louis LV7
2021年8月12日
wyyybl LV4
2020年9月17日
手落弦崩 LV13
2019年10月21日
1310431445 LV6
2019年6月22日
zuizui LV1
2019年4月19日
dch187 LV13
2019年4月2日
希望依然 LV6
2019年2月19日
2907787153 LV1
2018年12月28日