码迷,mamicode.com
首页 > 其他好文 > 详细

String转不同type的类对象

时间:2018-09-06 16:31:27      阅读:185      评论:0      收藏:0      [点我收藏+]

标签:不同   serial   converter   对象   ram   span   col   return   conf   

import org.springframework.beans.SimpleTypeConverter;

private Object deserializeValue(Class<?> returnType, String value) { SimpleTypeConverter typeConverter = new SimpleTypeConverter(); typeConverter.useConfigValueEditors(); return typeConverter.convertIfNecessary(value, returnType); }

 

String转不同type的类对象

标签:不同   serial   converter   对象   ram   span   col   return   conf   

原文地址:https://www.cnblogs.com/tonggc1668/p/9598452.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!