摘要: Eurake服务: 启动类: @SpringBootApplication @EnableEurekaClient @EnableEurekaServer @EnableHystrixDashboard public class EurekaServer_7997 { public static v 阅读全文
posted @ 2023-06-19 23:55 此时不卷何时卷 阅读(18) 评论(0) 推荐(0)
摘要: db数据: book: book_msg: user: 部分有记录的数据代码: db.book.insertMany([{ id: 1, name: "西游记", tag: ["四大名著", "神魔类"] }, { id: 2, name: "红楼梦", tag: ["四大名著", "家族类"] } 阅读全文
posted @ 2023-03-15 19:53 此时不卷何时卷 阅读(34) 评论(0) 推荐(0)
摘要: 插入: PUT test1/_doc/1 { "name": "张三", "age": 18 } 更新: POST test1/_doc/1/_update { "doc": { "name": "张三1" } } 删除: DELETE test1/_doc/1 匹配查询: GET test1/_d 阅读全文
posted @ 2023-03-11 18:54 此时不卷何时卷 阅读(25) 评论(0) 推荐(0)
摘要: 配置starter,当前boot版本2.5.3 1、引入依赖pom.xml: <!-- redis --><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-red 阅读全文
posted @ 2023-02-27 19:47 此时不卷何时卷 阅读(30) 评论(0) 推荐(0)
摘要: 创建SecurityConfig类,加上@Configuration注解 添加授权方法: /** * 访问路径授权 * * @param http * @return * @throws Exception */@Beanpublic SecurityFilterChain filterChain( 阅读全文
posted @ 2023-02-26 16:33 此时不卷何时卷 阅读(27) 评论(0) 推荐(0)
摘要: 1、windows版redis下载:https://github.com/ServiceStack/redis-windows/tree/master/downloads 2、安装服务 dos窗口切换到解压目录 解压目录执行:redis-server --service-install redis. 阅读全文
posted @ 2023-02-10 22:00 此时不卷何时卷 阅读(40) 评论(0) 推荐(0)
摘要: 1、nginx-service.exe 文件 https://repo.jenkins-ci.org/releases/com/sun/winsw/winsw 下载服务封装软件 nginx-service.exe由winsw重命名而来 2、nginx-service.exe.config文件 需要有 阅读全文
posted @ 2023-02-10 17:48 此时不卷何时卷 阅读(511) 评论(0) 推荐(0)
摘要: 动态代理方法: import org.springframework.util.CollectionUtils;import org.springframework.util.StringUtils;import java.lang.reflect.InvocationHandler;import 阅读全文
posted @ 2023-02-08 23:19 此时不卷何时卷 阅读(42) 评论(0) 推荐(0)
摘要: import java.util.HashMap;import java.util.Map;import java.util.Properties;/** * @author Administrator */public class PropertiesUtils { public static M 阅读全文
posted @ 2023-02-08 22:32 此时不卷何时卷 阅读(43) 评论(0) 推荐(0)