摘要:
Caused by: redis.clients.jedis.exceptions.JedisDataException: READONLY You can't write against a read only slave. at redis.clients.jedis.Protocol.proc 阅读全文
摘要:
在页面head标签中加入 <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> 阅读全文
摘要:
引入maven <dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> <version>2.9.0</version> </dependency> 代码 static String constr = 阅读全文
摘要:
要在layer.load之前使用layer.ready方法 layui.use('layer', function () { layer.ready(function(){ index = layer.load(1, { shade: [0.4,'#000'] }); }); }); 阅读全文
摘要:
import org.apache.commons.lang.StringUtils; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.StatusLine; 阅读全文
摘要:
引入依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> <version>2.1.7.RELEASE</version> 阅读全文
摘要:
1.常量与常量的拼接结果在常量池,原理是编译期优化 public void test1() { String s1 = "a" + "b" + "c";//等同于"abc" String s2 = "abc"; //"abc"-定是放在字符串常量池中,将此地址赋给s2 /* *最终.java编译成. 阅读全文
摘要:
public static void main(String[] args) { Field[] fields=BaseSalary.class.getDeclaredFields(); for (int i = 0; i < fields.length; i++) { System.out.pri 阅读全文
摘要:
private static Pattern humpPattern = Pattern.compile("[A-Z]"); /** * 驼峰转下划线 * @param str * @return */ public static String humpToLine(String str) { Ma 阅读全文
摘要:
引入maven依赖 <!-- https://mvnrepository.com/artifact/com.github.stuxuhai/jpinyin --> <dependency> <groupId>com.github.stuxuhai</groupId> <artifactId>jpin 阅读全文