⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 listinstructorscontroller.java

📁 spring in action 源代码
💻 JAVA
字号:
package com.springinaction.training.mvc;import java.util.List;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;import org.springframework.web.servlet.ModelAndView;import org.springframework.web.servlet.mvc.AbstractController;import com.springinaction.training.service.InstructorService;public class ListInstructorsController extends AbstractController {  protected ModelAndView handleRequestInternal(      HttpServletRequest request, HttpServletResponse response)       throws Exception {        List instructors = instructorService.findAllInstructors();        return new ModelAndView("instructorList", "instructors", instructors);  }    private InstructorService instructorService;  public void setInstructorService(InstructorService instructorService) {    this.instructorService = instructorService;  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -