摘要:
Spring Boot 允许您外部化 configuration,以便您可以在不同的环境中使用相同的 application code。您可以使用 properties files,YAML files,环境变量和 command-line arguments 来外部化 configuration。 阅读全文
摘要:
@PropertySource&@ImportResource&@Bean @PropertySource:加载指定的配置文件; @ImportResource:导入Spring的配置文件,让配置文件里面的内容生效; Spring Boot里面没有Spring的配置文件,我们自己编写的配置文件,也不 阅读全文
摘要:
入口类中有一个main方法,这个方法其实就是一个标准的Java应用的入口方法,一般在main方法中使用SpringApplication.run()来启动整个应用。 值得注意的是,这个入口类要使用@SpringBootApplication注解声明,它是SpringBoot的核心注解。 /** * 阅读全文
摘要:
本文讲解了MyBatis-Plus在使用过程中的配置选项,其中,部分配置继承自MyBatis原生所支持的配置 基本配置 本部分配置包含了大部分用户的常用配置,其中一部分为 MyBatis 原生所支持的配置 使用方式 Spring Boot: Spring MVC: configLocation 类型 阅读全文
摘要:
一 通用枚举 解决了繁琐的配置,让 mybatis 优雅的使用枚举属性! 自3.1.0开始,可配置默认枚举处理类来省略扫描通用枚举配置 默认枚举配置 升级说明: 3.1.0 以下版本改变了原生默认行为,升级时请将默认枚举设置为EnumOrdinalTypeHandler 影响用户: 实体中使用原生枚 阅读全文
摘要:
在实际开发中,适合用于记录创建人修改人 pom.xml <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> </dep 阅读全文
摘要:
pom.xml <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> </dependency> <dependency 阅读全文
摘要:
pom.xml <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> </dependency> <dependency 阅读全文
摘要:
背景 LCN框架在2017年6月份发布第一个版本,从开始的1.0,已经发展到了5.0版本。 LCN名称是由早期版本的LCN框架命名,在设计框架之初的1.0 ~ 2.0的版本时框架设计的步骤是如下,各取其首字母得来的LCN命名。 锁定事务单元(lock) 确认事务模块状态(confirm) 通知事务( 阅读全文