官方文档 https://docs.spring.io/spring-data/jpa/docs/1.11.16.RELEASE/reference/html/#repositories.special-parameters 1.根据时间排序时候查询遇见的错误 No property desc found for type Date! 出错前写法 findAllOrderByCreateTimeDesc 修改后写法 findAllByOrderByCreateTimeDesc 参考文档: htt
从mybatis3.4.0开始加入了@Mapper注解,目的就是为了不再写mapper映射文件 现在项目中的配置 public interface DemoMapper{ int deleteByPrimaryKey(Integer id);} @MapperScan("com.mapper")public class DlxRrsApplication {} 原因: 我们定义DemoMapper类,但是并没有在该类上定义类似@Service或者@Mapper之类的注解,那么为什么可以