自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 资源 (4)
  • 收藏
  • 关注

原创 SpringCloudGateway笔记(3)-Predict与自定义Predict

Predict与自定义PredictPredict(谓词)用于匹配用户的请求,来选择是否要路由Spring Cloud Gateway自带的谓词工程列表Predict说明After Route Predicate请求的时候发生在指定时间之后Before Route Predicate请求发生在指定时间之前Between Route Predicate请求...

2019-05-20 20:33:16 1735 1

原创 SpringCloudGateway笔记(2)-filter与自定义filter

filter与自定义filter过滤器可以在路由请求之前对请求进行处理,也可以在请求响应之后对响应进行处理在请求路由之前可以做比如参数校验,鉴权,日志记录,协议转换,请求参数修改,路径修改等在请求响应之后可以做比如记录响应消息,修改响应,修改响应头等最常见的功能就是鉴权,日志记录,限流和权重路由Filter分为Gateway Filter和Global FilterGateway Fi...

2019-05-20 00:50:20 4024 1

原创 SpringCloudGateway笔记(1)-介绍与基础使用

Spring Cloud Gateway 介绍和基础使用简介Spring Cloud Gateway是Spring官方团队推出的网关框架,用于取代Spring Cloud Netflix ZuulSpring Cloud Gateway的特征:基于Spring Framework 5、Project Reactor和Spring Boot 2.0构建能够匹配任何请求属性上的路由。谓词...

2019-05-12 23:45:45 393

原创 SpringDataJPA笔记(8)-EntityManager

EntityManager,以及union查询,left join查询EntityManager是JPA中用于增删改查的接口,而通常我们使用的是Hibernate-EntityManagerHibernate-EntityManager实现了标准的JPA,可以把它看成hibernate-core和JPA之间的适配器,它并不直接提供ORM的功能,而是对hibernate-core进行封装,使得H...

2019-05-11 16:17:11 1765

原创 SpringDataJPA笔记(7)-Specification

SpringDataJPA-Specification使用Specification可以构建动态查询原生的使用起来有点复杂,这里推介一个别人封装好的工具包这里是github的地址https://github.com/wenhao/jpa-spec/blob/master/README_CN.md<!-- https://mvnrepository.com/artifact/com....

2019-05-11 00:27:51 691

原创 SpringDataJPA笔记(6)-value注解的使用

使用查询的时候可以使用value注解,也是一种视图查询1. 在类上面使用Lombok的value注解@Valuepublic class NameEntity { String name; Long id;}添加对应查询方法<T> List<T> findByAgeGreaterThan(int age, Class<T> type...

2019-05-09 23:21:01 599

原创 SpringDataJPA笔记(5)-子查询

SpringDataJPA-子查询子查询也是一种视图查询STEP1 构建视图类@Data@Entity@Subselect("select d.id as id, d.name as dog_name, c.name as cat_name from dog_tb d left join cat_tb c on d.id=c.id")@Synchronize({"dog_tb", "c...

2019-05-08 22:00:09 1530

原创 SpringDataJPA笔记(4)-命名查询与基础规则

命名查询与基本规则1. JPA可以根据函数名生成基本的查询语句,下表是支持的关键字KeywordSampleJPQL snippetAndfindByLastnameAndFirstname… where x.lastname = ?1 and x.firstname = ?2OrfindByLastnameOrFirstname… where x.last...

2019-05-07 22:50:28 286

原创 SpringDataJPA笔记(3)-基于SpringBoot基础用法

基于SpringBoot的基础用法STEP1. 引入POM依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId></dependency&gt...

2019-05-06 23:16:18 256

原创 SpringDataJPA笔记(2)-基于SpringBoot的配置项

基于SpringBoot的配置项大概整理了一下配置项说明spring.jpa.databasespring.jpa.database-platform设置数据库引擎spring.jpa.generate-ddl如果Hibernate自动配置被激活,那该标识就不会被使用,因为ddl-auto设置粒度更细| spring.jpa.hibernate.dd...

2019-05-05 23:54:49 874

原创 SpringDataJPA笔记(1)-基础概念和注解

SpringDataJPA的基础概念和注解一 JPA的介绍JPA是Java Persistence API的简称,中文名Java持久层API,是JDK 5.0注解或XML描述对象-关系表的映射关系,并将运行期的实体对象持久化到数据库中。Sun引入新的JPA ORM(Object Relational Mapping)规范出于两个原因:其一,简化现有Java EE和Java SE应用开发工作;...

2019-05-04 22:37:47 1103

基于C51的报警器

基于C51单片机的计时报警器 具有倒计时功能 到点报警 含启动暂停按钮 定时闹铃响

2014-11-07

基于51单片机的霹雳灯

基于51单片机的霹雳灯 有按键可控制灯的亮灭和花式 有protues仿真和keil的编译文件 可以直接运行

2014-11-07

大学物理实验报告指导

大学物理实验指导.。。。。。。。大学物理实验报告

2012-05-28

单片机烧录机

不用冷启动。直接连接下载. 自动下载自动匹配。 简单方便快捷。

2012-05-25

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除