自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 收藏
  • 关注

原创 SpringBoot2.1.3项目自建test目录无法注入Bean的问题

1.保证测试包结构与main下的相同。2.由于项目使用的是SpringBoot2.1.3版本,测试类上的注解只有一个@SpringBootTest是不够的,还需要@RunWith(SpringRunner.class)才可以。

2020-06-05 16:33:16 688

原创 Mariadb:Incorrect datetime value

It can hold values starting at ‘1970-01-01 00:00:01’ (UTC) to ‘2038-01-19 05:14:07’ (UTC).

2019-08-07 18:36:38 344

原创 Java.sql.SQLException: Zero date value prohibited

This problem is not about MySQL database, but about JDBC:Solution:JDBCurl: add parameter zeroDateTimeBehavior=convertToNullJDBCurl: add parameter zeroDateTimeBehavior=round

2019-08-07 18:34:25 240

原创 SpringBoot Project: Create specific table on project start

Some days ago, my leader tell me to complete a mission that automatically creating a table when starting the SpringBoot project. After struggling for some time, I find some ways that can achieve that...

2019-08-07 15:41:25 122

原创 MariaDB chinese messy code problem

1. Check the character_set of MariaDB.mysql[none]> show variables like '%character_set_%';2.Set permanent charset.$ vi /etc/my.cnf.d/client.cnf[client] default-character-se=utf8$ vi /etc/...

2019-07-23 11:23:07 76

转载 SVN: Learn From Scratch

Preface What is Subversion?Subversion is a free/open source version control system(VCS). It can be used to manage any collection of files(Not just source code). It manages the changes made to them, ...

2019-07-13 16:22:44 1069

原创 MySQL:Create user with a password but when logining no password is needed.

Just because there are anonymous user which column ‘User’ is ‘’. Do as following:(1)Delete all anonymous user.mysql[mysql]> delete from user where user='';(2)Flush privileges.mysql> flush p...

2019-07-12 18:36:05 296

原创 Nginx Error: nginx:[error] invalid PID number ""in"run/nginx.pid"

Solution:(ENV: CentOS7)First:$ nginx -c /etc/nginx/nginx.conf // Use an alternative configuration file.Second:$ nginx -s reload

2019-07-10 12:06:29 126

原创 MySQL create readonly account

First, create a account:mysql> CREATE USER 'readonly'@'%' IDENTIFIED BY 'readonly';Then, grant select privilige to the user above:mysql> GRANT SELECT ON *.* TO 'readonly'@'%';

2019-07-10 11:44:52 128

原创 url路径中对特殊字符有限制的解决方式

url路径中对特殊字符限制的解决方式特殊符号包含:+,空格,/,?,%,#,&,=解决方式:1.使用转义字符特殊字符意义编码+空格%2B空格–%20/分隔目录和子目录%2F%指定特殊字符%25?分隔实际的URL和参数%3F&URL 中指定的参数间的分隔符%26=指定参数的值%3D2....

2019-06-12 14:07:47 5212

原创 MySQL column Type存储最大长度

在SpringBoot项目中进行数据库数据插入操作时,报出以下异常:org.springframework.dao.DataIntegrityViolationException: StatementCallback; SQL [insert into work_flow_log(model_name,obj_id,uid,action_name,action_parameters) valu...

2019-05-21 12:50:17 830

原创 SpringBoot项目LiveReload server无法开启

使用Spring Tool Suite4启动一个Spring Boot项目时warn:unable to start LiveReload server启动时信息:在CSDN上查阅资料后得知LiveReload server在同一时间只能运行一个。在使用SpringToolSuite4开启一个新的SpringBoot项目时本机同时在IDEA上运行着一个SpringBoot项目,并且已开启Liv...

2019-05-20 10:07:50 3548

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除