Update CourseService.java

From beanutils.java,
The method copyProperties(Object dest, Object orig) is improperly used in this example.
This commit is contained in:
worldpeacez0991
2019-03-08 14:56:15 +08:00
committed by GitHub
parent c5fbfa2329
commit 3170e3c96e

View File

@@ -29,6 +29,6 @@ public class CourseService {
} }
public static void copyProperties(Course course, CourseEntity courseEntity) throws IllegalAccessException, InvocationTargetException { public static void copyProperties(Course course, CourseEntity courseEntity) throws IllegalAccessException, InvocationTargetException {
BeanUtils.copyProperties(course, courseEntity); BeanUtils.copyProperties(courseEntity, course);
} }
} }