src/main/java/com/web/controller/DoctoradviceController.java
(完整代码) 785Bpackage com.web.controller;
import java.util.ArrayList;
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.web.entity.Doctoradvice;
import com.web.service.DoctoradviceService;
@Controller
@RequestMapping("/doctoradvice")
public class DoctoradviceController {
@Resource
DoctoradviceService doctoradviceService;
@RequestMapping("/queryDoctoradvice")
@ResponseBody
public List<Doctoradvice> getDoctoradvice() {
List<Doctoradvice> list = doctoradviceService.getDoctoradvice();
if (list == null) {
return new ArrayList<Doctoradvice>();
}
return list;
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
