Update CourseService.java
From beanutils.java,
The method copyProperties(Object dest, Object orig) is improperly used in this example.
@@ -29,6 +29,6 @@ public class CourseService {
}
public static void copyProperties(Course course, CourseEntity courseEntity) throws IllegalAccessException, InvocationTargetException {
- BeanUtils.copyProperties(course, courseEntity);
+ BeanUtils.copyProperties(courseEntity, course);
}
}
