![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
文章平均质量分 61
svygh123
问题还没解决的,可以私信,解决了请采纳一下,谢谢
展开
-
springboot防止重复提交的方案有哪些
每种方案都有其适用场景,实际应用中可以根据业务需求和系统架构选择合适的策略,甚至组合使用多种方式来增强防护效果。例如,在高并发场景下,结合Redis分布式锁和自定义注解+AOP的方式会更为高效和安全。原创 2024-07-17 21:09:42 · 482 阅读 · 0 评论 -
Spring Batch批量处理数据
Spring Batch 是一个由 Pivotal Software(原 SpringSource,现属于 VMware)开发的批处理框架,它是 Spring 框架的一部分,主要用于创建高效、健壮的批量数据处理应用。Spring Batch 设计用于处理大量的记录,例如在夜间处理或定期运行的数据加载、转换和整合操作。原创 2024-06-28 23:12:34 · 1244 阅读 · 0 评论 -
SpringBoot不用写Controller、不用写Service、不用建表,直接起飞是什么感觉
Spring Data REST 提供了一种简单的方式来暴露 JPA 实体为 RESTful 服务,这使得构建基于 REST 的数据服务变得非常快速和高效。下面使用 Spring Data REST 构建一个通用架构示例。原创 2024-06-13 12:07:01 · 435 阅读 · 0 评论 -
简单的springboot代码
创建一个基本的Spring Boot应用涉及到几个关键的部分:主配置类、控制器、服务层、数据访问层(DAO)和实体类。下面我将为你提供一个简单的示例,展示如何构建这样一个结构原创 2024-06-12 23:36:52 · 470 阅读 · 0 评论 -
springboot防止表单重复提交
在Spring Boot应用中使用Redis来防止表单的重复提交原创 2024-06-04 17:37:48 · 1054 阅读 · 0 评论 -
为什么我用save保存更新,数据库不更新,反而新增一条
为什么我用save保存更新的数据后,数据库不更新,但是增加了一条空数据,我的前台也把数据用json传上去了,也成功了,但是数据库没有更新相应行的数据,而是新增了一条数据,我的后端用的接口PagingAndSortingRepository,数据库hibernate+sqlserver。原创 2024-05-16 16:52:07 · 792 阅读 · 0 评论 -
解决axios发送post请求,springMVC接收不到数据问题
SpringMVC 中 @PathVariable、@RequestBody、@RequestParam的使用场景以及对应的前端axios写法是什么呢?原创 2024-05-12 11:30:00 · 1083 阅读 · 1 评论 -
又被SpringBoot默认配置坑到了(真实案例)
Spring Boot很方便,做了很多自动配置。问题也就随之而来,简化配置、自动配置,到底自动配置了什么,如果不知道的话,就容易掉进坑里。这里建一个项目,说一下今天的坑。原创 2024-05-04 17:52:52 · 1176 阅读 · 0 评论 -
python+Pyppeteer+SpringBoot验证码自动识别登录(文末附源码)
python+Pyppeteer+SpringBoot验证码自动识别登录(文末附源码)原创 2024-05-02 21:08:56 · 815 阅读 · 0 评论 -
seata使用报错no available service found in cluster ‘default‘
14:46:29.361 [restartedMain] ERROR i.s.c.r.n.NettyClientChannelManager - [reconnect,183] - no available service found in cluster 'default', please make sure registry config correct and keep your seata server running分别设置file.conf de mode为db,registry.conf.原创 2021-05-26 16:22:05 · 9607 阅读 · 0 评论 -
logback配置错误
09:18:09,724 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]09:18:09,724 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]09:18:09,725 |-INFO in ch.qos.原创 2021-03-02 09:08:05 · 1474 阅读 · 0 评论 -
jquery form提交的2种方式
1.序列化参数提交$.ajax({ type: 'POST', url: url, data: $('#' + formId).serialize(), async: true, // true(异步), false(同步) cache: false, contentType: false, processData: false, success: function(result) { console.log("ajax请原创 2021-02-12 11:45:30 · 4664 阅读 · 1 评论 -
Non-resolvable parent POM for com.supermarket:supermarket:0.0.1-SNAPSHOT: Could not transfer artifac
导入一个maven项目,编译报错F:\code\supermarket\supermarket>mvn compile[INFO] Scanning for projects...Downloading from alimaven: https://maven.aliyun.com/repository/central/org/springframework/boot/spring...原创 2020-04-16 00:39:49 · 1310 阅读 · 0 评论 -
解决maven项目没有Maven Dependencies
一.本文使用开发环境版本eclipse(Help->About Eclipse IDE):Eclipse IDE for Enterprise Java Developers.Version: 2019-12 (4.14.0)Build id: 20191212-1212maven(Window->Preferences->Maven->Installat...原创 2020-04-12 13:56:28 · 1088 阅读 · 0 评论 -
SpringBoot和JPA使用SQLServer2008数据库搭建后台的时候排序报错
一般的排序代码是这样的Sort sort = new Sort(Direction.ASC, "seq");PageRequest pageRequest = PageRequest.of(Integer.valueOf(pageNumber) - 1, Integer.valueOf(pageSize), sort);page = questionTypeService.findA...原创 2020-03-10 16:31:34 · 877 阅读 · 0 评论 -
使用SpringBoot+JPA报错Incorrect syntax near 'hibernate_sequence'
1.环境SpringBoot2.1.8.RELEASE +JPA数据库SQL Server 2008 R22.功能实现就是一个简单的save操作3.报错信息Hibernate: select sysuser0_.userId as userId1_4_0_, sysuser0_.age as age2_4_0_, sysuser0_.cardNum as cardN...原创 2020-03-02 18:39:22 · 887 阅读 · 0 评论 -
cvc-elt.1: Cannot find the declaration of element 'beans'.
context.xml文件报错Multiple annotations found at this line: - cvc-elt.1: Cannot find the declaration of element 'beans'. - schema_reference.4: Failed to read schema document 'http://www.springframewo...原创 2020-01-06 11:27:25 · 1084 阅读 · 0 评论 -
springboot连接数据库异常(Could not obtain connection metadata)
. ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, ...原创 2019-01-03 02:14:55 · 9689 阅读 · 3 评论