Skip to content

Commit 1b28118

Browse files
committed
Change the model mapper vendor to spring
1 parent 5b6d56a commit 1b28118

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

pom.xml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,15 @@
9191
<version>5.3.21</version>
9292
<scope>test</scope>
9393
</dependency>
94+
<!-- https://mvnrepository.com/artifact/org.modelmapper/modelmapper -->
95+
<!-- https://mvnrepository.com/artifact/org.modelmapper.extensions/modelmapper-spring -->
9496
<dependency>
95-
<groupId>org.modelmapper</groupId>
96-
<artifactId>modelmapper</artifactId>
97-
<version>3.0.0</version>
97+
<groupId>org.modelmapper.extensions</groupId>
98+
<artifactId>modelmapper-spring</artifactId>
99+
<version>3.1.0</version>
98100
</dependency>
99101

102+
100103
</dependencies>
101104

102105
<build>

src/main/java/lk/ijse/dep/note/config/WebRootConfig.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package lk.ijse.dep.note.config;
22

3+
import org.modelmapper.ModelMapper;
34
import org.springframework.beans.factory.config.YamlPropertiesFactoryBean;
45
import org.springframework.context.annotation.Bean;
56
import org.springframework.context.annotation.ComponentScans;
@@ -14,6 +15,8 @@
1415
@Configuration
1516
@Import(JpaConfig.class)
1617
public class WebRootConfig {
18+
19+
public ModelMapper
1720
@Bean
1821
public static YamlPropertiesFactoryBean yamlPropertiesFactoryBean(ConfigurableEnvironment env ){
1922
YamlPropertiesFactoryBean yamlPropertiesFactoryBean = new YamlPropertiesFactoryBean();

0 commit comments

Comments
 (0)