SearchController

package com.sxt.es;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class SearchController {

	@Autowired
	private IndexService service;
	
	@RequestMapping("/search.do")
	public String search(String keyword,int num,int count,Model m){
		PageBean<HtmlBean> page =service.search(keyword, num, count);
		m.addAttribute("page", page);
		return "/index.jsp";
	}
}

  

posted @ 2018-07-05 12:55  uuhh  阅读(129)  评论(0)    收藏  举报