1 修改配置文件
1.1 application.yml
增加test: true开发取消验证
# 项目相关配置 ruoyi: # 名称 name: RuoYi # 版本 version: 3.8.7 # 版权年份 copyrightYear: 2024 # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath) profile: D:/ruoyi/uploadPath # 获取ip地址开关 addressEnabled: false # 验证码类型 math 数字计算 char 字符验证 captchaType: math #开发取消验证 test: true
1.2 绕过验证
SecurityConfig.java
PermissionService.java
1.3 测试
使用postman测试接口
http://localhost:8080/asserts/application/testOK
返回OK
2 若依接口
2.1 若依默认接口测试
或者用postman进行测试,添加字段
Authorization:eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjEwNzliZGRhLTJkZjUtNGE4YS04ZTk1LTM5YTA1OGY0Y2U4YSJ9.RtT_G3Z9KvAY-Qxw_3PNVsX77Gl3BlGqf0TovG-BsQpXdAB9pANcxKtjhMBZTifRUQg9MlKi2nwq_KM700XU0Q
测试接口:http://localhost/dev-api/test/user/list
标签:免验证,uploadPath,管理系统,ruoyi,接口,若依,测试,test From: https://www.cnblogs.com/snow2021/p/18281570