MyBatis动态sql语句

前言<if test="name!=null ">里面是无法使用<>的,转译也无法使用int和Integer类型如果传入值是0,也是空和null的意思sql语句里面可以使用,如果要用<>=等符号需要转译参照表地址:https://www.jb5
mybatis sql 2023年05月02日 384次浏览

Mybatis几种字段映射方式

前言待写…上面表,下面实体类idname_aname_bcididname1name2cidAS映射AS可:小写&大写sql标签sql标签起个名字叫:test1通过 <include refid="test1"></include> 引入 <
mybatis 字段映射 映射 sql 2023年05月02日 309次浏览

Boot/Cloud使用系统自带的Scheduled定时任务

前言:它的作用就是,你设置一个时间段或者设置每隔多久执行一次东西Scheduled是系统自带的所以只要有web依赖就可以了web依赖全名:spring-boot-starter-web开始依赖 <dependency> <groupId>org
定时 Scheduled 定时任务 2023年03月25日 392次浏览

Spring文件上传

包 <dependency> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> <ve
SpringMvc springboot 上传 2022年08月16日 394次浏览

Spring在实体类里面约束及控制器使用

需要的包 <dependency> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> <
SpringMvc springboot 2022年08月16日 343次浏览

Springboot实现一次执行两条SQL

MySql默认是不支持这种操作,但只需要在配置文件加点东西,即可使用打开application.yml找到jdbc的配置找到 url 后面加上&allowMultiQueries=true有&就不用加&了
springboot mysql 数据库 2022年08月06日 397次浏览

SpringMvc多对一&一对多

多对一在XML里面写的/*多的 实体类*/<resultMap id="duoMap" type="com.no.entity.Goods_detail"> /*一的 实体类*/ <association property=&q
SpringMvc 一对多 多对一 2022年07月22日 516次浏览