摘要: 插入: void insertMerchantBusiness(List<MerchantBusinessType> list); <insert id="insertMerchantBusiness"> insert into t_merchant_business_type (merchant_ 阅读全文
posted @ 2021-06-16 18:32 风骚羊肉串 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 1、ArrayList的toArray ArrayList提供了一个将List转为数组的一个非常方便的方法toArray。toArray有两个重载的方法: (1)list.toArray(); (2)list.toArray(T[] a); 不明真像的同学喜欢用第一个,是这样写: ArrayList 阅读全文
posted @ 2021-06-16 17:01 风骚羊肉串 阅读(2913) 评论(0) 推荐(2) 编辑
摘要: 首先这个注解是由Java提供的,它用来修饰一个非静态的void方法。它会在服务器加载Servlet的时候运行,并且只运行一次。 @PostConstructpublic void init() { algorithm = Algorithm.HMAC256(jwtSecret);}PostConst 阅读全文
posted @ 2021-06-16 15:59 风骚羊肉串 阅读(129) 评论(0) 推荐(0) 编辑