推荐学java 推荐学java
3年前
推荐学java——MyBatis高级
补两张知识导图最近的两篇文章和文中缺少了知识结构图,这里补充一下。本节内容是关于MyBatis的高级部分,上节的内容重点是带大家从零开始搭建一个使用MyBatis框架的java项目,并且能使用MyBatis框架完成对数据库中表的增删改查操作;这听起来不难理解,但对于新手要实战一遍,还是需要多加练习,推荐大家通过新建Module的方式来操作。
Wesley13 Wesley13
3年前
java数据库连接工具类
 package com.cnse.utils.dbutils;import java.lang.reflect.Field;import java.sql.Connection;import java.sql.DriverManager;import java.sql.PreparedStatement;
Wesley13 Wesley13
3年前
mysql 导入SQL文件报错, Specified key was too long; max key length is 767 bytes
\MySQL导入数据的时候,总是报错,本地测试都没办法测试导出SQL文件正常,在导入SQL文件的时候,报错大部分数据表导入成功,个别的失败     在网上看到很多建议: 1.建议别直接运行sql文件,你可以尝试打开sql文件自己选取sql执行2.Navicat运行SQL文件时,去掉第二个√(每个运
Easter79 Easter79
3年前
SpringBoot权限管理开发实战2
1.添加依赖<dependency<groupIdorg.mybatis.spring.boot</groupId<artifactIdmybatisspringbootstarter</artifactId<version2.1.1</version</dependency<dependency<groupI
Stella981 Stella981
3年前
SpringBoot权限管理开发实战2
1.添加依赖<dependency<groupIdorg.mybatis.spring.boot</groupId<artifactIdmybatisspringbootstarter</artifactId<version2.1.1</version</dependency<dependency<groupI
Wesley13 Wesley13
3年前
spring+mybatis 根据业务场景访问不同数据库,读写分离
//配置文件<beanid"sqlSessionFactory1"class"org.mybatis.spring.SqlSessionFactoryBean"   <propertyname"dataSource"ref"DataSource1"/   <propertyname"configLocat
Stella981 Stella981
3年前
Spring+Mybatis+Velocity整合(3):整合Mybatis
正式开始配置关键内容,这是硬货 1、新建spring配置文件,起名为applicationContext.xml,放在src/main/resources/spring目录下。 内容如下:<?xmlversion"1.0"encoding"UTF8"?<beansxmlns"http://www.sprin
Wesley13 Wesley13
3年前
MyBatis学习总结(八)——Mybatis3.x与Spring4.x整合
一、搭建开发环境1.1、使用Maven创建Web项目  执行如下命令:mvnarchetype:createDgroupIdme.gaclDartifactIdspring4mybatis3DarchetypeArtifactIdmavenarchetypewebappDintera
Wesley13 Wesley13
3年前
Mysql批量插入更新
批量插入,使用MyBatis批量语法:<insertid"insertBatch"parameterType"list"insertintotbl1(a,b,c)values<foreachcollection"list"item"obj"separator",
燕青 燕青
1年前
Macos超好用的动态桌面壁纸:iWall
是一款非常有趣的动态桌面壁纸软件,可以使用任何格式的漂亮视频,音频,图片,动画,Flash,gif,swf,程序,网页,网站做为您的动态壁纸,动态桌面,并且可以进行交互。iwall动态壁纸软件功能多,使用简单,体积小巧,不占用资源,运行流畅稳定安全。