Controller+Service+DAO初试水
**因为本人之前一直接触Android的前端开发,可以说对于后台的一窍不通,几乎可以算的上的下白一个,怎么说现在很多人都为了高薪,去参加培训机构,去培训Android、IOS、HTML5,本人也是通过培训出来的,怎么说呢,有很多人对此褒贬不一,有的人说培训机构都是骗人的,他们都是为了盈利为主,其他的都不管;而有些人则不同意,反对这么说,他们说不管怎么样,自己确确实实的学了不少知识,了解了很多的知识,反正比以前强了好多。
而我呢,虽然对此也持有一些自己的见解,我认为肯定没有宣传的那么好,因为宣传嘛,要是说的太真了,反而不能 特别的吸引人。还有就是,不管说的再怎么好,都得需要你自己努力,你自己不努力再好的培训的培训机构也没有用。所以,我对此褒大于贬。
好了跑题了,下面讲一下我第一次android后台的代码。**
Controller为了展示数据的:
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.goldcity.business.service.GcWisdomService;
import com.goldcity.persistence.entity.SysUserInfo;
import com.repast.core.constant.SysConstant;
import com.repast.core.spring.auth.Author;
import com.repast.core.spring.auth.CheckType;
import com.repast.core.spring.mvc.util.JSONMap;
@Controller
@RequestMapping("/GcWisdomController")
public class GcWisdomController {
@Resource
GcWisdomService gcWisdomService;
/**
* 查找 sys_user_info http://192.168.1.141:8080/goldcity/GcWisdomController/
* querySysUserInfoList.json
*
* @return model
*/
@RequestMapping("/querySysUserInfoList.json")
public @ResponseBody JSONMap<String, Object