#
zjj
2025-07-02 d3f3d4b309cfb285fcbbc48b91c4046111c7e9cd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package com.zy.asrs.controller;
 
import com.core.common.R;
import com.zy.common.utils.News;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
@Slf4j
@RestController
@RequestMapping("/news")
public class NewsController {
    @RequestMapping("/print")
    public synchronized R print(){
        return R.ok().add(News.print());
    }
}