springdemo
kong-kong
记录流水账
展开
-
ResolvableType Demo
Spring 中优雅的获取泛型信息的方法,Spring给我们提供了ResolvableType这个类 例子 public class ResolvableTypeDemo { HashMap<String,Integer> map = new HashMap<>(); } ResolvableType t = ResolvableType.forField(ResolvableTypeDemo.class.getDeclaredField("map"));.原创 2020-09-01 19:02:20 · 381 阅读 · 0 评论 -
BeanWrapper demo
public static void main(String[] args) { BeanWrapper company = new BeanWrapperImpl( new Company()); // setting the company name.. company.setPropertyValue(...原创 2018-11-23 23:58:15 · 231 阅读 · 0 评论