摘要: 本地简单mock服务使用 通过json来配置请求路径和返回值内容 项目地址: GitHub - dreamhead/moco: Easy Setup Stub Server 项目启动需要下载一个jar包, 并在同路径下创建一个json文件, json中可以配置返回值等内容 [{ "request" 阅读全文
posted @ 2023-09-19 14:09 Roy2048 阅读(73) 评论(0) 推荐(0)
摘要: Spring事件监听与发布 主要有以下部分: 事件(被监听的玩意),事件发布(把这个事件发布出去), 事件监听(用来监听事件, 并做行动) 项目中, 因为事件类型不同, 可以先定义事件的接口: Ievent: public interface IEvent { } 对于具体的事件, 可以实现IEve 阅读全文
posted @ 2023-04-07 14:50 Roy2048 阅读(105) 评论(0) 推荐(0)
摘要: 对于项目中常见的先获取token, 然后再调用接口的方式, 通常feignClient可以这么写: 首先写获取token的feignClient: 其中, 指定feignClient的url, 和配置类(内部类, 其中要传递loglevel, requestInterceptor要拦截添加heade 阅读全文
posted @ 2023-03-16 14:27 Roy2048 阅读(393) 评论(0) 推荐(0)
摘要: Node Package Manager npm -v : show the version , or npm --version In the nodejs or javaScript world , package.json is the most important file, it mani 阅读全文
posted @ 2022-11-22 16:26 Roy2048 阅读(28) 评论(0) 推荐(0)
摘要: Mybatis-plus 1. dependency dependency: mybatis-plus-boot-start, mysql-java-connector mysql8的配置: useSSL, useUnicode, charactorEncoding utf-8, serverTim 阅读全文
posted @ 2022-09-27 17:40 Roy2048 阅读(63) 评论(0) 推荐(0)
摘要: 1. CLI创建一个gradle项目 mkdir project git init git status echo '#description' > README.md写描述文件 git add . git diff --cached 查看stating和history的区别 git commit 阅读全文
posted @ 2022-08-26 10:31 Roy2048 阅读(226) 评论(0) 推荐(0)
摘要: SpringBoot Security 1. Software Security access control/ defence attacks SQL injection 2. Authentication & Authorization Authentication(who you are): 阅读全文
posted @ 2022-08-12 15:28 Roy2048 阅读(99) 评论(1) 推荐(0)
摘要: Swagger document API 1.1 Basic dependencies: (From maven repository) springbox-swagger2, springbox-UI, enable: add a new configaration file under conf 阅读全文
posted @ 2022-07-29 16:14 Roy2048 阅读(50) 评论(0) 推荐(0)
摘要: Database Migration Tools 数据库修改/历史数据迁移到新表/数据库实例的切换 手动执行的问题: security/conflict/数据库环境隔离/环境问题 1.1 Flyway Version control for your database 1.1.1 脚本类型 按照文件 阅读全文
posted @ 2022-07-19 11:50 Roy2048 阅读(80) 评论(0) 推荐(0)
摘要: Docker 轻量级 虚拟机 软件 核心概念: 容器(Container)-虚拟的计算机;镜像(Image) - 安装操作系统的光盘 可以基于镜像创造多个容器, 通过镜像创建带有操作系统的虚拟计算机 1.1 Start 1.1.1 run image/manage image/manage cont 阅读全文
posted @ 2022-07-18 12:52 Roy2048 阅读(59) 评论(0) 推荐(0)