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.
- 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...
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>
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 {
// ...
}
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.
crow-rest wasn't provide a security framework in it by now, so just deal with it as you want.
For usage, follow this link to see the basic usage.