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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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);
} }
} }