- 博客(9)
- 资源 (14)
- 收藏
- 关注
原创 InnoDB存储引擎中的锁机制和事务模型
并发访问和锁锁的作用锁用于协调多个线程对同一资源的并发访问。MySQL数据库中的资源主要是指数据库中的表和表中的记录。为什么需要锁呢?因为如果没有锁机制,多个并发修改数据的线程可能会使被修改的数据处于混乱的状态。而且,在修改数据期间,如果不加锁的话,查看数据的线程看到的可能是处于部分修改状态的数据。因此,必须引入锁机制使这些线程对数据的访问协调一致。锁的访问级别对数据库中数据的操作主要分为两种类型,一是读取(select),一是修改(insert, update, delet
2020-12-04 13:42:25 1061
原创 Spring boot系列6 - 外部配置
本文目录什么是外部配置外部配置的优点spring boot中外部配置的方式和属性加载优先级命令行方式Linux系统中通过SPRING_APPLICATION_JSON指定Java系统属性方式Linux环境变量指定Jar包外application.properties指定Jar包外config/application.properties指定Jar包中classpath下的application.properties指定Jar包中classpath下的config/application.properties
2020-08-08 13:13:00 1545
原创 Spring boot系列5 - 自动化配置
本文目录自动配置的目的自动配置的实现方式启用自动化配置查看自动化配置开启debug日志查看jar包中的源代码查看spring boot文档修改自动化配置我们确实需要它配置的bean,但是需要对bean的某些属性进行修改查看spring boot参考文档查看源代码我们需要配置自己的bean,从而替代它配置的bean我们完全不需要它配置的bean,也不想自己配置自动化配置是Spring boot的核心功能之一,正是它消除或者说减少了我们在开发spring应用时所需要的一大堆和业务无关的配置。而它背后的理念并
2020-08-08 12:56:42 1219
原创 Spring boot系列4 - 依赖管理
本文目录Spring boot starters缘起什么是starters一致性的依赖管理使包的管理更加模块化Spring boot依赖管理的基本原理当spring boot指定的依赖包的版本不是我们所需时当我的项目有自己的parent pom时怎么办Spring boot starters缘起在spring boot出现之前,当我需要开发一个spring web应用时,总是先找出一些最基本的依赖,确定它们的版本号,然后看它们是否能够相互兼容。这在项目的开始阶段似乎也没有多大问题,一切都很顺利。然而随着
2020-08-08 12:40:54 1627
原创 Spring boot系列3 - Spring boot项目的运行和关闭方式
本文目录Spring boot项目的运行方式在IDE中运行通过maven插件运行通过java -jar的方式运行直接打包成Linux系统下的可执行文件打包成war包形式在容器中运行在Linux系统中作为后台进程运行 - nohup在Linux中作为Systemd服务运行关闭Spring boot项目的方式使用Linux系统中的kill 命令使用systemctl stop关闭优雅关闭graceful通过Actuator发送post请求Spring boot项目的运行方式对于前面的hello项目,我们是在
2020-08-07 09:25:51 2546
原创 Spring boot系列2 - hello项目的简单说明
麻雀虽小,五脏俱全,上一章中的hello项目虽然功能十分简单,但已经使用了Spring boot的大部分强大的特性,很值得我们细细品味一番。下面我们就来分析一下这个短小精悍的hello项目。首先我们看下它使用了Spring boot哪些主要的特性,可以总结如下:一致性依赖管理自动化配置独立运行一致性依赖管理打开项目的pom.xml文件,可以看到主要引入了两个东西,第一就是指定了项目的父pom为spring-boot-starter-parent,这个pom文件主要声明了Spring boot
2020-08-07 08:58:57 1112
原创 Spring boot系列1 - Spring boot简介
本文目录Spring boot是什么Spring boot解决的主要问题依赖管理自动化配置独立运行Spring boot的核心功能一个例子: Rest风格的Hello worldHello world项目的开发步骤创建项目在学习一门技术时,我喜欢先对这门技术有个大体的了解,这可能包括这门技术的来龙去脉、主要研究什么、主要解决哪些问题、主要用途有哪些、发展趋势、它的优势和缺点以及它的主要思想和采用的主要方法等。这样,我便能对这门技术有一个比较全面的认识,以免管中窥豹,只见一斑。然后再找上一本好书从头学起,看
2020-08-07 08:24:29 1019
Algorithms on Strings
2019-08-06
Advanced Data Structures
2019-08-06
Hands-On Machine Learning with Scikit-Learn and TensorFlow
2019-07-19
Machine Learning For Absolute Beginners, 2nd Edition-Oliver Theobald(2017).zip
2019-07-16
Packt.Python.3.Object-Oriented.Programming.2nd.Edition.1784398780.zip
2019-07-16
Functional Python Programming(2nd).zip
2019-07-16
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人