springboot
文章平均质量分 66
Fq琦琦
这个作者很懒,什么都没留下…
展开
-
SpringBoot统一标准响应格式及异常处理
在开发SpringBoot后端服务时,一般需要给前端统一的响应格式及异常处理,方便前端调试及配置错误提示等。原创 2023-07-25 19:53:37 · 309 阅读 · 0 评论 -
SpringBoot 后端接口规范
Springboot项目参数校验(Validator)原创 2023-07-25 13:59:21 · 158 阅读 · 0 评论 -
SpringBoot 整合 Redis 时间日期类转换出错
SpringBoot 整合 Redis 时间日期类转换出错原创 2022-12-22 01:28:48 · 1063 阅读 · 2 评论 -
Spring Boot + Spring Security JWT权限鉴权系统
spring security的简单原理: 1.登录验证 2.授权管理配置文件 动态权限控制spring security的简单原理访问资源(即授权管理):数据库表设计权限过滤器 权限控制:判断用户角色 然后需要在 配置文件中,配置动态权限控制开发核心类jwt-token 工具类...原创 2022-06-19 17:24:07 · 779 阅读 · 0 评论 -
Mybatis-Plus 代码生成工具
适用版本:mybatis-plus-generator 3.5.1 及其以上版本原创 2022-06-17 05:42:21 · 94 阅读 · 0 评论 -
RuoYi-Vue】RuoYi-Vue新增子模块
RuoYi-Vue新增子模块Step_01: 创建数据表. 新建1个业务表sys_orderCREATE TABLE `orders` ( `id` int(11) NOT NULL AUTO_INCREMENT, `order_no` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '订单编号', `name` varchar(255) CHARACTER SET utf8mb原创 2022-05-28 17:28:18 · 3355 阅读 · 0 评论 -
SpringBoot学习汇总
Springboot 注解SpringBoot中,@Autowired和@Resource注解区别:@Autowired 是 Spring 提供的注解,@Resource 是 JDK 提供的注解。@Autowired 默认的注入方式为byType(根据类型进行匹配),@Resource默认注入方式为 byName(根据名称进行匹配)。当一个接口存在多个实现类的话,byType这种方式就无法正确注入对象。当一个接口存在多个实现类的情况下,@Autowired 和@Resource都需要通过名称原创 2022-05-18 05:15:08 · 123 阅读 · 0 评论 -
SpringBoot + vue 实现文件上传
概述文件上传使用场景文件上传,是程序开发中必会用到的一个功能,比如添加商品、用户头像、文章封面等富文本编辑(插件文件上传)文件上传原理把本地文件上传到服务器,实现资源共享SpringBoot实现本地文件上传搭建后台接口相关依赖<!--SpringMVC的启动器--><dependency> <groupId>org.springframework.boot</groupId> <artifactId原创 2022-05-15 03:06:54 · 2230 阅读 · 0 评论 -
Springboot集成支付宝沙箱支付(补充版本)退款功能
基础搭建Springboot集成支付宝沙箱支付Easy版Easy版SDK文档示例DEMO正式版本的SDK通用版SDK文档通用版SDK文档maven依赖<!-- https://mvnrepository.com/artifact/com.alipay.sdk/alipay-sdk-java --><dependency> <groupId>com.alipay.sdk</groupId> <artifactI原创 2022-05-13 00:43:52 · 706 阅读 · 0 评论 -
内网穿透工具 Natapp
内网穿透在支付宝付款成功后,支付宝异步回调notify_url。支付宝是基于公网的,不能直接访问本地应用,可以借助内网穿透工具。Natapp官网首页:https://natapp.cn/natapp的使用:进入natapp官网,注册账号,并登录账号实名认证后可以获得一条免费通道通道配置下载natapp客户端,并启动natapp客户端下载地址:https://natapp.cn/#downloadMac OS系统启动:解压安装包,命令行工具中切换到n原创 2022-05-12 00:04:24 · 1004 阅读 · 1 评论 -
SpringBoot集成支付宝沙箱支付
支付宝沙箱支付开发前准备Easy支付官方文档:https://opendocs.alipay.com/open/009ys9api文档:https://opendocs.alipay.com/apis支付宝开发网址支付宝开放平台: https://open.alipay.com/platform/home.htm支付宝沙箱环境: https://openhome.alipay.com/platform/appDaily.htm?tab=info支付宝开发者文档:https://openh原创 2022-05-11 23:59:14 · 722 阅读 · 0 评论 -
SpringBoot项目报错汇总
Springboot整合Spring security关于Security错误关键词: Illegal overloaded getter method with ambiguous type for property enabled错误信息描述:Illegal overloaded getter method with ambiguous type for property enabled in class class com.fqcode.server.pojo.Admin通过仔细查找发现原创 2021-11-28 07:19:01 · 642 阅读 · 0 评论 -
Spring Validation优雅地校验参数
使用Spring Validation优雅地校验参数引言一般在业务开发过程中 controller 层的参数校验都是怎么写的?是否也存在下面这样的直接判断?public String add(UserVO userVO) { if(userVO.getAge() == null){ return "年龄不能为空"; } if(userVO.getAge() > 120){ return "年龄不能超过120"; } if(原创 2021-10-30 00:55:41 · 244 阅读 · 1 评论 -
SpringBoot项目解决跨域问题
1. 什么是跨域同源策略要了解跨域,先要知道同源策略。同源策略是由 Netscape 公司提出的一个著名的安全策略,所有支持 JavaScript的浏览器都会使用这个策略。所谓同源是指:协议,域名,端口 全部相同。浏览器从一个域名的网页去请求另一个域名的资源时,协议,域名,端口任意不同,都会出现跨域问题。现实工作开发中经常会有跨域的情况。因为公司会有很多项目,也会有很多子域名,各个项目或者网站之间需要相互调用对方的资源,所以跨域请求是避免不了的2. 解决跨域的三种方案方法一:注解@C原创 2021-10-28 20:39:15 · 79 阅读 · 0 评论 -
springboot 集成markdown 编辑器
MarkDown编辑器1)资源下载到官网下载MarkDown的资源包:Editor.md 下载:https://pandao.github.io/editor.md2)使用:把相关资源文件copy到项目static目录下页面引入editor.md 的核心css , js , 注意 还需要先引入jquery ,editor.md依赖jquery<link rel="stylesheet" href="/mylib/editormd/css/editormd.min.css">原创 2021-07-28 19:46:21 · 700 阅读 · 0 评论 -
springboot 启动器starter
自动配置pom.xmlspring-boot-dependencies:核心依赖在父工程中我们在写或者在引入一些springboot依赖的时候不需要指定版本,就因为有这些版本仓库。spring-boot-starter-parent => spring-boot-dependencies <parent> <groupId>org.springframework.boot</groupId>原创 2021-04-11 10:09:59 · 124 阅读 · 0 评论 -
springboot 解读01->运行原理初探
源码解读springboot 项目启动类:Springboot01Application@SpringBootApplication public class Springboot01Application { public static void main(String[] args) { //将springboot应用启动 SpringApplication.run(Springboot01Application.class原创 2021-03-18 04:50:05 · 107 阅读 · 1 评论