资源简介

Spring+MyBatis企业应用实战 源码(含14章最后项目)+电子书.rar

资源截图

代码片段和文件信息

package org.fkit.controller;



import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;



/**   
 * @Description: 
 * 
网站:疯狂Java 
 * @author 肖文吉 36750064@qq.com   
 * @version V1.0   
 */

/**
 *  HelloController是一个基于注解的控制器
 *  可以同时处理多个请求动作,并且无须实现任何接口。
 *  org.springframework.stereotype.Controller注解用于指示该类是一个控制器
 */
@Controller
public class HelloController{

 private static final Log logger = LogFactory
            .getLog(HelloController.class);
 
 /**
  * org.springframework.web.bind.annotation.RequestMapping注解
  * 用来映射请求的的URL和请求的方法等。本例用来映射“/hello“
  * hello只是一个普通方法。
  * 该方法返回一个包含视图路径或视图路径和模型的ModelAndView对象。
  * */
 @RequestMapping(value=“/hello“)
 public ModelAndView hello(){
 logger.info(“hello方法 被调用“);
 // 创建准备返回的ModelAndView对象,该对象通常包含了返回视图的路径、模型的名称以及模型对象
 ModelAndView mv = new ModelAndView();
 //添加模型数据 可以是任意的POJO对象  
     mv.addobject(“message“ “Hello World!“);  
     // 设置逻辑视图名,视图解析器会根据该名字解析到具体的视图页面  
     mv.setViewName(“/WEB-INF/content/welcome.jsp“); 
// 返回ModelAndView对象。
return mv;
 }

}


 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件   50472529  2017-09-10 17:18  Spring+MyBatis企业应用实战\Spring+MVC+MYBatis企业应用实战.pdf

     文件        845  2016-01-27 17:03  Spring+MyBatis企业应用实战\源码\02\AnnotationTest\.classpath

     文件       1047  2016-01-27 17:03  Spring+MyBatis企业应用实战\源码\02\AnnotationTest\.project

     文件        503  2016-01-27 17:03  Spring+MyBatis企业应用实战\源码\02\AnnotationTest\.settings\.jsdtscope

     文件        364  2016-01-27 17:03  Spring+MyBatis企业应用实战\源码\02\AnnotationTest\.settings\org.eclipse.jdt.core.prefs

     文件        498  2016-01-27 17:03  Spring+MyBatis企业应用实战\源码\02\AnnotationTest\.settings\org.eclipse.wst.common.component

     文件        345  2016-01-27 17:03  Spring+MyBatis企业应用实战\源码\02\AnnotationTest\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2016-01-27 17:03  Spring+MyBatis企业应用实战\源码\02\AnnotationTest\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2016-01-27 17:03  Spring+MyBatis企业应用实战\源码\02\AnnotationTest\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件       1355  2016-07-27 13:34  Spring+MyBatis企业应用实战\源码\02\AnnotationTest\build\classes\org\fkit\controller\HelloController.class

     文件       1737  2016-07-27 13:34  Spring+MyBatis企业应用实战\源码\02\AnnotationTest\src\org\fkit\controller\HelloController.java

     文件         39  2016-01-27 17:03  Spring+MyBatis企业应用实战\源码\02\AnnotationTest\WebContent\meta-INF\MANIFEST.MF

     文件        431  2016-01-27 17:03  Spring+MyBatis企业应用实战\源码\02\AnnotationTest\WebContent\WEB-INF\content\welcome.jsp

     文件       1384  2016-01-27 17:03  Spring+MyBatis企业应用实战\源码\02\AnnotationTest\WebContent\WEB-INF\springmvc-config.xml

     文件        903  2016-01-27 17:03  Spring+MyBatis企业应用实战\源码\02\AnnotationTest\WebContent\WEB-INF\web.xml

     文件        845  2015-09-12 14:42  Spring+MyBatis企业应用实战\源码\02\SpringMVCTest\.classpath

     文件       1046  2015-09-12 14:42  Spring+MyBatis企业应用实战\源码\02\SpringMVCTest\.project

     文件        503  2015-09-12 14:42  Spring+MyBatis企业应用实战\源码\02\SpringMVCTest\.settings\.jsdtscope

     文件        364  2015-09-12 14:42  Spring+MyBatis企业应用实战\源码\02\SpringMVCTest\.settings\org.eclipse.jdt.core.prefs

     文件        491  2015-09-12 14:42  Spring+MyBatis企业应用实战\源码\02\SpringMVCTest\.settings\org.eclipse.wst.common.component

     文件        345  2015-09-12 14:42  Spring+MyBatis企业应用实战\源码\02\SpringMVCTest\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2015-09-12 14:42  Spring+MyBatis企业应用实战\源码\02\SpringMVCTest\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2015-09-12 14:42  Spring+MyBatis企业应用实战\源码\02\SpringMVCTest\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件       1490  2016-07-27 13:23  Spring+MyBatis企业应用实战\源码\02\SpringMVCTest\build\classes\org\fkit\controller\HelloController.class

     文件       1695  2016-07-27 13:23  Spring+MyBatis企业应用实战\源码\02\SpringMVCTest\src\org\fkit\controller\HelloController.java

     文件         39  2015-09-12 14:42  Spring+MyBatis企业应用实战\源码\02\SpringMVCTest\WebContent\meta-INF\MANIFEST.MF

     文件        436  2015-09-12 14:43  Spring+MyBatis企业应用实战\源码\02\SpringMVCTest\WebContent\WEB-INF\content\welcome.jsp

     文件        949  2015-09-12 14:43  Spring+MyBatis企业应用实战\源码\02\SpringMVCTest\WebContent\WEB-INF\springmvc-config.xml

     文件        905  2015-09-12 14:43  Spring+MyBatis企业应用实战\源码\02\SpringMVCTest\WebContent\WEB-INF\web.xml

     文件        845  2015-08-13 16:02  Spring+MyBatis企业应用实战\源码\03\ControllerTest\.classpath

............此处省略3481个文件信息

评论

共有 条评论