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