摘要: 问题描述:请求参数address,接受请求参数用people接受(address是个对象,也是people的一个属性) 一、entity类创建 (people、address) @Datapublic class People { private String name; private Date 阅读全文
posted @ 2020-04-20 17:20 StrangerIt 阅读(917) 评论(0) 推荐(0)
摘要: 一、Coverter接口,将S型转换成T型 @FunctionalInterface public interface Converter<S, T> { /** * Convert the source object of type {@code S} to target type {@code 阅读全文
posted @ 2020-04-20 16:57 StrangerIt 阅读(3290) 评论(0) 推荐(0)
摘要: 参考:https://zhuanlan.zhihu.com/p/51296740 一、枚举类型初探,定义一个Season枚举 public enum Season { SPRING, SUMMER, AUTUMN, WINTER } 测试枚举类型的name、ordinal public class 阅读全文
posted @ 2020-04-20 16:28 StrangerIt 阅读(262) 评论(0) 推荐(0)