看了我的mybatis-plus用法,同事也開(kāi)始悄悄模仿了

作者:沉默王二
Java 程序員進(jìn)階之路:https://tobebetterjavaer.com
本文主要介紹 mybatis-plus 這款插件,針對(duì) springboot 用戶。包括引入,配置,使用,以及擴(kuò)展等常用的方面做一個(gè)匯總整理,盡量包含大家常用的場(chǎng)景內(nèi)容。

原文鏈接:https://juejin.cn/post/7054726274362638350 作者:我犟不過(guò)你,整理:沉默王二
關(guān)于 mybatis-plus 是什么,不多做介紹了,看官方文檔:https://baomidou.com/,咱們直接代碼擼起來(lái)。
一、快速開(kāi)始
本文基于 springboot、maven、jdk1.8、mysql 開(kāi)發(fā),所以開(kāi)始前我們需要準(zhǔn)備好這套環(huán)境。我的環(huán)境使用了 nacos 作為注冊(cè)中心,不了解或需要搭建的參考:
https://juejin.cn/post/7053977860612030477)
新建如下數(shù)據(jù)庫(kù):

建議大家選擇 utf8mb4 這種字符集,做過(guò)微信的同學(xué)應(yīng)該會(huì)知道,微信用戶名稱的表情,是需要這種字符集才能存儲(chǔ)的。
我就默認(rèn)其他環(huán)境已經(jīng)準(zhǔn)備好了,咱們直接從 mybatis-plus 開(kāi)始。
1.1 依賴準(zhǔn)備
想要什么依賴版本的去 maven 倉(cāng)庫(kù)查看:
https://mvnrepository.com/
引入 mybatis-plus 依賴:
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.5.0</version>
</dependency>
引入 mysql 依賴:
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.27</version>
</dependency>
目前,多數(shù)項(xiàng)目會(huì)有多數(shù)據(jù)源的要求,或者是主從部署的要求,所以我們還需要引入 mybatis-plus 關(guān)于多數(shù)據(jù)源的依賴:
<!-- mybatis-plus 多數(shù)據(jù)源 -->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>dynamic-datasource-spring-boot-starter</artifactId>
<version>3.5.0</version>
</dependency>
1.2 配置準(zhǔn)備
springboot 啟動(dòng)類。配置@MapperScan 注解,用于掃描 Mapper 文件位置:
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
@EnableDiscoveryClient
@MapperScan(\"com.wjbgn.user.mapper\")
@SpringBootApplication
public class RobNecessitiesUserApplication {
public static void main(String[] args) {
SpringApplication.run(RobNecessitiesUserApplication.class, args);
}
}
數(shù)據(jù)源配置,此處配置一主一從的環(huán)境,當(dāng)前我只有一臺(tái),所以此處配置一樣的:
spring:
datasource:
dynamic:
primary: master #設(shè)置默認(rèn)的數(shù)據(jù)源或者數(shù)據(jù)源組,默認(rèn)值即為master
strict: false #嚴(yán)格匹配數(shù)據(jù)源,默認(rèn)false. true未匹配到指定數(shù)據(jù)源時(shí)拋異常,false使用默認(rèn)數(shù)據(jù)源
datasource:
master:
url: jdbc:mysql://127.0.0.1:3306/rob_necessities?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone =Asia/Shanghai
username: root
password: 123456
slave_1:
url: jdbc:mysql://127.0.0.1:3306/rob_necessities?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone =Asia/Shanghai
username: root
password: 123456
補(bǔ)充:這里面因?yàn)槟J(rèn)使用的是HikariCP數(shù)據(jù)源,目前也推薦使用這個(gè),相比于druid有更高的性能,但是不能忽略下面的配置,否則服務(wù)會(huì)不斷拋出異常,原因是數(shù)據(jù)庫(kù)的連接時(shí)常和連接池的配置沒(méi)有做好。
spring:
datasource:
dynamic:
hikari:
max-lifetime: 1800000
connection-timeout: 5000
idle-timeout: 3600000
max-pool-size: 12
min-idle: 4
connection-test-query: /**ping*/
1.3 啟動(dòng)服務(wù)
下面直接啟動(dòng)服務(wù):

得到如上結(jié)果表示啟動(dòng)成功了。
二、使用
前面我們成功的集成進(jìn)來(lái)了 mybatis-plus,配合 springboot 使用不要太方便。下面我們看看如何使用它來(lái)操作我們的數(shù)據(jù)庫(kù)。介紹一下常規(guī)的用法。
2.1 實(shí)體類注解
mybatis-plus 為使用者封裝了很多的注解,方便我們使用,我們首先看下實(shí)體類中有哪些注解。有如下的實(shí)體類:
@TableName(value = \"user\")
public class UserDO {
/**
* 主鍵
*/
@TableId(value = \"id\", type = IdType.AUTO)
private Long id;
/**
* 昵稱
*/
@TableField(\"nickname\")
private String nickname;
/**
* 真實(shí)姓名
*/
private String realName;
}
@TableName 表名注解,用于標(biāo)識(shí)實(shí)體類對(duì)應(yīng)的表。
其說(shuō)明如下,關(guān)于這些書(shū)寫(xiě),常規(guī)情況基本很少用到,不做多余解釋了:
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.ANNOTATION_TYPE})
public @interface TableName {
/**
* 實(shí)體對(duì)應(yīng)的表名
*/
String value() default \"\";
/**
* schema
*
* @since 3.1.1
*/
String schema() default \"\";
/**
* 是否保持使用全局的 tablePrefix 的值
* <p> 只生效于 既設(shè)置了全局的 tablePrefix 也設(shè)置了上面 {@link #value()} 的值 </p>
* <li> 如果是 false , 全局的 tablePrefix 不生效 </li>
*
* @since 3.1.1
*/
boolean keepGlobalPrefix() default false;
/**
* 實(shí)體映射結(jié)果集,
* 只生效與 mp 自動(dòng)注入的 method
*/
String resultMap() default \"\";
/**
* 是否自動(dòng)構(gòu)建 resultMap 并使用,
* 只生效與 mp 自動(dòng)注入的 method,
* 如果設(shè)置 resultMap 則不會(huì)進(jìn)行 resultMap 的自動(dòng)構(gòu)建并注入,
* 只適合個(gè)別字段 設(shè)置了 typeHandler 或 jdbcType 的情況
*
* @since 3.1.2
*/
boolean autoResultMap() default false;
/**
* 需要排除的屬性名
*
* @since 3.3.1
*/
String[] excludeProperty() default {};
}
@TableId 主鍵注解
看看其源碼:
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.ANNOTATION_TYPE})
public @interface TableId {
/**
* 字段值(駝峰命名方式,該值可無(wú))
*/
String value() default \"\";
/**
* 主鍵ID
* {@link IdType}
*/
IdType type() default IdType.NONE;
}
其中 IdType 很重要:
| 名稱 | 描述 |
|---|---|
| AUTO | 數(shù)據(jù)庫(kù)自增 ID |
| NONE | 該類型為未設(shè)置主鍵類型(注解里等于跟隨全局,全局里約等于 INPUT) |
| INPUT | 用戶自己設(shè)置的 ID |
| ASSIGN_ID | 當(dāng)用戶傳入為空時(shí),自動(dòng)分配類型為 Number 或 String 的主鍵(雪花算法) |
| ASSIGN_UUID | 當(dāng)用戶傳入為空時(shí),自動(dòng)分配類型為 String 的主鍵 |
@TableFiled 表字段標(biāo)識(shí)
下面看看其主要常用屬性:
名稱 描述 value 數(shù)據(jù)庫(kù)字段名 condition 字段 where實(shí)體查詢比較條件,通過(guò)SqlCondition設(shè)置
如果未設(shè)置條件,則按照正常相等來(lái)查詢
若設(shè)置則按照以下規(guī)則:
等于:EQUAL = "%s=#{%s}";
不等于:NOT_EQUAL = "%s<>#{%s}";
左右模糊:LIKE = "%s LIKE CONCAT('%%',#{%s},'%%')";
oracle 左右模糊ORACLE_LIKE = "%s LIKE CONCAT(CONCAT('%%',#{%s}),'%%')";
左模糊:LIKE_LEFT = "%s LIKE CONCAT('%%',#{%s})";
右模糊:LIKE_RIGHT = "%s LIKE CONCAT(#{%s},'%%')";fill 自動(dòng)填充策略,通過(guò) FieldFill設(shè)置
不處理:FieldFill.DEFAULT
插入時(shí)填充字段:FieldFill.INSERT
更新時(shí)填充字段:FieldFill.UPDATE
插入或新增時(shí)填充字段:FieldFill.INSERT_UPDATE關(guān)于其他的屬性,我不太推薦使用,用得越多,越容易蒙圈??梢酝ㄟ^(guò) wapper 查詢?nèi)ピO(shè)置。
2.2 CRUD
mybatis-plus 封裝好了一條接口供我們直接調(diào)用。關(guān)于內(nèi)部的具體方法,在使用時(shí)候自己體會(huì)吧,此處不列舉了。
2.2.1 Service 層 CRUD
我們使用的時(shí)候,需要在自己定義的 service 接口當(dāng)中繼承IService接口:
import com.baomidou.mybatisplus.extension.service.IService;
import com.wjbgn.user.entity.UserDO;
/**
* @description: 用戶服務(wù)接口
* @author:weirx
* @date:2022/1/17 15:02
* @version:3.0
*/
public interface IUserService extends IService<UserDO> {
}
同時(shí)要在我們的接口實(shí)現(xiàn) impl 當(dāng)中繼承ServiceImpl,實(shí)現(xiàn)自己的接口:
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wjbgn.user.entity.UserDO;
import com.wjbgn.user.mapper.UserMapper;
import com.wjbgn.user.service.IUserService;
/**
* @description: 用戶接口實(shí)現(xiàn)
* @author:weirx
* @date:2022/1/17 15:03
* @version:3.0
*/
public class UserServiceImpl extends ServiceImpl<UserMapper, UserDO> implements IUserService {
}
所以我們的
2.2.2 Mapper 層 CRUD
mybatis-plus 將常用的 CRUD 接口封裝成了BaseMapper接口,我們只需要在自己的 Mapper 中繼承它就可以了:
/**
* @description: 用戶mapper
* @author:weirx
* @date:2022/1/17 14:55
* @version:3.0
*/
@Mapper
public interface UserMapper extends BaseMapper<UserDO> {
}
2.3 分頁(yè)
使用分頁(yè)話需要增加分頁(yè)插件的配置:
import com.baomidou.mybatisplus.annotation.DbType;
import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
@MapperScan(\"com.wjbgn.*.mapper*\")
public class MybatisPlusConfig {
@Bean
public MybatisPlusInterceptor mybatisPlusInterceptor() {
MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.MYSQL));
return interceptor;
}
}
如上配置后,我們直接使用分頁(yè)方法就行。
2.4 邏輯刪除配置
很多情況下我們的系統(tǒng)都需要邏輯刪除,方便恢復(fù)查找誤刪除的數(shù)據(jù)。
通過(guò) mybatis-plus 可以通過(guò)全局配置的方式,而不需要再去手動(dòng)處理。針對(duì)更新和查詢操作有效,新增不做限制。
通常以我的習(xí)慣邏輯刪除字段通常定義為is_delete,在實(shí)體類當(dāng)中就是isDelete。那么在配置文件中就可以有如下的配置:
mybatis-plus:
global-config:
db-config:
logic-delete-field: isDelete # 全局邏輯刪除的實(shí)體字段名(since 3.3.0,配置后可以忽略不配置步驟2)
logic-delete-value: 1 # 邏輯已刪除值(默認(rèn)為 1)
logic-not-delete-value: 0 # 邏輯未刪除值(默認(rèn)為 0)
或者通過(guò)注解@TableLogic
@TableLogic
private Integer isDelete;
2.5 通用枚舉配置
相信后端的同學(xué)都經(jīng)歷過(guò)一個(gè)情況,比如性別這個(gè)字段,分別值和名稱對(duì)應(yīng)1男、2女,這個(gè)字段在數(shù)據(jù)庫(kù)時(shí)是數(shù)值類型,而前端展示則是展示字符串的名稱。有幾種常見(jiàn)實(shí)現(xiàn)方案呢?
數(shù)據(jù)庫(kù)查詢 sql 通過(guò) case 判斷,返回名稱,以前 oracle 經(jīng)常這么做 數(shù)據(jù)庫(kù)返回的值,重新遍歷賦值進(jìn)去,這時(shí)候還需要判斷這個(gè)值到底是男是女。 前端寫(xiě)死,返回 1 就是男,返回 2 就是女。
相信無(wú)論哪種方法都有其缺點(diǎn),所以我們可以使用 mybatis-plus 提供的方式。我們?cè)诜祷亟o前端時(shí):
只需要在遍歷時(shí) get 這個(gè)枚舉,直接賦值其名稱,不需要再次判斷。 直接返回給前端,讓前端去去枚舉的 name
這樣大家都不需要寫(xiě)死這個(gè)值。
下面看看如何實(shí)現(xiàn)這個(gè)功能:
興義枚舉,實(shí)現(xiàn) IEnum 接口:
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
/**
* @description: 性別枚舉
* @author:weirx
* @date:2022/1/17 16:26
* @version:3.0
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum SexEnum implements IEnum<Integer> {
MAN(1, \"男\(zhòng)"),
WOMAN(2, \"女\");
private Integer code;
private String name;
SexEnum(Integer code, String name) {
this.code = code;
this.name = name;
}
@Override
public Integer getValue() {
return code;
}
public String getName() {
return name;
}
}
@JsonFormat 注解為了解決枚舉類返回前端只展示構(gòu)造器名稱的問(wèn)題。
實(shí)體類性別字段
@TableName(value = \"user\")
public class UserDO {
/**
* 主鍵
*/
@TableId(value = \"id\", type = IdType.AUTO)
private Long id;
/**
* 昵稱
*/
@TableField(value = \"nickname\",condition = SqlCondition.EQUAL)
private String nickname;
/**
* 性別
*/
@TableField(value = \"sex\")
private SexEnum sex;
/**
* 版本
*/
@TableField(value = \"version\",update = \"%s+1\")
private Integer version;
/**
* 時(shí)間字段,自動(dòng)添加
*/
@TableField(value = \"create_time\",fill = FieldFill.INSERT)
private LocalDateTime createTime;
}
配置文件掃描枚舉
mybatis-plus:
# 支持統(tǒng)配符 * 或者 ; 分割
typeEnumsPackage: com.wjbgn.*.enums
定義配置文件
@Bean
public MybatisPlusPropertiesCustomizer mybatisPlusPropertiesCustomizer() {
return properties -> {
GlobalConfig globalConfig = properties.getGlobalConfig();
globalConfig.setBanner(false);
MybatisConfiguration configuration = new MybatisConfiguration();
configuration.setDefaultEnumTypeHandler(MybatisEnumTypeHandler.class);
properties.setConfiguration(configuration);
};
}
序列化枚舉值為數(shù)據(jù)庫(kù)值
以下我是使用的 fastjson:
全局(添加在前面的配置文件中):
@Bean
public MybatisPlusPropertiesCustomizer mybatisPlusPropertiesCustomizer() {
// 序列化枚舉值為數(shù)據(jù)庫(kù)存儲(chǔ)值
FastJsonConfig config = new FastJsonConfig();
config.setSerializerFeatures(SerializerFeature.WriteEnumUsingToString);
return properties -> {
GlobalConfig globalConfig = properties.getGlobalConfig();
globalConfig.setBanner(false);
MybatisConfiguration configuration = new MybatisConfiguration();
configuration.setDefaultEnumTypeHandler(MybatisEnumTypeHandler.class);
properties.setConfiguration(configuration);
};
}
局部
@JSONField(serialzeFeatures= SerializerFeature.WriteEnumUsingToString)
private SexEnum sex;
2.6 自動(dòng)填充
還記得前面提到的實(shí)體類當(dāng)中的注解@TableFeild嗎?當(dāng)中有個(gè)屬性叫做 fill,通過(guò)FieldFill設(shè)置屬性,這個(gè)就是做自動(dòng)填充用的。
public enum FieldFill {
/**
* 默認(rèn)不處理
*/
DEFAULT,
/**
* 插入填充字段
*/
INSERT,
/**
* 更新填充字段
*/
UPDATE,
/**
* 插入和更新填充字段
*/
INSERT_UPDATE
}
但是這個(gè)直接是不能使用的,需要通過(guò)實(shí)現(xiàn) mybatis-plus 提供的接口,增加如下配置:
import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
import org.apache.ibatis.reflection.MetaObject;
import org.springframework.stereotype.Component;
import java.time.LocalDateTime;
/**
* description: 啟動(dòng)自動(dòng)填充功能
* @return:
* @author: weirx
* @time: 2022/1/17 17:00
*/
@Component
public class MyMetaObjectHandler implements MetaObjectHandler {
@Override
public void insertFill(MetaObject metaObject) {
// 起始版本 3.3.0(推薦使用)
this.strictInsertFill(metaObject, \"createTime\", LocalDateTime.class, LocalDateTime.now());
}
@Override
public void updateFill(MetaObject metaObject) {
// 起始版本 3.3.0(推薦)
this.strictUpdateFill(metaObject, \"updateTime\", LocalDateTime.class, LocalDateTime.now());
}
}
字段如下:
/**
* 時(shí)間字段,自動(dòng)添加
*/
@TableField(value = \"create_time\",fill = FieldFill.INSERT)
private LocalDateTime createTime;
2.7 多數(shù)據(jù)源
前面提到過(guò),配置文件當(dāng)中配置了主從的方式,其實(shí) mybatis-plus 還支持更多的方式:
多主多從
spring:
datasource:
dynamic:
primary: master #設(shè)置默認(rèn)的數(shù)據(jù)源或者數(shù)據(jù)源組,默認(rèn)值即為master
strict: false #嚴(yán)格匹配數(shù)據(jù)源,默認(rèn)false. true未匹配到指定數(shù)據(jù)源時(shí)拋異常,false使用默認(rèn)數(shù)據(jù)源
datasource:
master_1:
master_2:
slave_1:
slave_2:
slave_3:
多種數(shù)據(jù)庫(kù)
spring:
datasource:
dynamic:
primary: mysql #設(shè)置默認(rèn)的數(shù)據(jù)源或者數(shù)據(jù)源組,默認(rèn)值即為master
strict: false #嚴(yán)格匹配數(shù)據(jù)源,默認(rèn)false. true未匹配到指定數(shù)據(jù)源時(shí)拋異常,false使用默認(rèn)數(shù)據(jù)源
datasource:
mysql:
oracle:
postgresql:
h2:
sqlserver:
混合配置
spring:
datasource:
dynamic:
primary: master #設(shè)置默認(rèn)的數(shù)據(jù)源或者數(shù)據(jù)源組,默認(rèn)值即為master
strict: false #嚴(yán)格匹配數(shù)據(jù)源,默認(rèn)false. true未匹配到指定數(shù)據(jù)源時(shí)拋異常,false使用默認(rèn)數(shù)據(jù)源
datasource:
master_1:
slave_1:
slave_2:
oracle_1:
oracle_2:
上面的三種方式,除了混合配置,我覺(jué)得都有肯能出現(xiàn)的吧。
@DS 注解
可以注解在方法上或類上,同時(shí)存在就近原則 【方法上注解】 優(yōu)先于 【類上注解】:
@DS(\"slave_1\")
public class UserServiceImpl extends ServiceImpl<UserMapper, UserDO> implements IUserService {
@DS(\"salve_1\")
@Override
public List<UserDO> getList() {
return this.getList();
}
@DS(\"master\")
@Override
public int saveUser(UserDO userDO) {
boolean save = this.save(userDO);
if (save){
return 1;
}else{
return 0;
}
}
}
三、測(cè)試
經(jīng)過(guò)上面的配置,下面開(kāi)始進(jìn)入測(cè)試驗(yàn)證階段。
建立一張表:
CREATE TABLE `user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`nickname` varchar(255) NOT NULL COMMENT '昵稱',
`sex` tinyint(1) NOT NULL COMMENT '性別,1男2女',
`create_time` datetime NOT NULL COMMENT '創(chuàng)建時(shí)間',
`is_delete` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否刪除 1是,0否',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=50 DEFAULT CHARSET=utf8mb4;
controller:
/**
* @description: 用戶controller
* @author:weirx
* @date:2022/1/17 17:39
* @version:3.0
*/
@RestController
@RequestMapping(\"/user\")
public class UserController {
@Autowired
private IUserService userService;
/**
* description: 新增
* @return: boolean
* @author: weirx
* @time: 2022/1/17 19:11
*/
@RequestMapping(\"/save\")
public boolean save() {
UserDO userDO = new UserDO();
userDO.setNickname(\"大漂亮\");
userDO.setSex(SexEnum.MAN);
return userService.save(userDO);
}
/**
* description: 修改
* @param nickname
* @param id
* @return: boolean
* @author: weirx
* @time: 2022/1/17 19:11
*/
@RequestMapping(\"/update\")
public boolean update(@RequestParam String nickname,@RequestParam Long id) {
UserDO userDO = new UserDO();
userDO.setNickname(nickname);
userDO.setId(id);
return userService.updateById(userDO);
}
/**
* description: 刪除
* @param id
* @return: boolean
* @author: weirx
* @time: 2022/1/17 19:11
*/
@RequestMapping(\"/delete\")
public boolean delete(@RequestParam Long id) {
UserDO userDO = new UserDO();
userDO.setId(id);
return userService.removeById(userDO);
}
/**
* description: 列表
* @return: java.util.List<com.wjbgn.user.entity.UserDO>
* @author: weirx
* @time: 2022/1/17 19:11
*/
@RequestMapping(\"/list\")
public List<UserDO> list() {
return userService.list();
}
/**
* description: 分頁(yè)列表
* @param current
* @param size
* @return: com.baomidou.mybatisplus.extension.plugins.pagination.Page
* @author: weirx
* @time: 2022/1/17 19:11
*/
@RequestMapping(\"/page\")
public Page page(@RequestParam int current,@RequestParam int size) {
return userService.page(new Page<>(current,size), new QueryWrapper(new UserDO()));
}
}
記過(guò)上面的接口驗(yàn)證,功能沒(méi)有問(wèn)題,集成成功。上文基本覆蓋了 mybatis-plus 常用的特性,有同學(xué)說(shuō)自動(dòng)代碼生成沒(méi)說(shuō)?二哥的編程星球里《編程喵??實(shí)戰(zhàn)項(xiàng)目筆記》里有專門(mén)的文章說(shuō)明mybatis-plus-generator + velocity整合的文章,從后臺(tái)代碼,到前端代碼全部一鍵生成。

本文項(xiàng)目代碼 gitee 地址: https://gitee.com/wei_rong_xin/rob-necessities.git
ending
一個(gè)人可以走得很快,但一群人才能走得更遠(yuǎn)。歡迎加入二哥的編程星球,里面的每個(gè)球友都非常的友善,除了鼓勵(lì)你,還會(huì)給你提出合理的建議。

星球提供的三份專屬專欄《Java 面試指南》、《編程喵 ??(Spring Boot+Vue 前后端分離)實(shí)戰(zhàn)項(xiàng)目筆記》、《Java 版 LeetCode 刷題筆記》,干貨滿滿,價(jià)值連城。
已經(jīng)有 480 多名 小伙伴加入二哥的編程星球了,如果你也需要一個(gè)良好的學(xué)習(xí)氛圍,戳鏈接加入我們的大家庭吧!這是一個(gè) Java 學(xué)習(xí)指南 + 編程實(shí)戰(zhàn) + LeetCode 刷題的私密圈子,你可以向二哥提問(wèn)、幫你制定學(xué)習(xí)計(jì)劃、跟著二哥一起做實(shí)戰(zhàn)項(xiàng)目,沖沖沖。

沒(méi)有什么使我停留——除了目的,縱然岸旁有玫瑰、有綠蔭、有寧?kù)o的港灣,我是不系之舟。
推薦閱讀:

