上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: 1、将数据库中某个数据库备份 $ mysqldump -uroot -pPassword [db_name] > [file_name] 例: mysqldump -uroot -p123456 test > test.sql 生成的test.sql包含数据结构和数据. 2.远程备份 $ mysql 阅读全文
posted @ 2024-02-23 15:54 大司徒 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 1、引入spingsecurity依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency> 启动项目访 阅读全文
posted @ 2024-02-05 15:24 大司徒 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 1 base64编码 1.1 什么是Base64 所谓Base64,就是说选出64个字符:小写字母a-z、大写字母A-Z、数字0-9、符号"+"、"/"(再加上作为垫字的"=",实际上是使用65个字符),作为一个基本字符集。然后,其他所有符号都转换成这个字符集中的字符。 1.2 linux base 阅读全文
posted @ 2024-01-30 11:41 大司徒 阅读(26) 评论(0) 推荐(0) 编辑
摘要: swagger的使用 1、导入依赖 <!-- swagger依赖--> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.9.2</version> 阅读全文
posted @ 2024-01-29 17:23 大司徒 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 一、网关 常用网关gateway,zuul 等。 gateway和spring-cloud兼容的更好,约占70%的市场。 二、基本使用 1、导入gateway网关依赖 <properties> <java.version>1.8</java.version> <project.build.sourc 阅读全文
posted @ 2024-01-29 14:23 大司徒 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 一、新建eureka项目 选择spring-web、eureka-server两个服务 二、检查maven依赖 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmln 阅读全文
posted @ 2024-01-28 19:34 大司徒 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 导入依赖包 编写接口和xml 修改配置文件application.properties 编写 controller 测试使用 一、导入依赖包 <!--mybatis--> <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifac 阅读全文
posted @ 2024-01-17 18:20 大司徒 阅读(9) 评论(0) 推荐(0) 编辑
摘要: #显示所有端口转发 netsh interface portproxy show all #显示已有端口转发语句 netsh interface portproxy dump #新增远程使用端口转发 netsh interface portproxy add v4tov4 listenaddress 阅读全文
posted @ 2023-12-18 14:22 大司徒 阅读(34) 评论(0) 推荐(0) 编辑
摘要: SSH暴力破解排查与防御 1.统计日志中失败的登录次数 grep -o "Failed password" /var/log/secure|uniq -c [root@VM-4-15-centos etc]# grep -o "Failed password" /var/log/secure|uni 阅读全文
posted @ 2023-12-08 17:36 大司徒 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 一、maven官网下载地址 https://maven.apache.org/download.cgi 二、安装maven 将下载的压缩包解压到非中文、没有空格的目录 , 在解压目录中,我们需要着重关注Maven的核心配置文件:conf/settings.xml 三、创建本地仓库 本地仓库这个目录, 阅读全文
posted @ 2023-11-28 18:34 大司徒 阅读(125) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页