摘要:
使用IDEA 的时候,当在一个类中导入另一个包下很多类的时候,因为导入的类都在同一个包下,导入数量过多的时候,IDEA会自动帮你变成import * 阅读全文
摘要:
1.打开设置 设置路径: 2.文件编码模板 3.常用模板推荐 推荐1: /** * @author ${USER} * @date ${DATE} ${TIME} */ 推荐2: /** * Created by ${USER} on ${DATE}. */ 推荐3: /** * user: ${U 阅读全文
摘要:
1.导入maven包 <!-- 语音播报类 --> <dependency> <groupId>com.hynnet</groupId> <artifactId>jacob</artifactId> <version>1.18</version> </dependency> 2.编写语音播报工具类 阅读全文
摘要:
1.快速复制 ctrl+D 2.一键删除重复项 ^(.*?)$\s+?^(?=.*^\1$) 阅读全文
摘要:
1.本月第一天 select date_add(curdate(), interval - day(curdate()) + 1 day); 2.本月最后一天 select last_day(curdate()); 3.上个月第一天 select date_add(curdate()-day(cur 阅读全文
摘要:
1.引入maven依赖 如果是springboot项目,就可以不必引入,这个存在最核心的web开发包里 <!-- web --><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-start 阅读全文
摘要:
nohup java -jar test.jar > nohup.out & java -jar test.jar & nohup java -jar test.jar > /dev/null 2>&1 & 1.nohup 启动输出nohup文件 2.& 后台启动 3.如果有自己的日志文件,nohu 阅读全文
摘要:
1 把bind 127.0.0.1 注释 2 把protected-mode yes 改为 protected-mode no 3 重启redis服务器 阅读全文
摘要:
1 //前提为a、b均不能为null 2 if(a.compareTo(b) == -1){ 3 System.out.println("a小于b"); 4 } 5 6 if(a.compareTo(b) == 0){ 7 System.out.println("a等于b"); 8 } 9 10 i 阅读全文
摘要:
<template> <div id="app"> <router-view /> </div> </template> <script> export default { name: 'App', data() { return { //设置超时时间: 30分种 timeOut : 30 * 60 阅读全文