上一页 1 ··· 101 102 103 104 105 106 107 108 109 ··· 113 下一页
摘要: ERROR: [1] bootstrap checks failed [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144] 解决: 在宿主机执行: sysctl 阅读全文
posted @ 2019-11-02 16:47 天宇轩-王 阅读(4739) 评论(1) 推荐(2) 编辑
摘要: 包含 分页、逻辑删除、自定义全局操作 等绝大部分常用功能的使用示例,相当于大整合的完整示例 pom.xml <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot- 阅读全文
posted @ 2019-11-02 16:37 天宇轩-王 阅读(1889) 评论(0) 推荐(1) 编辑
摘要: 活动记录和正常的CRUD效果是一样的,此处只当一个拓展,了解即可 pom.xml <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</arti 阅读全文
posted @ 2019-11-02 15:25 天宇轩-王 阅读(237) 评论(1) 推荐(2) 编辑
摘要: pom.xml <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> </dependency> <dependency 阅读全文
posted @ 2019-11-01 21:28 天宇轩-王 阅读(1645) 评论(1) 推荐(2) 编辑
摘要: 主要适用场景 意图: 当要更新一条记录的时候,希望这条记录没有被别人更新 乐观锁实现方式: 取出记录时,获取当前version 更新时,带上这个version 执行更新时, set version = newVersion where version = oldVersion 如果version不对 阅读全文
posted @ 2019-11-01 20:37 天宇轩-王 阅读(1525) 评论(0) 推荐(1) 编辑
摘要: Spring Boot 允许您外部化 configuration,以便您可以在不同的环境中使用相同的 application code。您可以使用 properties files,YAML files,环境变量和 command-line arguments 来外部化 configuration。 阅读全文
posted @ 2019-10-31 17:36 天宇轩-王 阅读(578) 评论(0) 推荐(2) 编辑
摘要: @PropertySource&@ImportResource&@Bean @PropertySource:加载指定的配置文件; @ImportResource:导入Spring的配置文件,让配置文件里面的内容生效; Spring Boot里面没有Spring的配置文件,我们自己编写的配置文件,也不 阅读全文
posted @ 2019-10-31 17:07 天宇轩-王 阅读(518) 评论(1) 推荐(2) 编辑
摘要: 入口类中有一个main方法,这个方法其实就是一个标准的Java应用的入口方法,一般在main方法中使用SpringApplication.run()来启动整个应用。 值得注意的是,这个入口类要使用@SpringBootApplication注解声明,它是SpringBoot的核心注解。 /** * 阅读全文
posted @ 2019-10-31 16:36 天宇轩-王 阅读(1011) 评论(1) 推荐(2) 编辑
摘要: 本文讲解了MyBatis-Plus在使用过程中的配置选项,其中,部分配置继承自MyBatis原生所支持的配置 基本配置 本部分配置包含了大部分用户的常用配置,其中一部分为 MyBatis 原生所支持的配置 使用方式 Spring Boot: Spring MVC: configLocation 类型 阅读全文
posted @ 2019-10-31 15:12 天宇轩-王 阅读(585) 评论(1) 推荐(2) 编辑
摘要: 一 通用枚举 解决了繁琐的配置,让 mybatis 优雅的使用枚举属性! 自3.1.0开始,可配置默认枚举处理类来省略扫描通用枚举配置 默认枚举配置 升级说明: 3.1.0 以下版本改变了原生默认行为,升级时请将默认枚举设置为EnumOrdinalTypeHandler 影响用户: 实体中使用原生枚 阅读全文
posted @ 2019-10-31 15:05 天宇轩-王 阅读(5597) 评论(0) 推荐(2) 编辑
上一页 1 ··· 101 102 103 104 105 106 107 108 109 ··· 113 下一页