标签:
首先需要4个jar包。下载地址如下
http://pan.baidu.com/s/1i4k3fiH
期中包含如下包,放到工程的lib中即可。
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
private static final Logger log = LoggerFactory.getLogger(User.class);
@RequestMapping(value="/showList") public String showList(Model model){ log.info("<<<<<<<<首页展示 start>>>>>>>>","userManager","showList"); List<User>userList=userDaoImpl.getList(); model.addAttribute("userList", userList); log.info("<<<<<<<<首页展示 end>>>>>>>>","userManager","showList"); return "index"; }
标签:
原文地址:http://www.cnblogs.com/wangxiangstudy/p/5177756.html