/**
*
*/
package com.my.web.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
/**
* TODO 控制层代码
* @author aitacx
* @date 2014年11月27日
*/
@Controller
public class MyController {
@RequestMapping("login")
private @ResponseBody String hello(
@RequestParam(value = "username", required = false)String username,
@RequestParam(value = "password", required = false)String password
){
return "Hello "+username+",Your password is: "+password;
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
my.zip (20个子文件)
my
pom.xml 2KB
target
test-classes
m2e-wtp
web-resources
META-INF
maven
com
my
pom.xml 2KB
pom.properties 202B
MANIFEST.MF 107B
classes
com
my
web
controller
MyController.class 1KB
service
.settings
org.eclipse.m2e.core.prefs 90B
org.eclipse.wst.jsdt.ui.superType.name 6B
org.eclipse.wst.common.project.facet.core.xml 292B
org.eclipse.wst.common.component 647B
org.eclipse.wst.jsdt.ui.superType.container 49B
org.eclipse.wst.validation.prefs 50B
.jsdtscope 575B
org.eclipse.jdt.core.prefs 430B
src
test
java
main
webapp
META-INF
MANIFEST.MF 39B
WEB-INF
web.xml 2KB
dispatcher-servlet.xml 2KB
lib
index.jsp 629B
resources
java
com
my
web
controller
MyController.java 705B
service
.project 1KB
.classpath 2KB
共 20 条
- 1
aitcax
- 粉丝: 99
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
- 5
- 6
前往页