上一页 1 2 3 4 5 6 ··· 20 下一页
摘要: 今天有项目开发用到多个微信商户进行支付的场景,使用微信的SDK不太方便,以下大概使用了微信支付的示例仅供参考: 微信支付在请求接口时都要生成请求头,直接上代码: /** * 构造请求签名串 * @param method * @param url * @param timestamp * @para 阅读全文
posted @ 2023-03-08 17:30 智昕 阅读(103) 评论(0) 推荐(3) 编辑
摘要: 首先引入依赖 <dependency> <groupId>com.google.zxing</groupId> <artifactId>core</artifactId> <version>3.3.0</version> </dependency> <dependency> <groupId>com 阅读全文
posted @ 2023-03-05 00:44 智昕 阅读(116) 评论(0) 推荐(3) 编辑
摘要: 方式一 利用 com.fasterxml.jackson.databind.ObjectMapper 包下的 convertValue方法将Object对象转为对应实体对象。 User user = new ObjectMapper().convertValue(object, User.class 阅读全文
posted @ 2023-03-04 10:47 智昕 阅读(2385) 评论(0) 推荐(41) 编辑
摘要: mybatis-plus条件构造器QueryWrapper常用方法 /** *附加条件构造器QueryWrapper常用方法 */ wrapper.eq("数据库字段名", "条件值"); //相当于where条件 等于 wrapper.ne("数据库字段名", "条件值"); //相当于where 阅读全文
posted @ 2023-02-17 17:00 智昕 阅读(3132) 评论(0) 推荐(57) 编辑
摘要: 一:自定义注解 @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) @Documented public @interface ChackToken { boolean validate() default true; } 阅读全文
posted @ 2023-02-09 15:56 智昕 阅读(245) 评论(0) 推荐(5) 编辑
摘要: 今天在JEECG开发过程中,需要进行二开,对JAVA项目进行开发,现在用到要获取用户登录信息,可以使用以下方法进行获取 后端获取方法: LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); Strin 阅读全文
posted @ 2023-02-03 16:07 智昕 阅读(365) 评论(0) 推荐(5) 编辑
摘要: 场景:ES线上的数据和服务迁移到另外的机器上去 老ES机器ip:172.16.0.1新ES机器ip:172.16.0.2 一. 首先, 在备份之前要在es/config/elasticsearch.yml添加仓库配置: path.repo: ["/mnt/backup/es_backup"] 2.重 阅读全文
posted @ 2022-09-16 16:38 智昕 阅读(517) 评论(0) 推荐(6) 编辑
摘要: 首先先安装flask模块 pip install Flask 接下来编写py文件 ''' Author : 智昕 Date : 2022-06-10 10:25:12 ''' from flask import Flask, request, jsonify app = Flask(__name__ 阅读全文
posted @ 2022-06-20 11:26 智昕 阅读(2587) 评论(0) 推荐(29) 编辑
摘要: 上篇参考:Spring Cloud快速使用教程(一) 在快速搭建Spring Cloud我们如果要简单快速的使用负载均衡可以如下实现 以下是实现示例: 使用Spring Cloud快速使用教程(一)创建seaver-a模块的方法创建server-a01 在创建好的模块创建控制器: IndexA: p 阅读全文
posted @ 2022-03-12 10:55 智昕 阅读(389) 评论(0) 推荐(10) 编辑
摘要: 在研究spring cloud,下面是快速搭建方法 我使用的是IDEA 中文汉化版,大家可自行汉化1、先创建一个工程 2、拉下来创建注册组件 同样的选择springboot工程 为eureka注册中心添加注解开启服务 配置eureka注册中心配置文件 application.yml (注意缩进) s 阅读全文
posted @ 2022-03-11 18:05 智昕 阅读(1399) 评论(0) 推荐(29) 编辑
上一页 1 2 3 4 5 6 ··· 20 下一页