Demo entry 6789093

222

   

Submitted by anonymous on Apr 25, 2019 at 13:09
Language: Java. Code size: 522 Bytes.

    @RequestMapping(value = "/", method = RequestMethod.GET)  
        public String list(@RequestParam(defaultValue = "1") Integer pageNo, @RequestParam(defaultValue = "20") Integer pageSize) {  
            QueryWrapper<DatasourceBase> wrapper = new QueryWrapper<>();  
            Page<DatasourceBase> queryPage = new Page<>(pageNo, pageSize);  
            IPage<DatasourceBase> pageData = datasourceBaseService.page(queryPage, wrapper);  
            return ResponseResults.data(pageData);  
        }  

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).