首页>代码>基于SSM的服装商场前台加后台管理系统 >/clothStore/src/main/java/com/clothing/controller/AdminUserAjaxController.java
package com.clothing.controller; import com.clothing.pojo.User; import com.clothing.service.UserService; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** * @author 是一个鸽子啊 * @date 2020/4/14 * @qq 364826415 */ @RestController public class AdminUserAjaxController { @Autowired @Qualifier("userServiceImpl") private UserService userService; @RequestMapping("/queryUserByIDA") private String queryUserByIDA(String userID) throws JsonProcessingException { User user = userService.queryUserByID(Integer.parseInt(userID)); ObjectMapper objectMapper = new ObjectMapper(); String val = objectMapper.writeValueAsString(user); return val; } }
最近下载更多
夜上清元 LV8
3月15日
之额着 LV3
2月19日
admin_z LV22
2月4日
ljhgff LV1
1月27日
微信网友_6512020493586432 LV2
2023年9月5日
qq2901732871 LV9
2023年6月28日
gecongkai LV8
2023年6月22日
limin123 LV6
2023年6月22日
2017143155 LV12
2023年6月14日
tangyongheng08 LV6
2023年6月13日