01 2021 档案

摘要:SpringBoot自启动方式 SprinngBoot 有两种启动方式: 1、ApplicationRunner 默认情况 ApplicationRunner 优先级高于CommandLineRunner 可以通过@Order注解来调整优先级 package com.caicai.springboo 阅读全文
posted @ 2021-01-31 16:26 菜菜920 阅读(317) 评论(0) 推荐(0) 编辑
摘要:SpringBoot 单元测试 1、在Spring Boot 项目中Test模块建对于的测试包 2、编写测试类准备工作 编写功能测试类之前,需要先编写一个验证环境测试方法,来验证当前环境是否正常。 编写测试一般需要声明两个注解 SpringBootTest //带有Springboot 引导程序,可 阅读全文
posted @ 2021-01-31 15:59 菜菜920 阅读(287) 评论(0) 推荐(0) 编辑
摘要:Springboot异步任务 1、在编写之前,我们需要在Pom文件种添加 starter-web依赖组件,只有加入这个之后,才可以加入异步服务。 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-b 阅读全文
posted @ 2021-01-31 14:50 菜菜920 阅读(342) 评论(0) 推荐(0) 编辑
摘要:在Pom.xml里面添加了alibaba的fasterjson组件报错 <!-- 添加依赖插件 https://mvnrepository.com/ --> <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artif 阅读全文
posted @ 2021-01-31 13:46 菜菜920 阅读(2745) 评论(0) 推荐(0) 编辑
摘要:1、在Proxy种的Options 设置监听端口,选择全部接口 2、在手机上配置代理 设置burp suite的主机地址加上端口。之后手机访问的所有数据都会到burp suite所在的主机上。 阅读全文
posted @ 2021-01-28 22:44 菜菜920 阅读(90) 评论(0) 推荐(0) 编辑
摘要:Spring Booot 定时任务 日常开始种难免会需要定时的去调用某些功能,这个时候就需要写一个定时任务。 1、在启动Springboot启动类中添加允许开启定时任务注解 @EnableScheduling package com.caicai.springboot.study; import o 阅读全文
posted @ 2021-01-27 22:05 菜菜920 阅读(109) 评论(0) 推荐(0) 编辑
摘要:Burpsuite是由JAVA语言编写,所以Burpsuite是一款跨平台的软件。但是在测试过程中Burpsuite不像其他自动化测试工具不需要输入任何内容即可完成测试,而需要手动的配置某些参数触发对应的行为才会完成测试。 一般情况在使用Burpsuite访问http网页的时候是没问题的,但是在访问 阅读全文
posted @ 2021-01-27 21:25 菜菜920 阅读(141) 评论(0) 推荐(0) 编辑
摘要:注入方式有两种 1、@Vlaue注解方式进行注入 2、@Autowired 方式注入 示例 Application.yml spring: # profiles: # active: prod application: name: caicai-spring-study server: port: 阅读全文
posted @ 2021-01-25 22:13 菜菜920 阅读(660) 评论(0) 推荐(0) 编辑
摘要:1、在做主从复制之前,要保证主数据库与从数据库配置一样,如数据库的版本 2、修改主服务器master配置文件my.cnf: #vi /etc/my.cnf [mysqld] log-bin=mysql-bin //[必须]启用二进制日志 server-id=123 //[必须]服务器唯一ID3、修改 阅读全文
posted @ 2021-01-23 11:46 菜菜920 阅读(66) 评论(0) 推荐(0) 编辑
摘要:TCP/IP模型 应用层:应用层是TCP/IP协议的第一层,是直接为应用进程提供服务的。应用层还能加密、解密、格式化数据,文件传输、邮件、虚拟终端 传输层:提供端对端的接口,TCP/UDP协议 TCP 是面向连接的、可靠的流协议。流就是指不间断的数据结构,当应用程序采用 TCP 发送消息时,虽然可以 阅读全文
posted @ 2021-01-18 21:22 菜菜920 阅读(66) 评论(0) 推荐(0) 编辑
摘要:Spring boot 启动三种方式 静态run方式启动、API调整的方式、链式调用. 具体代码如下 1、在类前面加载一个SpringBootApplication 注解类 /* * *springboot启动类 * * */ @SpringBootApplication public class 阅读全文
posted @ 2021-01-16 18:00 菜菜920 阅读(204) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示