摘要:
1、解决空属性赋值问题 ①、新建一个MyBeanUtils工具类封装空属性赋值方法 public class MyBeanUtils { public static String[] getNullPropertyNames(Object source){ BeanWrapper beanWrapp 阅读全文
摘要:
1、归档功能 ①、在NewRepository接口中添加两条查询方法头 @Query("select function('date_format',n.updateTime,'%Y') as year from News n group by year order by year desc ") L 阅读全文
摘要:
1、在New、Tag和Type的Repository接口中添加相应的数据库查询语句与对应方法头 NewRepository中添加: @Query("select n from News n where n.title like ?1 or n.content like ?1") Page<News> 阅读全文