com.infilos:spring-boot-starter-scala-api

A spring-boot starter for scala language.

License

License

Categories

Categories

Scala Languages Spring Boot Container Microservices
GroupId

GroupId

com.infilos
ArtifactId

ArtifactId

spring-boot-starter-scala-api
Last Version

Last Version

2.3.4-0
Release Date

Release Date

Type

Type

jar
Description

Description

A spring-boot starter for scala language.
Source Code Management

Source Code Management

https://github.com/infilos/spring-boot-starter-scala/tree/master/spring-boot-starter-scala-api

Download spring-boot-starter-scala-api

How to add to project

<!-- https://jarcasting.com/artifacts/com.infilos/spring-boot-starter-scala-api/ -->
<dependency>
    <groupId>com.infilos</groupId>
    <artifactId>spring-boot-starter-scala-api</artifactId>
    <version>2.3.4-0</version>
</dependency>
// https://jarcasting.com/artifacts/com.infilos/spring-boot-starter-scala-api/
implementation 'com.infilos:spring-boot-starter-scala-api:2.3.4-0'
// https://jarcasting.com/artifacts/com.infilos/spring-boot-starter-scala-api/
implementation ("com.infilos:spring-boot-starter-scala-api:2.3.4-0")
'com.infilos:spring-boot-starter-scala-api:jar:2.3.4-0'
<dependency org="com.infilos" name="spring-boot-starter-scala-api" rev="2.3.4-0">
  <artifact name="spring-boot-starter-scala-api" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.infilos', module='spring-boot-starter-scala-api', version='2.3.4-0')
)
libraryDependencies += "com.infilos" % "spring-boot-starter-scala-api" % "2.3.4-0"
[com.infilos/spring-boot-starter-scala-api "2.3.4-0"]

Dependencies

compile (7)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.12.12
org.scala-lang.modules : scala-java8-compat_2.12 jar 0.9.1
org.springframework.boot : spring-boot-starter-web jar 2.3.4.RELEASE
org.springdoc : springdoc-openapi-ui jar 1.4.7
org.zalando : logbook-spring-boot-starter jar 2.2.0
com.fasterxml.jackson.core : jackson-databind jar 2.11.2
com.infilos : relax-json-scala jar 2.11.2-1

Project Modules

There are no modules declared in this project.

spring-boot-starter-scala

A spring-boot starter for scala language.

Integrated features

Scala Jackson

Now you can use Json4s.underMapper to resolve spring underlying ObjectMapper.

Scala Future

Import com.infilos.spring.api.Converters._, then you can return a scala Future to deffered controller.

OpenAPI based Swagger

Default enabled swagger-ui with scala-jackson support.

Shutdown hook

You can register your custom shutdown: LifecycleConfigure.registerOnShutdown(runnable).

Spring context

You can resolve spring application context from static scope: ContextConfigure.context.

Predefined response

You can return a standard REST response with Respond.succed or Respond.failed.

Logback configuration

Provide a default logback configuration with console and size based rolling-file support.

Http request-response tracing log

Default enabled http tracing log, you can overwrite these configuration:

logging.level.org.zalando.logbook=TRACE
logbook.format.style=http

See https://github.com/zalando/logbook for more details.

Spring-boot version

Version is defined as 2.3.4-0, 2.3.4 is the spring-boot release version, -0 means this tookit's build version.

Contributions

Version

  1. Increase build version: bash version.sh -b
  2. Change spring-boot release version: bash version.sh -s 2.3.4

Release

  • Snapshot: mvn clean deploy
  • Release: mvn clean package source:jar gpg:sign install:install deploy:deploy

Versions

Version
2.3.4-0