- 博客(12)
- 收藏
- 关注
原创 SpringBoot2.1.3项目自建test目录无法注入Bean的问题
1.保证测试包结构与main下的相同。2.由于项目使用的是SpringBoot2.1.3版本,测试类上的注解只有一个@SpringBootTest是不够的,还需要@RunWith(SpringRunner.class)才可以。
2020-06-05 16:33:16
764
原创 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
399
原创 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
291
原创 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
185
原创 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
104
转载 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
1284
原创 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
335
原创 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
175
原创 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
178
原创 url路径中对特殊字符有限制的解决方式
url路径中对特殊字符限制的解决方式特殊符号包含:+,空格,/,?,%,#,&,=解决方式:1.使用转义字符特殊字符意义编码+空格%2B空格–%20/分隔目录和子目录%2F%指定特殊字符%25?分隔实际的URL和参数%3F&URL 中指定的参数间的分隔符%26=指定参数的值%3D2....
2019-06-12 14:07:47
5592
原创 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
922
原创 SpringBoot项目LiveReload server无法开启
使用Spring Tool Suite4启动一个Spring Boot项目时warn:unable to start LiveReload server启动时信息:在优快云上查阅资料后得知LiveReload server在同一时间只能运行一个。在使用SpringToolSuite4开启一个新的SpringBoot项目时本机同时在IDEA上运行着一个SpringBoot项目,并且已开启Liv...
2019-05-20 10:07:50
3684
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人