# 基础接口

使用Spring boot进行API接口的开发,详细可见官方文档 (opens new window)

需引入REST模块:

<dependency>
    <groupId>cn.openfuse</groupId>
    <artifactId>fly-rest</artifactId>
    <version>${fly.version}</version>
</dependency>

为更好地了解使用后文中的示例,我们需知道大部分的API开发功能都是围绕Controller应用的:

@RestController
public class EntityController {
    
    @GetMapping()
    public Page<Entity> query() {...}
    
}
顶部