{"id":36627590,"url":"https://github.com/rozidan/modelmapper-spring-boot-starter","last_synced_at":"2026-01-12T09:33:44.876Z","repository":{"id":57722493,"uuid":"101435313","full_name":"rozidan/modelmapper-spring-boot-starter","owner":"rozidan","description":"A Spring Boot starter that let you use ModelMapper within your Spring Boot application","archived":false,"fork":false,"pushed_at":"2019-07-27T12:55:38.000Z","size":104,"stargazers_count":20,"open_issues_count":2,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-22T19:03:00.762Z","etag":null,"topics":["java","modelmapper","modelmapper-spring-boot-starter","spring-boot"],"latest_commit_sha":null,"homepage":"http://modelmapper.org","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rozidan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-25T19:20:53.000Z","updated_at":"2022-08-22T09:57:09.000Z","dependencies_parsed_at":"2022-08-29T23:02:04.640Z","dependency_job_id":null,"html_url":"https://github.com/rozidan/modelmapper-spring-boot-starter","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/rozidan/modelmapper-spring-boot-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozidan%2Fmodelmapper-spring-boot-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozidan%2Fmodelmapper-spring-boot-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozidan%2Fmodelmapper-spring-boot-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozidan%2Fmodelmapper-spring-boot-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rozidan","download_url":"https://codeload.github.com/rozidan/modelmapper-spring-boot-starter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozidan%2Fmodelmapper-spring-boot-starter/sbom","scorecard":{"id":786070,"data":{"date":"2025-08-11","repo":{"name":"github.com/rozidan/modelmapper-spring-boot-starter","commit":"47f02771318d7db51142af5645ea121e0c583729"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-23T06:07:40.342Z","repository_id":57722493,"created_at":"2025-08-23T06:07:40.342Z","updated_at":"2025-08-23T06:07:40.342Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28337728,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","modelmapper","modelmapper-spring-boot-starter","spring-boot"],"created_at":"2026-01-12T09:33:44.282Z","updated_at":"2026-01-12T09:33:44.864Z","avatar_url":"https://github.com/rozidan.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring Boot ModelMapper Starter\n\u003e A Spring Boot starter that let you use [ModelMapper](http://modelmapper.org) within your Spring Boot application.\n\n\u003e Base on [jmnarloch modelmapper project](https://github.com/jmnarloch/modelmapper-spring-boot-starter) with Modelmapper newest version adjustments.\n\n[![Build Status](https://travis-ci.org/rozidan/modelmapper-spring-boot-starter.svg?branch=master)](https://travis-ci.org/rozidan/modelmapper-spring-boot-starter)\n[![Coverage Status](https://coveralls.io/repos/github/rozidan/modelmapper-spring-boot-starter/badge.svg?branch=master)](https://coveralls.io/github/rozidan/modelmapper-spring-boot-starter?branch=master)\n\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.rozidan/modelmapper-spring-boot-starter/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.rozidan/modelmapper-spring-boot-starter/)\n[![Sonatype Nexus (Snapshots)](https://img.shields.io/nexus/s/https/oss.sonatype.org/com.github.rozidan/modelmapper-spring-boot-starter.svg)](https://oss.sonatype.org/content/repositories/snapshots/com/github/rozidan/modelmapper-spring-boot-starter/)\n\n[![License](http://img.shields.io/:license-apache-brightgreen.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)\n\n## Features\nRegister the ModelMapper to your Spring Boot application and allows to configure it and register object mappings.\n\n## Setup\nIn order to add ModelMapper to your project simply add this dependency to your classpath:\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.rozidan\u003c/groupId\u003e\n    \u003cartifactId\u003emodelmapper-spring-boot-starter\u003c/artifactId\u003e\n    \u003cversion\u003e2.3.1\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n```groovy\ncompile 'com.github.rozidan:modelmapper-spring-boot-starter:2.3.1'\n```\nFor snapshots versions add the sonatype public repository:\n```groovy\nrepositories {\n    mavenCentral()\n    maven { url \"https://oss.sonatype.org/content/groups/public\" }\n    ...\n}\n```\n\n### Change ModelMapper global configuration\nIn order to set change ModelMapper global configuration, simply register within Spring application context instance of  `MapperConfigurer`:\n```java\n@Component\npublic class GlobalConfiguration extends MapperConfigurer {\n    @Override\n    public void configure(Configuration configuration) {\n        configuration.setSkipNullEnabled(true);\n        configuration.setMatchingStrategy(MatchingStrategies.STRICT);\n    }\n}\n```\n\n### Overriding the default mapping\nIn order to override the default mapping of some object types, lets say User -\u003e UserDto, simply register within Spring application context instance of `TypeMapConfigurer`:\n```java\n@Component\npublic class MapperConfigurer extends TypeMapConfigurer\u003cUser, UserDto\u003e {\n    @Override\n    public void configure(TypeMap\u003cUser, UserDto\u003e typeMap) {\n        typeMap.addMapping(User::getAge, UserDto::setAge);\n        typeMap.addMappings(mapping -\u003e mapping.skip(UserDto::setMiddleName));\n        typeMap.setPreConverter(context -\u003e {\n            String[] name = context.getSource().getName().split(\" \");\n            context.getDestination().setFirstName(name[0]);\n            context.getDestination().setLastName(name[1]);\n            return context.getDestination();\n        });\n        \n    }\n}\n```\n\n### Custom converter\nIn order to register ModelMapper Converter, simply register within Spring application context instance of `ConverterConfigurer`:\n```java\n@Component\npublic class SomeEnumTypeConverter extends ConverterConfigurer\u003cProductCategory, ProductCategoryDto\u003e {\n        @Override\n        public Converter\u003cProductCategory, ProductCategoryDto\u003e converter() {\n            return new AbstractConverter\u003cProductCategory, ProductCategoryDto\u003e() {\n                @Override\n                protected ProductCategoryDto convert(ProductCategory source) {\n                    ...\n                }\n            };\n        }\n    }\n```\n\n### Testing\nScan for mapping components with the `WithModelMapper` annotation \n```java\n@RunWith(SpringRunner.class)\npublic class MapperTest {\n    \n    @Test\n    public void someTest() {\n        \n    }\n    \n    @Configuration\n    @WithModelMapper(basePackage = \"com.company.program.mapping\")\n    public static class Application {\n    }\n}\n```\n\n## License\n[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frozidan%2Fmodelmapper-spring-boot-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frozidan%2Fmodelmapper-spring-boot-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frozidan%2Fmodelmapper-spring-boot-starter/lists"}