資源簡介
ssm框架搭建的demo 沒有多余的代碼非常簡潔

代碼片段和文件信息
package?com.controller;
import?javax.servlet.http.HttpServletRequest;
import?org.springframework.beans.factory.annotation.Autowired;
import?org.springframework.stereotype.Controller;
import?org.springframework.web.bind.annotation.RequestMapping;
import?com.service.UserService;
@Controller
public?class?UserController?{
????@Autowired
????private?UserService?userService;
????@RequestMapping(value=“/hello.do“)
????public?String?find(HttpServletRequest?request)
????{
????????String?age=userService.findAge(“1“);
????????System.out.println(age);//如果實驗成功,在控制臺會打印年齡25
????????return?“index“;
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????2300??2017-07-27?14:53??Examination\.classpath
?????文件???????1127??2017-07-27?15:14??Examination\.project
?????文件????????555??2017-07-25?23:53??Examination\.settings\.jsdtscope
?????文件????????598??2017-07-26?15:34??Examination\.settings\org.eclipse.jdt.core.prefs
?????文件????????477??2017-07-25?23:53??Examination\.settings\org.eclipse.wst.common.component
?????文件????????335??2017-07-25?23:53??Examination\.settings\org.eclipse.wst.common.project.facet.core.xm
?????文件?????????49??2017-07-25?23:53??Examination\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件??????????6??2017-07-25?23:53??Examination\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????文件???????1106??2017-07-28?09:18??Examination\build\classes\com\controller\UserController.class
?????文件????????171??2017-07-28?09:10??Examination\build\classes\com\mapper\UserMapper.class
?????文件????????318??2017-07-26?00:07??Examination\build\classes\com\mapper\userMapper.xm
?????文件????????891??2017-07-28?09:10??Examination\build\classes\com\model\User.class
?????文件????????795??2017-07-28?09:10??Examination\build\classes\com\service\impl\UserServiceImpl.class
?????文件????????174??2017-07-28?09:10??Examination\build\classes\com\service\UserService.class
?????文件????????634??2017-07-28?09:18??Examination\src\com\controller\UserController.java
?????文件?????????80??2017-07-26?00:07??Examination\src\com\mapper\UserMapper.java
?????文件????????318??2017-07-26?00:07??Examination\src\com\mapper\userMapper.xm
?????文件????????400??2017-07-26?00:04??Examination\src\com\model\User.java
?????文件????????501??2017-07-26?00:10??Examination\src\com\service\impl\UserServiceImpl.java
?????文件?????????83??2017-07-26?00:08??Examination\src\com\service\UserService.java
?????文件???????2276??2017-07-26?00:18??Examination\src\config\applicationContext.xm
?????文件????????342??2017-07-26?00:01??Examination\src\config\mybatis-config.xm
?????文件???????1174??2017-07-26?00:01??Examination\src\config\spring-mvc.xm
?????文件?????????39??2017-07-25?23:53??Examination\WebContent\me
?????文件????????473??2017-07-26?00:13??Examination\WebContent\WEB-INF\hello.jsp
?????文件????????363??2017-07-26?00:13??Examination\WebContent\WEB-INF\index.jsp
?????文件???????4467??2017-07-25?23:53??Examination\WebContent\WEB-INF\lib\aopalliance-1.0.jar
?????文件?????114926??2017-07-25?23:53??Examination\WebContent\WEB-INF\lib\aspectjrt.jar
?????文件????1887781??2017-07-25?23:53??Examination\WebContent\WEB-INF\lib\aspectjweaver.jar
?????文件??????61464??2017-07-25?23:53??Examination\WebContent\WEB-INF\lib\commons.logging-1.1.1.jar
............此處省略41個文件信息
評論
共有 條評論