StackShareStackShare
Follow on
StackShare

Discover and share technology stacks from companies around the world.

Product

  • Stacks
  • Tools
  • Companies
  • Feed

Company

  • About
  • Blog
  • Contact

Legal

  • Privacy Policy
  • Terms of Service

© 2025 StackShare. All rights reserved.

API StatusChangelog
MapStruct
ByMapStructMapStruct

MapStruct

#2929in Languages
Stacks53Discussions0
Followers45
OverviewDiscussions

What is MapStruct?

It is a code generator that greatly simplifies the implementation of mappings between Java bean types based on a convention over configuration approach. The generated mapping code uses plain method invocations and thus is fast, type-safe and easy to understand.

MapStruct is a tool in the Languages category of a tech stack.

Key Features

Mapping (immutable) objects using buildersEnhanced and more flexible update method (@MappingTarget) handlingConstructor injection for Annotation Based component modelsSource policy for unmapped source properties (unmappedSourcePolicy)Support for defaultExpressionLimit mapping only to explicitly defined mappingsPerformance improvement of constant / defaultValue primitive to String mappingsWarnings for precision loss

MapStruct Pros & Cons

Pros of MapStruct

  • ✓Abstraction of the object conversion

Cons of MapStruct

No cons listed yet.

MapStruct Alternatives & Comparisons

What are some alternatives to MapStruct?

guava

guava

The Guava project contains several of Google's core libraries that we rely on in our Java-based projects: collections, caching, primitives support, concurrency libraries, common annotations, string processing, I/O, and so forth.

Java 8

Java 8

It is a revolutionary release of the world’s no 1 development platform. It includes a huge upgrade to the Java programming model and a coordinated evolution of the JVM, Java language, and libraries. Java 8 includes features for productivity, ease of use, improved polyglot programming, security and improved performance.

RxJava

RxJava

A library for composing asynchronous and event-based programs by using observable sequences for the Java VM.

Quarkus

Quarkus

It tailors your application for GraalVM and HotSpot. Amazingly fast boot time, incredibly low RSS memory (not just heap size!) offering near instant scale up and high density memory utilization in container orchestration platforms like Kubernetes. We use a technique we call compile time boot.

Apache FreeMarker

Apache FreeMarker

It is a "template engine"; a generic tool to generate text output (anything from HTML to auto generated source code) based on templates. It's a Java package, a class library for Java programmers.

MyBatis

MyBatis

It is a first class persistence framework with support for custom SQL, stored procedures and advanced mappings. It eliminates almost all of the JDBC code and manual setting of parameters and retrieval of results. It can use simple XML or Annotations for configuration and map primitives, Map interfaces and Java POJOs (Plain Old Java Objects) to database records.

MapStruct Integrations

NetBeans IDE, Eclipse, Java, IntelliJ IDEA are some of the popular tools that integrate with MapStruct. Here's a list of all 4 tools that integrate with MapStruct.

NetBeans IDE
NetBeans IDE
Eclipse
Eclipse
Java
Java
IntelliJ IDEA
IntelliJ IDEA

Try It

Visit Website

Adoption

On StackShare

Companies
11
PRBB오C+5
Developers
43
YTIKAD+37