首页>代码>基于ssm+bootstrap+jquery的学生成绩管理系统>/student/src/main/java/com/student/controller/ClassesAjaxController.java
package com.student.controller;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.student.pojo.Classes;
import com.student.service.ClassesService;
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 ClassesAjaxController {
    @Autowired
    @Qualifier("classesServiceImpl")
    private ClassesService classesService;
    @RequestMapping("/queryClassesByCID")
    private String queryClassesByCID(String classID) throws JsonProcessingException {
        Classes classes = classesService.queryClassesByID(Integer.parseInt(classID));
        ObjectMapper objectMapper = new ObjectMapper();
        String val = objectMapper.writeValueAsString(classes);
        return val;
    }
}
最近下载更多
咩咩咩咩咩  LV2 2月28日
的撒基本大奖  LV7 1月3日
苏柒  LV10 2023年12月15日
ss770737034  LV3 2023年12月7日
zxcfgh  LV4 2023年11月21日
jiemomo  LV12 2023年11月2日
刘洋66666  LV1 2023年10月31日
hongdongdong  LV12 2023年9月7日
李亮  LV19 2023年8月28日
最近浏览更多
XJH939  LV1 3月14日
咩咩咩咩咩  LV2 2月28日
周青松197  LV2 2月21日
liiiyou  LV1 1月26日
的撒基本大奖  LV7 1月3日
磊哥哥哥哥  LV13 2023年12月26日
WBelong  LV7 2023年12月25日
fff2003  LV6 2023年12月24日
black8angel  LV4 2023年12月22日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友