Crow Rest Spring Boot Starter

当前文章语言尚未创建当前语言版本,显示 English 版本代替

Crow-Rest is a quick-starter based on SpringBoot to handle common CRUD operations via RESTful API, it’s easily integrated into your project especially new one, it’s built a new realization via abstract the common operations in web development.

Features

  • Build a full-functionally module with almost no codes need to write
  • It’s easily to extend and override the default handlers
  • Provide a service for all data struct from defined entities, so you can build the front-end application based on it in the same programming style of Crow-Rest, like Crow-ExtJS (not finish yet)
  • more…

Getting started

Installation

The release in maven repository is hosted on Github, so add a new repository to your pom.xml:

<repositories>
    ...
    <repository>
        <id>crow-maven-repository</id>
        <name>crow-maven</name>
        <url>https://raw.github.com/laofahai/crow-maven-repository/master/</url>
    </repository>
</repositories>

and:

<dependency>
    <groupId>org.teamswift</groupId>
    <artifactId>crow-rest-spring-boot-starter</artifactId>
    <version>${crow-rest.version}</version>
</dependency>

Configuration

in your main class

First of all, you should configure the @SpringBootApplication annotation for your application can scan crow beans.

@SpringBootApplication(
        scanBasePackages = {
                "org.teamswift.crow",
                "com.your.application"
        }
)
public class CrowRestDemoApplication {
    // ...
}

handler for database

crow-rest is now provides a JPA handler and a Mybatis-Plus handler for database things. so please just configure that as usually as you did before.

security framework

crow-rest wasn’t provide a security framework in it by now, so just deal with it as you want.

Basic usage

For usage, follow this link to see the basic usage.

本站所有内容采用知识共享署名-非商业性使用-相同方式共享 4.0协议发布

评论