自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(81)
  • 资源 (44)
  • 收藏
  • 关注

原创 Spring系列:RestTemplate使用方法(代理HttpClient)

目录pomApplicationentityGetPut/DeletePostControllerHttpClient使用起来比较繁琐,使用Spring的RestTemplate可以替代。pom<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/..

2020-07-27 00:13:52 1109

原创 Spring系列:swagger接口文档使用方法

目录pomapplicationConfigController效果http://localhost:8080/swagger-ui.htmlpom<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:s..

2020-07-27 00:02:25 555

原创 Spring系列:JPA ORM映射类型之多对多实战例子

基础Spring系列:JPA ORM映射类型之1对1实战例子Spring系列:JPA ORM映射类型之1对多实战例子demoEntityDAOServicepom<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/...

2020-07-25 23:43:14 351

原创 Spring系列:JPA ORM映射类型之1对多实战例子

基础Spring系列:JPA ORM映射类型之1对1实战例子demoEntityDAOServicepom<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...

2020-07-25 23:31:44 351

原创 Spring系列:JPA ORM映射类型之1对1实战例子

Entitypackage com.example.demo.entity;import lombok.Data;import javax.persistence.*;@Entity@Data@Table(name = "stdu")public class Student { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private long id; private String

2020-07-25 23:07:45 398

原创 Spring系列:JPA 原生SQL查询方法

基础Spring系列:JPA JPQL使用方法原生SQL方法设置@Query的属性为nativeQuery = true@Query(value = "select u.* from Article u where u.title = ? ", nativeQuery = true):title 、?1 匹配第一个参数title @Query(value = "select u.* from Article u where u.title = :title ", n.

2020-07-25 18:31:52 500

原创 Spring系列:JPA JPQL使用方法

按规则自动生成查询SQL方法:Spring系列:JPA 常用接口和方法JPQL方法自定义查询JPQL 不支持使用 INSERT,对于 UPDATE、DELETE 操作,必须使用注解@Modifying

2020-07-25 18:14:50 485

原创 Spring系列:JPA多字段排序、翻页实现Demo

基础Spring系列:JPA实战(完整Demo)排序、翻页Demo摘自上篇博客:/** * Description: 文章列表 */@RequestMapping("")public ModelAndView articlelist(@RequestParam(value = "start", defaultValue = "0") Integer start, @RequestParam(value =..

2020-07-25 17:38:20 1122

原创 Spring系列:JPA实战(完整Demo)

效果Demopom<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd...

2020-07-25 17:31:45 1123

原创 Spring系列:JPA之PagingAndSortingRepository接口、CrudRepository接口

分页接口PagingAndSortingRepository提供:分页+排序数据操作接口CrudRepository

2020-07-25 16:54:10 325

原创 Spring系列:JPA之JpaRepository接口

public interface JpaRepository<T, ID> extends PagingAndSortingRepository<T, ID>, QueryByExampleExecutor<T>可以看出JpaRepository继承了接口PagingAndSortingRepository和QueryByExampleExecutor。而PagingAndSortingRepository又继承CrudRepos...

2020-07-25 16:19:23 826

原创 Spring系列:JPA常用注解说明

实体常用注解映射关系注解

2020-07-25 13:19:09 304

原创 Spring系列:JPA的使用方法Demo

Spring Data JPA是个非常强大的ORM持久化解决方案,免去了mybatis或spring jdbcTemplate的开发人员编写脚本的工作。 通过简单明了地约定好接口方法的规则,来自动生成相应的JPQL语句,映射成PO对象,能大幅节省开发人员的编码量。 Jpa是一种规范,而Hibernate是它的一种实现,不用在进行配置工作。 Demopom<?xml version="1.0" encoding="UTF-8"?><proj...

2020-07-25 13:02:03 399

原创 Spring系列:JPA 常用接口和方法

基本方法方法定义规则 符号 含义 And 并且 Or 或 Is,Equals 等于 Between 两者之间 LessThan 小于 LessThanEqual 小于等于 GreaterTh...

2020-07-25 12:09:11 1195

原创 Scala系列:函数的用法

2020-07-22 00:20:00 297

原创 Scala系列:var和val的区别

val:相当于Java的Finalvar 普通变量声明

2020-07-21 23:56:32 349

原创 Idea系列:Idea各种plugins插件下载地址(完整步骤)

目录登录https://plugins.jetbrains.com/搜索选择版本登录https://plugins.jetbrains.com/搜索选择版本

2020-07-21 23:13:08 4801

原创 Spring系列:ORM操作数据库DB之JdbcTemplate使用方法

效果注意事项MySQL系列:Caused by: com.mysql.cj.exceptions.UnableToConnectException: CLIENT_PLUGIN_AUTH is requiredpom<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/200..

2020-07-20 23:46:15 376

原创 MySQL系列:Caused by: com.mysql.cj.exceptions.UnableToConnectException: CLIENT_PLUGIN_AUTH is required

配置信息spring.datasource.url=jdbc:mysql://localhost/test2020?useUnicode=true&characterEncoding=utf-8&serverTimezone=UTCspring.datasource.username=rootspring.datasource.password=root# mysql5使用com.mysql.jdbc.Driver,spring.datasource.drive...

2020-07-20 23:36:14 4492 1

原创 Spring系列:监听截器Listener 的使用方法(入门Demo)

监听器( Listener)用监听Web应用程序的某些对象或信息的创建、销毁、增加 、修改、删除等动作,然后做出相应的响应处理。当对象的状态发生变化时,服务器自动调用监听器的方法,监听器常用于统计在线人数、在线用户、系统加载时的信息初始化等操作。监听器分类Demo效果...

2020-07-20 23:03:47 479

原创 Spring系列:过滤 / 拦截器Filter的使用方法(入门Demo)

使用步骤( 1 )新建类,实现 Filte抽象类( 2 )重写 init、doFilter、 destroy方法。( 3)在Spring Boot入口中添加注解@ServletComponentScandemoServletComponentScan效果

2020-07-20 22:56:01 430

原创 Spring 系列:IOC理解、IOC例子Demo

它将程序中创建对象的控制权交给Spring框架来管理,以便降低计算机代码之间的辑合度Demopackage com.example.demo.entity;import lombok.Data;import java.io.Serializable;@Datapublic class User implements Serializable { private int id; private String name; }...

2020-07-20 00:24:37 352

原创 JAVA系列:代理(Proxy) 源码分析应用实战

基础https://blog.csdn.net/VIP099/article/details/107449433Demo追加一个方法接着上节,这里追加一个方法,将生成的class文件反编译出来瞅瞅。确认idea是否已经安装反编译插件反编译之后的完整代码//// Source code recreated from a .class file by IntelliJ IDEA// (powered by Fernflower decompiler)//...

2020-07-19 19:35:12 376

原创 JAVA系列:代理(Proxy) 源码分析

基础设计模式系列:代理(Proxy)模式应用实践源码分析进入Proxy.newProxyInstance进入getProxyClass0proxyClassCache在哪里设置?原来是一个弱引用。进入ProxyClassFactory关键代码:生成二进制class数据流生成二进制class数据流byte[] proxyClassFile = ProxyGenerator.generateProxyClass( proxyNa...

2020-07-19 19:20:28 808

原创 设计模式系列:代理(Proxy)模式应用实践

代理模式是对象的结构模式。代理模式给某一个对象提供一个代理对象,并由代理对象控制对原对象的引用。 代理对象可以在客户端和目标对象之间起到中介的作用 代理对象通常在客户端调用传递给目标对象之前或之后,执行某个操作,而不是单纯地将调用传递给目标对象。静态代理动态代理package com.example.demo.aop;public interface Person { pu...

2020-07-19 18:13:24 366

原创 设计模式系列:适配器(Adapter)模式应用实践

适配器模式把一个类的接口变换成客户端所期待的另一种接口,从而使原本因接口不匹配而无法在一起工作的两个类能够在一起工作。Demopublicinterface和尚 {publicvoid吃斋();publicvoid念经();publicvoid打坐();publicvoid撞钟();publicvoid习武();publicString getName();}...

2020-07-19 12:54:02 432

原创 Spring 系列:AOP理解、AOP例子Demo

Spring 系列:Spring AOP 中@Pointcut的用法(多个Pointcut)

2020-07-18 16:00:32 342

原创 Spring 系列:Spring AOP 中@Pointcut的用法(多个Pointcut)

格式:execution(modifiers-pattern? ret-type-pattern declaring-type-pattern? name-pattern(param-pattern)throws-pattern?) 解释:修饰符匹配(modifier-pattern?) 返回值匹配(ret-type-pattern)可以为*表示任何返回值,全路径的类名等 类路径匹配(declaring-type-pattern?) 方法名匹配(name-pattern)可以指...

2020-07-18 15:14:42 13123 1

原创 Sping系列: MVC理解

@Controller的作用@Controller用于标记在一个类上,使用它标记的类就是一个SpringMVC Controller对象。分发处理器将会扫描使用了该注解的类的方法,并检测该方法是否使用了@RequestMapping注解。@Controller只是定义了一个控制器类,而使用@RequestMapping注解的方法才是真正处理请求的处理器,这样把所有的URL都记录下来。...

2020-07-18 14:39:14 284

原创 zabbix系列:diff和change区别

diff:前后两个值是否有差异(结果只有两个:1有差异,0无差异)change:前后两个值的差值(结果取决于前后两个值的差值)。

2020-07-17 11:47:08 1764

原创 Spring Boot系列:数据验证注解使用方法

Hibernate-validator常用注解自定义

2020-07-16 23:59:37 1202

原创 Spring Boot系列:Thymeleaf视图使用方法

效果Spring Boot 主要支持Thymeleaf、FreeMarker等模板引擎使用方法引入依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId></dependency>加入命名空间<...

2020-07-16 23:46:40 371

原创 Spring Boot系列:MVC工程流程

Spring MVC框架中, DispatcherServlet 继承自 HttpServlet ,负责协调和组织不同组件,以完成请求处理并返回响应。整个工程流程如下: ( 1 )客户端(用户)发出的请求到Tomcat (服务器)接收,然后Tomcat 将请求转交给DispatcherServlet处理 ( 2 ) DispatcherServlet 匹配控制器中配置的映射路径,进行下一步处理 ( 3 ) ViewResolver「将 ModelAndView或E...

2020-07-16 23:21:28 409

原创 Spring Boot系列:常用Starter 使用方法

为了简化配置,Spring Boot提供了非常多的 Starter。 先把与常用模块相关的所有JAR打包,并完成自动配置,然后组装成Starter使用方法<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId></dependency>...

2020-07-16 23:16:27 609

原创 Spring Boot系列:application.xml配置文件的使用(开发、生产环境分离)

Spring Boot系列:application.properties配置文件的使用

2020-07-16 22:41:18 2389

原创 Spring Boot系列:application.properties配置文件的使用

Spring Boot支持Properties和YAML 两种配 方式(Properties优先级高于YAML)。application.propertiescom.example.name=${name:xx}com.example.age=90com.example.address[0]=bjcom.example.address[1]=szcom.example.address[2]=tjProExample.java@Data set、get...

2020-07-16 22:40:52 922

原创 Spring Boot系列:@RestController、@RequestMapping注解

@RestController@RestController注解是@Controller和@ResponseBody的合集,表示这是个控制器bean,并且是将函数的返回值直 接填入HTTP响应体中,是REST风格的控制器。package com.example.demo;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.bind.annotation.Res

2020-07-16 22:21:41 751

原创 Spring Boot系列:@Application注解

@SpringBootApplication@SpringBootApplication是一个复合注解,包含了@SpringBootConfiguration,@EnableAutoConfiguration,@ComponentScan这三个注解@ComponentScan让spring Boot扫描到Configuration类并把它加入到程序上下文。可自动发现和装配一些Bean@Configuration 等同于spring的XML配置文件;使用Java代码可以检查类型安全。...

2020-07-16 22:16:39 1098

原创 Spring Boot系列:修改启动图案

效果application.properties增加 spring.output.ansi.enabled=ALWAYS增加banner.txt文件,内容如下:${AnsiColor.BRIGHT_RED} _ooOoo_ o8888888o 88" . "88 (| -_-..

2020-07-15 23:45:58 554

原创 Spring Boot系列:自动配置使用说明

使用方法Spring Boot会根据配置的依赖信息进行自动配置,从而减轻开发者搭建环境和配置的负担。如果在项目中依赖了 spring-boot-starter-web ,则 Spring Boot 会自动配置 Web 环境(配置Tomcat、Web MVC Validator、JSON 等)。实现原理通过注解@EnableAutoConfiguration 来实现的验证idea通过run -EditConfigurations,设置 --de...

2020-07-15 23:26:30 378

kibana-7.7.0-x86_64.rpm

官方开源软件kibana-7.7.0-x86_64.rpm

2020-05-15

elasticsearch-7.7.0-x86_64.rpm

官方开源 elasticsearch-7.7.0-x86_64.rpm

2020-05-15

elasticsearch-7.7.0-2020-linux-x86_64.tar.gz.zip

官方开源 elasticsearch-7.7.0-linux-x86_64.tar.gz

2020-05-15

kibana-6.3.2-2020-x86_64.rpm.zip

官方开源软件kibana-6.3.2-2020-x86_64.rpm.zip

2020-05-01

elasticsearch-2020-6.3.2.rpm.zip

官方开源软件 elasticsearch-2020-6.3.2.rpm.zip

2020-05-01

kibana-7.3.0-x86_64.rpm

官方开源软件kibana-7.3.0-x86_64

2020-05-01

elasticsearch-7.3.0-x86_64.rpm

官方开源软件elasticsearch-7.3.0-x86_64.rpm

2020-05-01

jdk-8u202-linux-x64-2020.zip

官方开源安装包jdk-8u202-linux-x64-2020.zip

2020-04-29

logstash-7.2.1.rpm

官方开源 logstash-7.2.1.rpm安装包

2020-04-29

jdk-8u213-linux-arm64-vfp-hflt.tar.zip

官方 jdk1.8 jdk-8u213-linux-arm64-vfp-hflt.tar.zip

2020-04-20

filebeat-7.2.0-linux-x86_64.tar.gz

elastic.co官方开源包 filebeat-7.2.0-linux-x86_64.tar.gz

2020-04-20

winsock-win10无法上网修复.zip

现象:chrome浏览器可以上网,其他软件都无法上网! 原因:某些原因导致注册表的winsock项被删除, 导致无法上网。

2020-03-31

grafana-6.7.1.linux-amd64.tar.gz

grafana最新版本,grafana-6.7.1.linux-amd64.tar.gz

2020-03-28

alexanderzobnin-grafana-zabbix-v3.11.0-1-g52f24ec.zip

Grafana zabbix数据源官方插件 alexanderzobnin-grafana-zabbix-v3.11.0-1-g52f24ec.zip

2020-03-28

node_exporter-1.0.0-rc.0.linux-amd64.tar.gz

Prometheus最新官方开源版本 node_exporter-1.0.0-rc.0.linux-amd64.tar.gz

2020-03-28

prometheus-2.17.1.linux-amd64.tar.gz

linux版本 官方开源下载版本 prometheus-2.17.1.linux-amd64.tar.gz

2020-03-28

zabbix snmp redhat7/centos7 离线安装包

zabbix snmp redhat7/centos7 离线安装包zabbix snmp redhat7/centos7 离线安装包zabbix snmp redhat7/centos7 离线安装包

2020-02-26

redhat7、centos7系统,zabbix Server 离线安装包

redhat7、centos7系统,zabbix Server 离线安装包 redhat7、centos7系统,zabbix Server 离线安装包redhat7、centos7系统,zabbix Server 离线安装包

2020-02-19

redhat7、centos7 zabbix proxy安装包

redhat7、centos7 zabbix proxy安装包 zabbix-proxy-mysql-4.2.4-1.el7.x86_64.rpm

2020-02-19

redhat6、centod6系统zabbix agent安装包 zabbix-agent-4.2.4-1.el6.x86_64.rpm

redhat6、centod6系统zabbix agent安装包 zabbix-agent-4.2.4-1.el6.x86_64.rpm

2020-02-19

统计最近N分钟的热门商品TOP data.zip

统计最近N分钟的热门商品TOP X实现 :data数据文件

2021-05-05

Flink统计最近N分钟的热门商品TOP 5实现.zip

Flink统计最近N分钟的热门商品TOP 5实现

2021-05-05

flink1.11写入ES7.10完整代码(JAVA程序实现)

flink1.11写入ES7.10完整代码(JAVA程序实现)

2021-04-11

Spring-WebSocket-demo01.zip

Spring websocket完整例子,入门例子code

2021-03-15

MemoryAnalyzer-1.10.0.20200225-win32.win32.x86_64版本.zip

MemoryAnalyzer-1.10.0.20200225-win32.win32.x86_64版本.zip

2020-09-27

MemoryAnalyzer-1.10.0.20200225-linux.gtk.x86_64.zip

MemoryAnalyzer-1.10.0.20200225-linux.gtk.x86_64.zip

2020-09-27

nicstat-1.92.tar.gz

nicstat-1.92.tar.gz nicstat-1.92.tar.gz nicstat-1.92.tar.gz

2020-09-06

elasticsearch-7.8.0-linux-x86_64-2020.tar.zip

官方开源软件 elasticsearch-7.8.0-linux-x86_64.tar.gz

2020-07-13

grafana-7.0.6.linux-amd64.tar.gz

官方开源软件grafana-7.0.6.linux-amd64.tar.gz

2020-07-13

filebeat-7.8.0-linux-x86_64.tar.gz

官方开源软件filebeat-7.8.0-linux-x86_64.tar.gz

2020-07-13

prometheus-2.19.2.linux-amd64.tar.gz

linux版本 官方开源下载版本 prometheus-2.19.2.linux-amd64.tar.gz

2020-07-13

M7268W小新打印机固件升级包

M7268W小新打印机固件升级包

2020-07-11

(新版)小新打印软件使用手册.pdf

(新版)小新打印软件使用手册.pdf

2020-07-11

flink-1.10.1-bin-scala_2.12.tgz

flink-1.10.1-bin-scala_2.12.tgz

2020-06-06

Git-2.26.2-64-bit.windows.zip

官方开源Git-2.26.2-64-bit.windows

2020-06-03

xampp-linux-x64-7.4.6-0-installer.zip

xampp官方开源 xampp-linux-x64-7.4.6-0-installer.run

2020-06-03

mantisbt-2.24.1.zip

官方开源软件mantisbt-2.24.1.zip

2020-06-03

xampp-windows-x64-7.4.5-0-VC15-installer.zip

免费开源xampp官方 windows版本 An easy to install Apache distribution containing MySQL, PHP, and Perl Brought to you by: bitnami, koswalds, kvogelgesang

2020-06-03

Git-2.26.2-64-bit.windows.zip(官方开源软件windows 64版本)

官方开源软件 Git-2.26.2-64-bit(windows 64版本) 官方开源软件 Git-2.26.2-64-bit 官方开源软件 Git-2.26.2-64-bit

2020-05-31

kibana-7.7.0-linux-x86_64-2020.tar.gz.zip

官方开源软件 kibana-7.7.0-linux-x86_64.tar.gz

2020-05-15

空空如也

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

TA关注的人

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