摘要: 为啥pattern 在验证null时 不进行验证,因为直接返回true了 阅读全文
posted @ 2023-01-28 04:03 咖喱给给啊 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 在basemapper中是直接使用接口的方式继承basemapper的接口的, 然后直接使用UserMapper调用方法,实现由mybatis-plus提供,但是只是提供的单表查询的方法,多表查询需要自定义方法 自定义方法直接在UserMapper接口中定义 mapper接口, 然后中resourc 阅读全文
posted @ 2022-11-14 04:42 咖喱给给啊 阅读(1073) 评论(0) 推荐(0) 编辑
摘要: <div v-for="(item,index) in list :key="index">{{item.name}}</div> 用index作为key 渲染的时候 会将index当做key值,这样就会出现 当插入一个数据的时候, 比如插入到了索引为1处, 那么插入的这个数据的索引就是1,key值 阅读全文
posted @ 2022-11-13 05:09 咖喱给给啊 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 1.导入依赖 <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis-spring</artifactId> <version>2.0.2</version> </dependency> 2.编写spring配置文件 <?xml 阅读全文
posted @ 2022-11-08 07:24 咖喱给给啊 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 1.导入依赖 <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>5.3.8</version> </dependency> <dependency> <g 阅读全文
posted @ 2022-11-08 06:12 咖喱给给啊 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 1.打包方式 jar包 1.导入依赖 <dependencies> <!-- Mybatis核心 --> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId> <version>3.5.7</vers 阅读全文
posted @ 2022-11-07 23:38 咖喱给给啊 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 1.目标接口 package org.example.proxy; public interface Calculator { int add(int i, int j); int sub(int i, int j); int mul(int i, int j); int div(int i, in 阅读全文
posted @ 2022-10-29 23:17 咖喱给给啊 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 1.新建项目atguigu-hello-spring-boot-starter,在pox.xml中导入自动配置atguigu-hello-spring-boot-starter-autoconfigure项目 <dependencies> <dependency> <groupId>com.atgu 阅读全文
posted @ 2022-10-02 06:00 咖喱给给啊 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 1 阅读全文
posted @ 2022-09-27 05:27 咖喱给给啊 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 1、分页插件使用步骤 a>添加依赖 <!-- https://mvnrepository.com/artifact/com.github.pagehelper/pagehelper --> <dependency> <groupId>com.github.pagehelper</groupId> < 阅读全文
posted @ 2022-09-27 03:08 咖喱给给啊 阅读(134) 评论(0) 推荐(0) 编辑