Quickstart - Spring Boot
Project dependencies
To use the unit-api with Spring Boot you need to include the following dependencies to your pom.xml/build.gradle file:
implementation("com.raynigon.unit-api:spring-boot-jackson-starter:3.0.8")
implementation("com.raynigon.unit-api:spring-boot-jpa-starter:3.0.8")
implementation("com.raynigon.unit-api:spring-boot-springdoc-starter:3.0.8")
<dependency>
<groupId>com.raynigon.unit-api</groupId>
<artifactId>spring-boot-jackson-starter</artifactId>
<version>3.0.8</version>
</dependency>
<dependency>
<groupId>com.raynigon.unit-api</groupId>
<artifactId>spring-boot-jpa-starter</artifactId>
<version>3.0.8</version>
</dependency>
<dependency>
<groupId>com.raynigon.unit-api</groupId>
<artifactId>spring-boot-springdoc-starter</artifactId>
<version>3.0.8</version>
</dependency>
Module description
- The first module provides a convenient wrapper around the Unit API Jackson Module.
- The second module provides JPA integration for Hibernate.
- The third module provides enhanced API documentation for Quantity and Unit properties in Springdoc.