2018年1月23日
摘要: 官方给的用法解释 entityName select x from #{#entityName} x Inserts the entityName of the domain type associated with the given Repository. The entityName is r 阅读全文
posted @ 2018-01-23 16:30 幽人月 阅读(101) 评论(0) 推荐(0)
摘要: 这边的测试基于springboot 引入jpa的依赖 编写entity 编写Repository 一般开发而言通过继承CrudRepository的方式。先以这个为例。 先简单看下CrudRepository这个类 这边已经定义好了很多方法。 在开发中,我们可以直接通过注入StudentReposi 阅读全文
posted @ 2018-01-23 16:24 幽人月 阅读(178) 评论(0) 推荐(0)