elide-spring-boot

Spring Boot Starter for Elide

License

License

Categories

Categories

IDE Development Tools Spring Boot Container Microservices Elide Program Interface REST Frameworks
GroupId

GroupId

org.illyasviel.elide
ArtifactId

ArtifactId

elide-spring-boot
Last Version

Last Version

1.4.0
Release Date

Release Date

Type

Type

pom
Description

Description

elide-spring-boot
Spring Boot Starter for Elide
Project URL

Project URL

https://github.com/illyasviel/elide-spring-boot
Project Organization

Project Organization

illyasviel
Source Code Management

Source Code Management

https://github.com/illyasviel/elide-spring-boot

Download elide-spring-boot

How to add to project

<!-- https://jarcasting.com/artifacts/org.illyasviel.elide/elide-spring-boot/ -->
<dependency>
    <groupId>org.illyasviel.elide</groupId>
    <artifactId>elide-spring-boot</artifactId>
    <version>1.4.0</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/org.illyasviel.elide/elide-spring-boot/
implementation 'org.illyasviel.elide:elide-spring-boot:1.4.0'
// https://jarcasting.com/artifacts/org.illyasviel.elide/elide-spring-boot/
implementation ("org.illyasviel.elide:elide-spring-boot:1.4.0")
'org.illyasviel.elide:elide-spring-boot:pom:1.4.0'
<dependency org="org.illyasviel.elide" name="elide-spring-boot" rev="1.4.0">
  <artifact name="elide-spring-boot" type="pom" />
</dependency>
@Grapes(
@Grab(group='org.illyasviel.elide', module='elide-spring-boot', version='1.4.0')
)
libraryDependencies += "org.illyasviel.elide" % "elide-spring-boot" % "1.4.0"
[org.illyasviel.elide/elide-spring-boot "1.4.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • elide-spring-boot-starter
  • elide-spring-boot-autoconfigure
  • elide-spring-boot-sample

Elide integration with Spring Boot

Build Status Coverage Status License Maven Central

๐ŸŽ‰ Now, Elide has official support for Spring, please check out Elide Spring Artifacts. ๐ŸŽ‰

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
org.illyasviel.elide

Versions

Version
1.4.0
1.3.0
1.2.0
1.1.0
1.0.0