Springboot介绍

1、Springboot简介
SpringBoot基于Spring4.0设计,不仅继承了Spring框架原有的优秀特性,而且还通过简化配置来进一步简化了Spring应用的整个搭建和开发过程。

另外SpringBoot通过集成大量的框架使得依赖包的版本冲突,以及引用的不稳定性等问题得到了很好的解决。

SpringBoot所具备的特征有:
(1)可以创建独立的Spring应用程序,并且基于其Maven或Gradle插件,可以创建可执行的JARs和WARs;
(2)内嵌Tomcat或Jetty等Servlet容器;
(3)提供自动配置的“starter”项目对象模型(POMS)以简化Maven配置;
(4)尽可能自动配置Spring容器;
(5)提供准备好的特性,如指标、健康检查和外部化配置;
(6)绝对没有代码生成,不需要XML配置。

[ERR] 1153 - Got a packet bigger than 'max_allowed_packet' bytes 解决方法

简介

max_allowed_packet 表示MySQL客户端和服务器之间,单条消息最大允许传输的数据包大小。

如果单条SQL插入或更新的数据包超过此大小,就会报错:
[ERR] 1153 - Got a packet bigger than 'max_allowed_packet' bytes

官方解释:

max_allowed_packet sets an upper limit on the size of any single message between the MySQL server and clients, including replication slaves. If you are replicating large column values (such as might be found in TEXT or BLOB columns) and max_allowed_packet is too small on the master, the master fails with an error, and the slave shuts down the I/O thread. If max_allowed_packet is too small on the slave, this also causes the slave to stop the I/O thread.

Windows程序开机自启动配置的几种方式

概述

Windows程序开机自启动配置的五种方式:
方式一:添加至自启动文件夹方式;
方式二:添加任务计划方式;
方式三:添加自启动服务方式;
方式四:添加本地组策略方式;
方式五:添加注册表自启动脚本方式;

不同方式比较:
方式一常见于手动操作,也可使用命令拷贝;
方式二、三为常用方式,适合通过命令直接创建;
方式四、五为不常用方式,不推荐使用。

MySQL 1819 - Your password does not satisfy the current policy requirements

mysql修改密码时提示:
1819 - Your password does not satisfy the current policy requirements

产生的原因:
自定义密码太简单,不符合mysql的密码策略

解决方法:
方法一:修改密码至符合mysql的密码策略(建议)。
方法二:如果必须用简单密码,可以修改密码策略;