mybatis框架1、早期叫做ibatis, 代码在github。 mybatis是 MyBatis SQL Mapper Framework for Java (sql映射框架) 1)sql mapper :sql映射 可以把数据库表中的一行数据 映射为 一个java对象。 一行数据可以看做是一个 ...
分类:
其他好文 时间:
2021-01-25 10:54:22
阅读次数:
0
mybatis.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl yml里面配置了mybatis.xml文件 <configuration> <settings> <setting name="mapUndersco ...
分类:
数据库 时间:
2021-01-22 12:18:26
阅读次数:
0
最近在处理excel的时候,想到利用python可以批量操作,常用的包有xlrd,xlwt和openpyxl,三者区别如下: xlrd只能读取数据,可以处理xls和xlsx; xlwt只能写数据,只能处理xls openpyxl可以读数据和写数据,但只能处理xlsx 当收到的文件既有xls,又有xl ...
分类:
编程语言 时间:
2021-01-06 12:47:29
阅读次数:
0
MyBatis 本是apache的一个开源项目iBatis, 2010年这个项目由apache software foundation 迁移到了google code,并且改名为MyBatis 。2013年11月迁移到Github。MyBatis是一个优秀的持久层框架,它对jdbc的操作数据库的过程 ...
分类:
其他好文 时间:
2021-01-01 12:32:26
阅读次数:
0
Mybatis内置的三种执行器 public enum ExecutorType { SIMPLE, REUSE, BATCH } 默认是SIMPLE。依次是:单次提交、复用、批量(JDBC本身就支持批量) SIMPLE [main] DEBUG [org.apache.ibatis.demo.Bl ...
分类:
其他好文 时间:
2020-12-23 12:46:19
阅读次数:
0
Spring简单了解 简介: Spring 框架是 Java 应用最广的框架,它的成功来源于理念,而不是技术本身。 它的理念包括 IoC (Inversion of Control,控制反转) 和 AOP(Aspect Oriented Programming,面向切面编程)。 Spring框架的常 ...
分类:
编程语言 时间:
2020-12-19 12:01:28
阅读次数:
2
1.开启日志功能,在yml配置文件添加配置 mybatis-plus: configuration: log-impl: org.apache.ibatis.logging.stdout.StdOutImpl 2.主键生成策略, 在主键ID上添加注解即可,关于id生成的一些策略:https://ww ...
分类:
其他好文 时间:
2020-12-18 13:03:20
阅读次数:
3
【问题】mysql从5.6升级到5.7后出现:插入数据和修改数据时出错Caused by: com.ibatis.common.jdbc.exception.NestedSQLException: The error occurred while applying a parameter map. ...
分类:
数据库 时间:
2020-12-18 12:26:29
阅读次数:
2
java.io.IOException: Could not find resource com/xxx/xxxMapper.xml 报错内容: org.apache.ibatis.exceptions.PersistenceException: ### Error building SqlSess ...
分类:
移动开发 时间:
2020-12-10 11:20:18
阅读次数:
9
#1.创建数据表 #2.创建模型 创建角色模型 f:\xampp\php\php.exe artisan make:model Model\Role 创建权限模型 f:\xampp\php\php.exe artisan make:model Model\Permission #3.编写模型属性 编 ...
分类:
其他好文 时间:
2020-12-09 12:08:09
阅读次数:
4