springboot3 springboot mybatis mapper

spring boot配置mybatis出现Invalid bound statement (not found)报错的解决办法

背景: spring-boot-starter-parent 2.5.6 mybatis-spring-boot-starter 2.2.0我遇到这个报错,是因为使用idea创建xml文件是没有后缀,举个例子,比如你创建的是AccountMapper.xml,结果使用idea创建的是AccountM ......
statement Invalid mybatis 办法 spring

SpringBoot 配置CORS处理前后端分离跨域配置无效问题解析

本文通过实战配置 CORS 解决 SpringBoot 和 Vue 前后端跨域请求限制,再从原理上分析 CORS 配置为什么会在 Spring Security 场景下会失效以及如何解决。 ......
SpringBoot 问题 CORS

Mybatis-plus批量操作

前言 使用Mybatis-plus可以很方便的实现批量新增和批量修改,不仅比自己写foreach遍历方便很多,而且性能也更加优秀。但是Mybatis-plus官方提供的批量修改和批量新增都是根据id来修改的,有时候我们需求其他字段,所以就需要我们自己修改一下。 一、批量修改 在Mybatis-plu ......
Mybatis-plus Mybatis plus

Mysql Mybatis 批量修改数据

Mysql Mybatis 批量修改数据 Mapper Integer updateListPO(List<ProjectQuotationItemPO> upateList); 方法一: <update id="updateListPO"> <foreach collection="list" s ......
Mybatis 数据 Mysql

mybatis总结

mybatis总结 https://blog.csdn.net/qq_47540091/article/details/123446973 Mybatis in 逗号分隔字符串 <update id="softDel" parameterType="String">SELECT * FROM stu ......
mybatis

mybatis-plus使用聚合函数报错---------net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "**" "**"

错误日志: Caused by: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "with" "WITH" at line 62, column 20. Was expecting one of: "&" ......

mybatisplus中update用法 update多个字段 mybatis-plus指定实体类字段不查询 mybatis-plus中selectList用法

@Override public boolean updateRiskverificationFlag(String acptracctName) { BmsBillRiskverification bbr = new BmsBillRiskverification(); bbr.setWarnfl ......
字段 mybatis-plus mybatis update plus

使用Maven-shade-plugin打包SpringBoot项目

使用Maven-shade-plugin打包SpringBoot项目 另附参考文章:https://blog.csdn.net/u011441473/article/details/127844885 好奇葩的打包之旅,最后在stack overflow上找到了解决办法,遇到问题,还是多去googl ......

Springboot 多实例负载均衡部署

Springboot 多实例负载均衡部署 一、测试代码: 控制层测试代码: import java.net.Inet4Address; import java.net.InetAddress; import java.net.UnknownHostException; @Controller @Re ......
Springboot 实例

SpringBoot文件上传

application.yml配置 spring: # 文件上传配置 servlet: multipart: max-file-size: 10MB max-request-size: 10MB web: resources: static-locations: /upload/ 代码 packag ......
SpringBoot 文件

SpringBoot+Mybatis-Plus+EasyExcel

首先建立一个springboot项目,导入依赖 <!-- MyBatisPlus依赖 --> <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <versio ......

MyBatis删除

删除单个 Integer deleteOne(@Param("id") String id); <delete id="deleteOne"> delete from tb_user where id=#{id}; </delete> @Test public void deleteOne(){ D ......
MyBatis

如果你项目使用了MyBatis-Plus你一定要用它

还是先举个例子,魂斗罗小游戏应该很多90后都玩过,那个时代没有Iphone,没有各种电子产品(小学初中时代),这种小游戏应该就是很多90后的青春,反正那个时候只要放假就白天黑夜得玩。它就是那种2个好基友边玩边捡各种装备的游戏,越玩的远捡的装备越好,玩得越高兴。而MyBatis-Plus就类似Myba ......
MyBatis-Plus MyBatis 项目 Plus

java Mybatis-Plus之实现批量插入

使用batchSave Mybatis-Plus提供了IService接口,里面提供了batchSave方法,即批量保存方法 创建Service接口 创建一个基继承了Mybatis-Plus提供的IService接口的接口 public interface TestService extends I ......
Mybatis-Plus Mybatis java Plus

springboot+bootstraptable

springboot+bootstraptable 项目采用的是springboot+bootstraptable搭建的demo https://blog.csdn.net/weixin_43373818/article/details/114714016 基础的增删改查已经实现 html页面 <! ......
bootstraptable springboot

Springboot 使用nacos鉴权的简单步骤

Springboot 使用nacos鉴权的简单步骤 背景 前端时间nacos爆出了漏洞. 因为他的默认token固定,容易被利用. 具体的问题为: QVD-2023-6271 漏洞描述:开源服务管理平台 Nacos 中存在身份认证绕过漏洞, 在默认配 置下未token.secret.key 进行修改 ......
Springboot 步骤 nacos

redis springboot

【springboot进阶】SpringBoot整合RedisTemplate配置多个redis库 RedisTemplate及4种序列化方式 springboot笔记 ......
springboot redis

Mybatis Plus 框架项目落地实践总结

https://www.cnblogs.com/valarchie/p/17139145.html 在使用了Mybatis Plus框架进行项目重构之后,关于如何更好的利用Mybatis plus。在此做一些总结供大家参考。 主要总结了以下这几个方面的实践。 基础设计 BaseEntity 逻辑删除 ......
框架 Mybatis 项目 Plus

Mybatis PageHelper 使用的注意事项

什么时候会导致不安全的分页? PageHelper 方法使用了静态的 ThreadLocal 参数,分页参数和线程是绑定的。 只要你可以保证在 PageHelper 方法调用后紧跟 MyBatis 查询方法,这就是安全的。因为 PageHelper 在 finally 代码段中自动清除了 Threa ......
PageHelper 注意事项 事项 Mybatis

springboot定时同步数据,从sqlserver到mysql

https://www.cnblogs.com/SjhCode/p/sqlserverToMysql.html 定时同步数据,从sqlserver到mysql 注意事项: 一.primary: master #设置默认的数据源或者数据源组,默认值即为master 二.@Scheduled() 和 @ ......
springboot sqlserver 数据 mysql

mybatis查询返回map键值对的问题

业务场景:部门表数据批量导入,每条数据需要查表获取parentId,ancestors并赋值 目标:一次查出,键(部门名称)值(部门信息)已确认:部门名称不存在重复得情况 1、sql <resultMap id="result" type="com.zhhs.project.system.vo.Be ......
mybatis 问题 map

SpringBoot邮箱注册

首先在pom.xml导入依赖 <!-- springboot 邮件mail --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifactId> < ......
SpringBoot 邮箱

SpringBoot自定义cron表达式注册定时任务

springBoot自定义cron表达式注册定时任务 一、原理 1、使用Spring自带的TaskScheduler注册任务 2、注册后返回:ScheduledFuture,用于取消定时任务 3、注册任务后不会马上取消任务,所以将任务缓存。在需要取消任务的时候调用取消接口取消 4、cron表达式可以 ......
表达式 SpringBoot 任务 cron

SpringBoot使用RestTemplate

转自:https://blog.csdn.net/Mr_YanMingXin/article/details/122523124 1 RestTemplate简介在java代码里想要进行restful web client服务,一般使用Apache的HttpClient。不过此种方法使用起来太过繁琐 ......
RestTemplate SpringBoot

springboot框架快速整合websocket

1、【pom.xml】 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-websocket</artifactId> </dependency> 2、【MsgType.j ......
springboot websocket 框架

SpringBoot配置简单拦截器 已解决静态资源访问问题

public class LoginInterceptor implements HandlerInterceptor { @Override public boolean preHandle(HttpServletRequest request, HttpServletResponse respo ......
静态 SpringBoot 问题 资源

使用Oracle的springBoot

application.yml spring: application: name: zplatform datasource: driver-class-name: oracle.jdbc.driver.OracleDriver url: jdbc:oracle:thin:@主机号:端口号/数据库 ......
springBoot Oracle

启动springboot项目指定jdk版本以及设置控制台中文

代码: @echo off title= javaServer chcp 936 set JAVA_HOME=D:\Tools\JDK8 set PATH=%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin set CLASSPATH=.;%JAVA_HOME%\lib\dt.j ......
控制台 springboot 版本 项目 jdk

Springboot集成dubbo完整过程(三)

准备工作 1,准备mysql服务环境 2,准备redis服务环境 3,准备zookeeper服务环境 4,准备逆向生成bean的xml配置文件 5,准备slf4j日志xml配置文件 6,准备一个sql脚本 1,搭建创建服务工程 1,创建一个空的父工程,用来统一管理依赖 2,创建一个interface ......
Springboot 过程 dubbo

mybatis 调用 oracle 带包存储过程(有out参数)

https://blog.csdn.net/u010925982/article/details/102958001 1.先写xml映射文件 <select id="call" parameterType="java.util.HashMap" statementType="CALLABLE" re ......
参数 过程 mybatis oracle out