提交 50836cb8 编写于 作者: 武汉红喜's avatar 武汉红喜

converter

上级 4af3ede2
......@@ -4,9 +4,9 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.itlong.whatsmars.earth.domain.pojo.User;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
/**
* Created by javahongxi on 2017/10/22.
......@@ -19,7 +19,7 @@ public class NewController {
public User t(@RequestParam(required = false) Date month) {
User user = new User();
user.setName("Lily");
user.setMonth(month);
user.setCreated(month);
return user;
}
}
......
package com.itlong.whatsmars.earth.web.controller;
import java.util.Date;
/**
* Created by shenhongxi-os on 2017/11/16.
*/
public class User {
private String name;
private Date month;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Date getMonth() {
return month;
}
public void setMonth(Date month) {
this.month = month;
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册