12 2020 档案

摘要:1、对查询进行优化,应尽量避免全表扫描,首先应考虑在where及order by涉及的列上建立索引。 2、应尽量避免在where子句中对字段进行null值判断,创建表时NULL是默认值,但大多数时候应该使用NOT NULL,或者使用一个特殊的值,如0,-1作为默认值。 3、应尽量避免在where子句 阅读全文
posted @ 2020-12-23 06:47 Brian_Huang 阅读(610) 评论(2) 推荐(5) 编辑
摘要:minishift的安装步骤很简单,主要的问题是国内下载资源很慢 Minishift需要一个管理程序来启动提供OpenShift集群的虚拟机。这里我们使用VirtualBox作为系统管理程序。 1.安装 VirtualBox: $ sudo apt install virtualbox 2.安装 M 阅读全文
posted @ 2020-12-22 06:28 Brian_Huang 阅读(292) 评论(4) 推荐(0) 编辑
摘要:SpringApplication的run()方法 基于 2.2.9.RELEASE的版本,启动项目debug,当SpringApplication创建完成就开始执行#run(String... args) 方法 public ConfigurableApplicationContext run(S 阅读全文
posted @ 2020-12-18 06:46 Brian_Huang 阅读(631) 评论(0) 推荐(0) 编辑
摘要:SpringApplication的创建 基于 2.2.9.RELEASE的版本,启动项目debug @SpringBootApplication public class DemoApplication { public static void main(String[] args) { Spri 阅读全文
posted @ 2020-12-13 14:54 Brian_Huang 阅读(249) 评论(0) 推荐(0) 编辑
摘要:1.springboot 常用接口 1.1 Aware接口 Spring IOC容器中 Bean是感知不到容器的存在,Aware(意识到的)接口就是帮助Bean感知到IOC容器的存在,即获取当前Bean对应的Spring的一些组件,如当前Bean对应的ApplicationContext等。 1.1 阅读全文
posted @ 2020-12-13 11:07 Brian_Huang 阅读(5389) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示