42 BeanMapper Spring Boot Starter

Spring boot starter/autoconfig for BeanMapper

License

License

Categories

Categories

Spring Boot Container Microservices
GroupId

GroupId

io.beanmapper
ArtifactId

ArtifactId

beanmapper-spring-boot-starter
Last Version

Last Version

3.2.0
Release Date

Release Date

Type

Type

jar
Description

Description

42 BeanMapper Spring Boot Starter
Spring boot starter/autoconfig for BeanMapper
Project Organization

Project Organization

42 BV
Source Code Management

Source Code Management

https://github.com/42BV/beanmapper-spring-boot-starter

Download beanmapper-spring-boot-starter

How to add to project

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

Dependencies

compile (7)

Group / Artifact Type Version
org.springframework.boot : spring-boot-autoconfigure jar
org.springframework.boot : spring-boot-configuration-processor Optional jar
org.springframework.boot : spring-boot-starter-data-jpa Optional jar
org.springframework.boot : spring-boot-starter-web Optional jar
org.springframework.boot : spring-boot-starter-security Optional jar
io.beanmapper : beanmapper-spring jar 3.1.0
io.beanmapper : beanmapper jar 3.1.0

test (2)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter-test jar
org.junit.vintage : junit-vintage-engine jar

Project Modules

There are no modules declared in this project.

Build Status Codacy Badge BCH compliance codecov Maven Central Javadocs Apache 2

BeanMapper Spring Boot Starter

Spring boot starter/autoconfig project for Beanmapper

Features

Auto-configures a BeamMapper instance and adds it as a spring bean to the ApplicationContext. All custom implementations of BeanConverter found in the application's packages are instantiated and added to the BeanMapper.
A MergedFormMethodArgumentResolver is instantiated and added to the already configured Spring MVC argument resolvers.

Usage

Add this maven dependency to your project and you can start wiring the BeanMapper instance:

<dependency>
    <groupId>io.beanmapper</groupId>
    <artifactId>beanmapper-spring-boot-starter</artifactId>
    <version>3.0.1</version>
</dependency>

Customization

  1. By default, the package of the @SpringBootApplication annotated class will be used as root where BeanMapper will look for classes to convert and where it will search for implementors of BeanConverter to instantiate and configure. If you want to override this package, add the beanmapper.package-prefix=<custom-root-package> property to the application environment.
  2. If you do not want to make use of the HibernateAwareUnproxy feature, add beanmapper.use-hibernate-unproxy=false to the application environment.
  3. If you want full control over the BeanMapper configuration, add a bean of type BeanMapperBuilderCustomizer to the application context:
@Bean
public BeanMapperBuilderCustomizer beanMapperCustomizer() {
    return builder -> {
        // After the autoconfiguration is done with the BeanMapperBuilder,
        // control over this builder is passed to this callback just before build()
        // is called to create the BeanMapper.
    };
}
io.beanmapper

Versions

Version
3.2.0
3.1.1
3.1.0
3.0.1
3.0.0
2.4.1.SPRING5
2.4.1
2.4.0
2.3.2
2.3.1
2.3.0
2.2.0
2.1.0
2.0.2
2.0.1
2.0.0
1.0.0
0.1.0