FanKingWang

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2022年8月29日

摘要: public class AppJwtUtil { // TOKEN的有效期一天(S) private static final int TOKEN_TIME_OUT = 3_600; // 加密KEY private static final String TOKEN_ENCRY_KEY = "M 阅读全文
posted @ 2022-08-29 17:47 FanKingWang 阅读(92) 评论(0) 推荐(0)

摘要: public interface FileStorageService { /** * 上传图片文件 * @param prefix 文件前缀 * @param filename 文件名 * @param inputStream 文件流 * @return 文件全路径 */ public Strin 阅读全文
posted @ 2022-08-29 17:46 FanKingWang 阅读(43) 评论(0) 推荐(0)

2022年8月11日

摘要: package com.itheima.reggie.utils;import java.util.Random;/** * 随机生成验证码工具类 */public class ValidateCodeUtils { /** * 随机生成验证码 * @param length 长度为4位或者6位 * 阅读全文
posted @ 2022-08-11 23:51 FanKingWang 阅读(148) 评论(0) 推荐(0)

2022年8月10日

摘要: @Configurationpublic class RestHighLevelClientConfig { @Bean public RestHighLevelClient client(){ return new RestHighLevelClient(RestClient.builder(ne 阅读全文
posted @ 2022-08-10 11:42 FanKingWang 阅读(389) 评论(0) 推荐(0)

2022年8月9日

摘要: package com.hmall.item;import lombok.Data;import java.io.Serializable;@Datapublic class Result<T> implements Serializable { private static final long 阅读全文
posted @ 2022-08-09 20:24 FanKingWang 阅读(24) 评论(0) 推荐(0)

摘要: @Configurationpublic class MybatisPlusConfig { @Bean public MybatisPlusInterceptor mybatisPlusInterceptor(){ //1 创建MybatisPlusInterceptor拦截器对象 Mybatis 阅读全文
posted @ 2022-08-09 19:25 FanKingWang 阅读(124) 评论(0) 推荐(0)

摘要: 导入依赖 <!--网关--> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-gateway</artifactId> </dependency> <!--nacos 阅读全文
posted @ 2022-08-09 18:29 FanKingWang 阅读(197) 评论(0) 推荐(0)

摘要: server { listen 9001; server_name localhost; location / { root hm-mall-admin; index index.html index.htm; } error_page 500 502 503 504 /50x.html; loca 阅读全文
posted @ 2022-08-09 17:09 FanKingWang 阅读(21) 评论(0) 推荐(0)

2022年8月8日

摘要: server: port: 8084 #网址端口spring: application: name: searchservice datasource: url: jdbc:mysql://localhost:3306/springcloud?useSSL=false&serverTimezone= 阅读全文
posted @ 2022-08-08 23:06 FanKingWang 阅读(142) 评论(0) 推荐(0)

2022年8月6日

摘要: // 自动补全查询GET /test3/_search{ "suggest": { "title_suggest": { "text": "s", "completion": { "field": "title", "skip_duplicates": true, "size": 10 } } }} 阅读全文
posted @ 2022-08-06 15:31 FanKingWang 阅读(21) 评论(0) 推荐(0)