• 大小: 57.22MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2022-07-02
  • 语言: Java
  • 标签: ssm  入门  

资源简介

JAVA小白启蒙篇:第一个SSM框架搭建示例(附源码下载) 积分我设定不了对不起各位

资源截图

代码片段和文件信息

package com.relyn.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import com.relyn.dao.UserDao;
import com.relyn.model.User;

@Controller
@RequestMapping(value = “/user“)
public class UserController {

@Autowired
private UserDao userDao;

@RequestMapping(value = “/say/{userMsisdn}“)
public ModelAndView msisdnView(@PathVariable String userMsisdn) {
User user = userDao.getUserNameByMsisdn(userMsisdn);
ModelAndView mv = new ModelAndView();
mv.setViewName(“user/index“);
mv.addobject(“userName“ user.getUserName());
mv.addobject(“userMsisdn“ user.getUserMsisdn());
return mv;
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-08-02 08:26  HelloWorld\
     文件         608  2016-08-02 08:29  HelloWorld\.classpath
     目录           0  2016-08-02 11:55  HelloWorld\.myeclipse\
     文件         311  2016-08-02 08:29  HelloWorld\.mymetadata
     文件        1929  2016-08-02 08:29  HelloWorld\.project
     目录           0  2016-08-02 08:12  HelloWorld\.settings\
     文件         508  2016-08-02 08:12  HelloWorld\.settings\.jsdtscope
     文件          56  2016-08-02 08:12  HelloWorld\.settings\com.genuitec.eclipse.j2eedt.core.prefs
     文件          62  2016-08-02 08:12  HelloWorld\.settings\org.eclipse.core.resources.prefs
     文件         430  2016-08-02 08:12  HelloWorld\.settings\org.eclipse.jdt.core.prefs
     文件          90  2016-08-02 08:11  HelloWorld\.settings\org.eclipse.m2e.core.prefs
     文件         573  2016-08-02 08:29  HelloWorld\.settings\org.eclipse.wst.common.component
     文件         252  2016-08-02 08:12  HelloWorld\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2016-08-02 08:12  HelloWorld\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2016-08-02 08:12  HelloWorld\.settings\org.eclipse.wst.jsdt.ui.superType.name
     文件        6040  2016-08-02 08:18  HelloWorld\pom.xml
     目录           0  2016-08-02 08:18  HelloWorld\resource\
     文件         725  2016-08-02 08:42  HelloWorld\resource\config.properties
     文件         624  2016-08-02 08:18  HelloWorld\resource\log4j.properties
     文件        1370  2016-08-02 08:18  HelloWorld\resource\spring-base.xml
     文件        2515  2016-08-02 08:18  HelloWorld\resource\spring-druid.xml
     文件        1996  2016-08-02 08:18  HelloWorld\resource\spring-mvc.xml
     文件        5036  2016-08-02 08:18  HelloWorld\resource\spring-mybatis.xml
     目录           0  2016-08-02 08:11  HelloWorld\src\
     目录           0  2016-08-02 08:11  HelloWorld\src\main\
     目录           0  2016-08-02 08:12  HelloWorld\src\main\java\
     目录           0  2016-08-02 08:12  HelloWorld\src\main\java\com\
     目录           0  2016-08-02 08:15  HelloWorld\src\main\java\com\relyn\
     目录           0  2016-08-02 08:16  HelloWorld\src\main\java\com\relyn\controller\
     文件         881  2016-08-02 08:49  HelloWorld\src\main\java\com\relyn\controller\UserController.java
     目录           0  2016-08-02 08:16  HelloWorld\src\main\java\com\relyn\dao\
............此处省略130个文件信息

评论

共有 条评论