摘要:
1、评论功能 ①、创建Comment实体类,其中包括ID,nickname等元素 @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String nickname; private Str 阅读全文
posted @ 2020-07-31 17:13
Dragon_xl
阅读(2458)
评论(0)
推荐(0)
摘要:
1、在New、Tag和Type的Repository接口中添加相应的数据库查询语句与对应方法头 NewRepository中添加: @Query("select n from News n where n.title like ?1 or n.content like ?1") Page<News> 阅读全文
posted @ 2020-07-31 12:22
Dragon_xl
阅读(585)
评论(0)
推荐(0)

浙公网安备 33010602011771号