很多用户在使用Navicat Premium 12连接MySQL数据库时会出现Authentication plugin 'caching_sha2_password' cannot be loaded的错误。 出现这个原因是mysql8 之前的版本中加密规则是mysql_native_passwo ...
分类:
数据库 时间:
2020-01-01 09:56:14
阅读次数:
86
常见HTTP状态码 200 OK 301 Moved Permanently 302 Found 304 Not Modified 307 Temporary Redirect 400 Bad Request 401 Unauthorized 403 Forbidden 404 Not Found ...
分类:
Web程序 时间:
2019-12-30 23:21:54
阅读次数:
109
通过上面的学习,现在我们进入实战演练,上代码 1 package dao.impl; 2 3 import org.springframework.stereotype.Repository; 4 5 import dao.UserDao; 6 import entity.User; 7 8 /** ...
分类:
其他好文 时间:
2019-12-30 23:19:34
阅读次数:
75
spring boot 处理 swagger 嵌套数据展示在开发的过程中,我们会常常使用swagger做我们的在线文档.我们会在对象的属性上使用@ApiModelProperty 等api注解,但是遇到对象嵌套的时候,如何返回一个嵌套的json文档就需要我们做一些简单的处理 如果只在对象某个属性上使 ...
分类:
编程语言 时间:
2019-12-30 17:15:43
阅读次数:
678
用login_required装饰器来辨别用户是否登陆,如果没有登陆,则需要进行登录才能继续访问当前页面(有些页面是需要用户登陆后才可以访问);如果已经登陆,则可以继续访问。 首先配置 如果用户没有登陆,login_required装饰器会默认一个地址进行跳转,所以要在settings中进行配置需要 ...
分类:
其他好文 时间:
2019-12-29 20:19:12
阅读次数:
77
在开发中经常使用Form组件管理表单,这次想通过form提供的setFieldsValue()方法动态改变Switch组件状态,却没有生效。 查阅官方文档之后,发现有如下说明: 加入valuePropName属性之后,就可以使用动态操作Switch组件了。 在开发中经常使用Form组件管理表单,这次 ...
分类:
其他好文 时间:
2019-12-29 12:52:14
阅读次数:
1278
Problem Statement Given two words word1 and word2, find the minimum number of operations required to convert word1 to word2. You have the following 3 ...
分类:
其他好文 时间:
2019-12-29 11:21:04
阅读次数:
66
1.自动加载出错 require a bean of .... The injection point has the following annotations: - @org.springframework.beans.factory.annotation.Autowired(required= ...
分类:
编程语言 时间:
2019-12-28 23:05:35
阅读次数:
190
运行环境:centos 7,jdk 1.8 问题一: 原因:无法创建本地文件问题,用户最大可创建文件数太小 解决方案:切换到root用户,编辑limits.conf配置文件, 添加类似如下内容: vim /etc/security/limits.conf 添加如下内容:* soft nofile 6 ...
分类:
其他好文 时间:
2019-12-28 19:21:09
阅读次数:
207
Protobuf是什么 Protobuf实际是一套类似Json或者XML的数据传输格式和规范,用于不同应用或进程之间进行通信时使用。通信时所传递的信息是通过Protobuf定义的message数据结构进行打包,然后编译成二进制的码流再进行传输或者存储。 Protobuf的优点 相比较而言,Proto ...
分类:
其他好文 时间:
2019-12-28 13:12:05
阅读次数:
81