guys.
I've found this code
Class<?> fieldClass = null;
if (field.getType().isPrimitive()) {
fieldClass = ClassUtils.primitiveToWrapper(field.getType());
}
ClassUtils isn't recognized, so I imported
import org.springframework.util.ClassUtils;
after dowloading it from the repos.
Now I need to find a way to get the wrapper from the primitive Class, I've read the documentation of Spring, but I found nothig.
Can you guys help me?
Aucun commentaire:
Enregistrer un commentaire