package com.baeldung.modelmapper; import org.modelmapper.ModelMapper; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.Bean; @SpringBootApplication public class PostApplication { public static void main(String[] args) { SpringApplication.run(PostApplication.class, args); } @Bean public ModelMapper modelMapper() { return new ModelMapper(); } }