spring boot
hb407033
这个作者很懒,什么都没留下…
展开
-
WebFlux 全异步及分页支持
WebFlux 分页支持webflux是spring框架构建响应式web新框架,但是后端只能使用非关系型数据库,包括:redis,mongo,Cassandra,elasticsearch,此文档中演示通过elasticsearch构建全异步支持的日志服务,重点在对分页支持上。基础组件:spring-boot 2.2.1spring-boot-starter-data-elasticse...原创 2019-12-31 10:15:00 · 2610 阅读 · 3 评论 -
spring-cloud-alibaba 2.1.0 适配 spring-boot 2.2
问题spring-boot 2.2 搭配 spring-cloud-alibaba 2.1.0 时启动报错***************************APPLICATION FAILED TO START***************************Description:An attempt was made to call a method that does...原创 2019-12-26 11:40:49 · 808 阅读 · 0 评论 -
jpa @Query 返回DTO
定义DTO对象此处使用lombok,需要在pom.xml中引用@Datapublic class BookDTO{ private int id; private String name; ## 重点在构造函数,需要让Query中实例化是有构造函数可以调用 public BookDTO(int id,String name){ this.id = id; this.nam...原创 2019-12-19 11:57:16 · 698 阅读 · 0 评论