spring-boot-starter-scala

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
Last Version

Last Version

2.3.4-0
Release Date

Release Date

Type

Type

pom
Description

Description

spring-boot-starter-scala
A spring-boot starter for scala language.
Project URL

Project URL

https://github.com/infilos/spring-boot-starter-scala
Source Code Management

Source Code Management

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

Download spring-boot-starter-scala

How to add to project

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

  • spring-boot-starter-scala-api
  • spring-boot-starter-scala-sample

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