Elide Spring-Boot-Starter will help you use Elide with Spring Boot
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.mvn/wrapper
elide-spring-boot-autoconfigure
elide-spring-boot-sample
elide-spring-boot-starter
.gitignore
.travis.yml
CHANGELOG.md
LICENSE.txt
README.md
checkstyle-suppressions.xml
checkstyle.xml
mvnw
mvnw.cmd
pom.xml

README.md

Elide integration with Spring Boot

Build Status Coverage Status License Maven Central

Elide Spring-Boot-Starter will help you use Elide with Spring Boot

  • Automatically configure elide and json:api/GraphQL controller.
  • Integrated Spring Transaction.
  • Integrated Spring Dependency Injection (optional).
  • A convenience annotation, @ElideCheck("expression"), help you register elide check.
  • A convenience annotation, @ElideHook(lifeCycle = OnXXX.class), help you register elide function hook.
  • Catch org.hibernate.exception.ConstraintViolationException return HTTP 422.

Usage

<dependency>
  <groupId>org.illyasviel.elide</groupId>
  <artifactId>elide-spring-boot-starter</artifactId>
  <version>1.4.0</version>
</dependency>

The GraphQL auto configuration takes effect when elide-graphql on the classpath.

<dependency>
  <groupId>com.yahoo.elide</groupId>
  <artifactId>elide-graphql</artifactId>
  <version>${elide.version}</version>
</dependency>

Example

Check out the elide-spring-boot-sample.

Configuration

The following shows all the default properties.

elide:
  prefix: "/api"
  default-page-size: 20
  max-page-size: 100
  spring-dependency-injection: true
  return-error-objects: false
  mvc:
    enable: true
    get: true
    post: true
    patch: true
    delete: true
    graphql: true