Easter79 Easter79
3年前
springboot项目mybatisplus的快速使用
一、MyBatisPlus介绍 转自mybatisplus官网下方附有mybatisplus官方网站!(https://oscimg.oschina.net/oscnet/da1f3c9b055919a762fbaa48628c9274833.jpg)MyBatisPlus(简称MP)是一个 MyBatis 的增强工具,在MyBat
红橙Darren 红橙Darren
4年前
自己动手打造一套IOC注解框架
1.概述这是我们的内涵段子系统架构的第一期分享,。在介绍内涵段子整个项目的时候我们也说好了会分析系统源码设计模式,第三方框架源码解析,然后自己动手一点一点打造一套内涵段子框架。这一期的内容对于部分哥们可能有点麻烦,如果觉得抽象请看视频讲解。  那么什么是IOC,控制反转(InversionofControl,英文缩写为IOC),其实就是反射加注解
Stella981 Stella981
3年前
Spring Boot的@Service和@Autowired和@ComponentScan注解
SpringBoot的@Service和@Autowired和@ComponentScan注解SpringBoot项目的Bean装配默认规则是根据Application类(SpringBoot项目入口类)所在的包位置从上往下扫描,即只扫描该类所在的包及其子包。1.如果需要扫描其上层包中的类,则将其移动到其上层包中2.使用@ComponentSc
Stella981 Stella981
3年前
Redkale 入门教程 01
 Redkale(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fredkale.org%2Findex.html) 可以说是Java界最精简的框架,不到1M的jar包可以替代Tomcat、Spring/SpringBoot、Hibernate/MyBatis、JackJson/fast
Stella981 Stella981
3年前
Spring 使用注解方式进行事务管理
使用步骤:步骤一、在spring配置文件中引入<tx:命名空间<beansxmlns"http://www.springframework.org/schema/beans" xmlns:xsi"http://www.w3.org/2001/XMLSchemainstance" xmlns:tx"http
Stella981 Stella981
3年前
Spring boot中的异常处理之注解响应
Controller层returnpatientRepository.findById(id).orElseThrow(()newNotFoundException(String.format("Patient%dnotfound",id)));E
Stella981 Stella981
3年前
Spring Boot 最核心的 3 个注解详解
最近面试一些Java开发者,他们其中有些在公司实际用过SpringBoot,有些是自己兴趣爱好在业余自己学习过。然而,当我问他们SpringBoot最核心的3个注解是什么,令我失望的是鲜有人能答上来,这样你能说你对SpringBoot很了解吗?这可能还会给你减分!你所需具备的基础什么是Sprin
Stella981 Stella981
3年前
MyBaitis 源码浅读
Mybatis架构!(https://oscimg.oschina.net/oscnet/8a1557a89e7661d34b40e72708d98274455.jpg)!(https://oscimg.oschina.net/oscnet/3892d1dbc40146b9261a738dee49082b67d.jpg)怎么看源码下
Stella981 Stella981
3年前
MyBatis解析XML标签及占位符相关源码剖析
开端今天小朋友X在开发过程中遇到了一个bug,并给mybatis提了一个ISSUE:throwReflectionExceptionwhenusing{array.length}(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fgithub.com%2Fmybati
Stella981 Stella981
3年前
Mybatis之BatchExecutor.doUpdate返回Integer.MIN_VALUE + 1002
  Mybatis版本是3.4.4  之前没注意,但是一个偶然机会发现BatchExecutor.doUpdate方法返回一个固定值Integer.MIN\_VALUE1002,即源码中的org.apache.ibatis.executor.BatchExecutorBATCH\_UPDATE\_RETURN\_VALUE,为什么返回这个