42 BeanMapper Spring Boot Starter

Spring boot starter/autoconfig for BeanMapper

Лицензия

Лицензия

Категории

Категории

Spring Boot Контейнер Микросервисы
Группа

Группа

io.beanmapper
Идентификатор

Идентификатор

beanmapper-spring-boot-starter
Последняя версия

Последняя версия

3.2.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

42 BeanMapper Spring Boot Starter
Spring boot starter/autoconfig for BeanMapper
Организация-разработчик

Организация-разработчик

42 BV
Система контроля версий

Система контроля версий

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

Скачать beanmapper-spring-boot-starter

Как подключить последнюю версию

<!-- 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"]

Зависимости

compile (7)

Идентификатор библиотеки Тип Версия
org.springframework.boot : spring-boot-autoconfigure jar
org.springframework.boot : spring-boot-configuration-processor Необязательный jar
org.springframework.boot : spring-boot-starter-data-jpa Необязательный jar
org.springframework.boot : spring-boot-starter-web Необязательный jar
org.springframework.boot : spring-boot-starter-security Необязательный jar
io.beanmapper : beanmapper-spring jar 3.1.0
io.beanmapper : beanmapper jar 3.1.0

test (2)

Идентификатор библиотеки Тип Версия
org.springframework.boot : spring-boot-starter-test jar
org.junit.vintage : junit-vintage-engine jar

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
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