2021年8月21日

Mybatis-Plus通用枚举 -基于jackson(Springboot-web内置)

摘要: 枚举类 使用 @EnumValue注解标识数据库字段 package com.example.enumpackage; import com.baomidou.mybatisplus.annotation.EnumValue; import com.fasterxml.jackson.annotat 阅读全文

posted @ 2021-08-21 23:16 白嫖老郭 阅读(362) 评论(0) 推荐(0) 编辑

Mybatis-plus多数据源 + 数据库连接明文加密

摘要: 核心依赖 <!--mybatis-plus 核心组件--> <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>3.4.3</version> 阅读全文

posted @ 2021-08-21 23:10 白嫖老郭 阅读(1678) 评论(0) 推荐(0) 编辑

Mybatis-plus - ActiveRecord 模式CRUD

摘要: 什么是ActiveRecord模式 ActiveRecord 也属于 ORM 层,由 Rails 最早提出,遵循标准的 ORM 模型:表映射到记录,记录映射到对象,字段映射到对象属性。配合遵循的命名和配置惯例,能够很大程度的快速实现模型的操作,而且简洁易懂。 ActiveRecord 的主要思想是: 阅读全文

posted @ 2021-08-21 19:38 白嫖老郭 阅读(671) 评论(0) 推荐(0) 编辑

Axios 类似于for循环发送批量请求{:axios.all axios.spread}。

摘要: Axios的请求都是异步的!不能用for循环遍历去批量发送请求 那如果我们需要类似与这样的请求怎么办呢 for(let i =0;i<array.length;i++){ axios.post(contentPath + 'invoice/new/updatetitle', JSON.stringi 阅读全文

posted @ 2021-08-21 17:34 白嫖老郭 阅读(1083) 评论(0) 推荐(0) 编辑

导航