上一页 1 ··· 39 40 41 42 43 44 45 46 47 ··· 70 下一页
摘要: 引入依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> <version>2.1.7.RELEASE</version> 阅读全文
posted @ 2020-11-26 14:15 yvioo 阅读(838) 评论(1) 推荐(1)
摘要: 1.常量与常量的拼接结果在常量池,原理是编译期优化 public void test1() { String s1 = "a" + "b" + "c";//等同于"abc" String s2 = "abc"; //"abc"-定是放在字符串常量池中,将此地址赋给s2 /* *最终.java编译成. 阅读全文
posted @ 2020-11-23 21:53 yvioo 阅读(1044) 评论(0) 推荐(0)
摘要: public static void main(String[] args) { Field[] fields=BaseSalary.class.getDeclaredFields(); for (int i = 0; i < fields.length; i++) { System.out.pri 阅读全文
posted @ 2020-11-23 17:35 yvioo 阅读(2913) 评论(0) 推荐(0)
摘要: private static Pattern humpPattern = Pattern.compile("[A-Z]"); /** * 驼峰转下划线 * @param str * @return */ public static String humpToLine(String str) { Ma 阅读全文
posted @ 2020-11-23 17:33 yvioo 阅读(2774) 评论(2) 推荐(0)
摘要: 引入maven依赖 <!-- https://mvnrepository.com/artifact/com.github.stuxuhai/jpinyin --> <dependency> <groupId>com.github.stuxuhai</groupId> <artifactId>jpin 阅读全文
posted @ 2020-11-21 23:47 yvioo 阅读(4633) 评论(0) 推荐(0)
摘要: import java.util.Iterator; import java.util.SortedMap; import java.util.TreeMap; public class MainTest { /** * map转xml格式 * @param sortedMap * @return 阅读全文
posted @ 2020-11-19 15:46 yvioo 阅读(5696) 评论(0) 推荐(0)
摘要: 有时候我们会自定义注解,并且需要配置拦截器对请求方法含有该自定义注解的方法进行拦截操作 自定义注解类 NeedToken.java import java.lang.annotation.Documented; import java.lang.annotation.ElementType; imp 阅读全文
posted @ 2020-11-18 13:59 yvioo 阅读(3185) 评论(0) 推荐(0)
摘要: 打开redis服务的配置文件 添加notify-keyspace-events Ex 如果是注释了,就取消注释 这个是在以下基础上进行添加的 Spring整合redis:https://www.cnblogs.com/pxblog/p/12583703.html 在redis-context.xml 阅读全文
posted @ 2020-11-13 15:00 yvioo 阅读(2310) 评论(2) 推荐(0)
摘要: Unable to open debugger port (127.0.0.1:63342): java.net.BindException "Address already in use IDEA报错 处理办法:把项目的tomcat配置删掉 重新配置下 阅读全文
posted @ 2020-11-13 13:52 yvioo 阅读(1185) 评论(2) 推荐(0)
摘要: 修改linux服务器ssh断开时间 修改profile配置 vim /etc/profile 增加配置 后面单位秒 这里就是三分钟不活动断开连接 TMOUT=180 然后使用 wq! 进行保存,使用以下命令生效 source /etc/profile 阅读全文
posted @ 2020-11-10 16:19 yvioo 阅读(2078) 评论(0) 推荐(0)
上一页 1 ··· 39 40 41 42 43 44 45 46 47 ··· 70 下一页