摘要: SSH框架-持久层搭建 1、首先编写javabean对象(也就是配置数据库字段) package com.caicai.elec.doamin; import java.util.Date; public class ElecText implements java.io.Serializable 阅读全文
posted @ 2021-04-15 21:45 菜菜920 阅读(70) 评论(0) 推荐(0) 编辑
摘要: SpringBoot-自定义starter 1、新建一个项目 分别建好 configure、service 、impl 定义一个简单的接口 package com.caicai.springboot.service; //字符串分割接口定义 import java.util.List; public 阅读全文
posted @ 2021-02-28 16:01 菜菜920 阅读(45) 评论(0) 推荐(0) 编辑
摘要: SpringBoot actuator(自定义端点类) 1、编写自动端点类很简单,只需要在类前面使用@Endpoint注解 EndPoint中id 来表示url路径 2、使用@ReadOperation //显示监控指标 3、使用@WriteOperation //动态修改指标,以post方式修改 阅读全文
posted @ 2021-02-04 21:46 菜菜920 阅读(1142) 评论(2) 推荐(0) 编辑
摘要: SpringBoot actuator(监控) 1、Actuator 是什么?做什么用的? 是什么:它是SpringBoot 提供对,应用系统的监控和自查的集成功能 能做什么:查看应用配置信息、环境信息、对应用的控制和操作。 2、Actuator 监控分类 原生端点 应用配置 类 、度量指标类 、操 阅读全文
posted @ 2021-02-04 20:49 菜菜920 阅读(252) 评论(0) 推荐(0) 编辑
摘要: Brupsuite Target Scope模块 1、Scope 包含两部分 1.1 Include in scpoe //包含作用域,过滤想要的数据 简单的添加,例如我只要访问 https://www.iqiyi.com/ 一些数据信息 可以看到我们在加入作用域之后,访问其它网址我们是不受限制的, 阅读全文
posted @ 2021-02-03 22:07 菜菜920 阅读(132) 评论(0) 推荐(0) 编辑
摘要: Spring boot JackSon 为什么会使用到Jackson,一般情况在日常工作中,有部分操作都是需要序列化数据的。那么使用SpringBoot 内置 JackSon 调用起来更方便。 1、首先写一个简单的参数方法 添加注解 @Data//实现get set方法@NoArgsConstruc 阅读全文
posted @ 2021-02-02 22:07 菜菜920 阅读(449) 评论(0) 推荐(0) 编辑
摘要: BrupSuite 删除javascript实现绕过js上传文件 1、在浏览器响应的时候开始截断,然后在proxy模块中勾选remove javascript 选项。 2、我们在验证的时候可以将截断的请求,发送至Repeater中然后点击GO 验证的具体的响应信息 阅读全文
posted @ 2021-02-01 21:55 菜菜920 阅读(80) 评论(0) 推荐(0) 编辑
摘要: SpringBoot自启动方式 SprinngBoot 有两种启动方式: 1、ApplicationRunner 默认情况 ApplicationRunner 优先级高于CommandLineRunner 可以通过@Order注解来调整优先级 package com.caicai.springboo 阅读全文
posted @ 2021-01-31 16:26 菜菜920 阅读(312) 评论(0) 推荐(0) 编辑
摘要: SpringBoot 单元测试 1、在Spring Boot 项目中Test模块建对于的测试包 2、编写测试类准备工作 编写功能测试类之前,需要先编写一个验证环境测试方法,来验证当前环境是否正常。 编写测试一般需要声明两个注解 SpringBootTest //带有Springboot 引导程序,可 阅读全文
posted @ 2021-01-31 15:59 菜菜920 阅读(281) 评论(0) 推荐(0) 编辑
摘要: Springboot异步任务 1、在编写之前,我们需要在Pom文件种添加 starter-web依赖组件,只有加入这个之后,才可以加入异步服务。 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-b 阅读全文
posted @ 2021-01-31 14:50 菜菜920 阅读(332) 评论(0) 推荐(0) 编辑