首页>代码>spring mvc+spring+hibernate开发简单的java bbs论坛系统,适合二次开发>/Forum/src/com/baidu/controller/ChildBoardController.java
package com.baidu.controller;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.baidu.entity.ChildBoard;
import com.baidu.entity.Post;
import com.baidu.service.ChildBoardService;
import com.baidu.service.PostService;
import com.baidu.util.ConstantPageURL;
@Controller
public class ChildBoardController {
@Autowired
private ChildBoardService childBoardService;
@Autowired
private PostService postService;
@RequestMapping("/manager/childBoard")
@ResponseBody
public List findMainBoardChildBoard(int id){
//根据主版块id查询子版块 集合
List<ChildBoard> list = childBoardService.findByMainBoardId(id);
return list;
}
}
最近下载更多
wouldbb LV6
2023年3月25日
yanghanqiang LV3
2023年2月17日
1342203642 LV10
2023年1月18日
超炫爱 LV2
2022年12月5日
molu123456
2022年11月15日
暂无贡献等级
yazhiyjs LV4
2022年8月30日
拂袖云中 LV4
2022年6月17日
微信网友_5916966536499200 LV2
2022年4月15日
wanglinddad LV55
2022年3月24日
你好啊李光庚 LV1
2022年3月21日
最近浏览更多
6418368 LV10
8月5日
月牙君 LV1
4月25日
ChanLain LV2
3月3日
123123123W LV7
2024年1月22日
空中飞尘 LV13
2023年12月13日
1383838438 LV1
2023年11月15日
微信网友_6465435620184064 LV7
2023年10月24日
asssasa LV1
2023年10月17日
唐钰小宝A LV13
2023年9月12日
山东老马
2023年7月7日
暂无贡献等级

