推荐学java 推荐学java
3年前
推荐学java——MyBatis高级
补两张知识导图最近的两篇文章和文中缺少了知识结构图,这里补充一下。本节内容是关于MyBatis的高级部分,上节的内容重点是带大家从零开始搭建一个使用MyBatis框架的java项目,并且能使用MyBatis框架完成对数据库中表的增删改查操作;这听起来不难理解,但对于新手要实战一遍,还是需要多加练习,推荐大家通过新建Module的方式来操作。
Wesley13 Wesley13
3年前
java面试中被问到的问题
 技术面1) Spring 的注解有哪些?2) 你如何理解 spring IOC 技术,如果不使用spring,你有哪些方式来加载 bean?3) spring aop 的原理是什么?它是怎样一个写法?关键配置项是什么?4) springmvc 的注解有哪些?@ModelAttribute 重点提及
Easter79 Easter79
3年前
SpringBoot权限管理开发实战2
1.添加依赖<dependency<groupIdorg.mybatis.spring.boot</groupId<artifactIdmybatisspringbootstarter</artifactId<version2.1.1</version</dependency<dependency<groupI
Easter79 Easter79
3年前
SpringMVC【开发Controller】详解
前言本文主要是讲解在Controller中的开发,主要的知识点有如下:编码过滤器使用注解开发注解@RequestMapping详解业务方法接收参数字符串转日期重定向和转发返回JSONSpringMVC过滤编码器在SpringMVC的控制
Stella981 Stella981
3年前
IntelliJ IDEA 自定义类注解模板和方法注解模板
1、类注解模板FilesettingsEditorFileandCodeTemplatesIncludes FileHeaderIDEA中在创建类时会自动给添加注释/@date${DATE}${T
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",