上一页 1 ··· 5 6 7 8 9 10 11 下一页
摘要: 1. nginx报错 nginx: [error] invalid PID number "" in "/usr/local/nginx/logs/nginx.pid" 2. 解决方法 执行/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/ng 阅读全文
posted @ 2020-01-09 23:36 这都没什么 阅读(176) 评论(0) 推荐(0)
摘要: https://www.jianshu.com/p/9f2c162ac77c 1. 下载nginx的安装包 nginx下载地址:https://nginx.org/download/ 2. 安装nginx需要的依赖 yum -y install gcc zlib zlib-devel pcre-de 阅读全文
posted @ 2020-01-08 15:15 这都没什么 阅读(181) 评论(0) 推荐(0)
摘要: Integer a = new Integer(5) Integer b = new Integer(5) Integer c = 5 Integer d = 5 Integer e = 128 Integer f = 128 int g = 128 System.out.println(a==b) 阅读全文
posted @ 2020-01-07 14:23 这都没什么 阅读(149) 评论(0) 推荐(0)
摘要: 对返回到前端的日期和前端传递到后端的格式进行格式化,必须使用Date类型的,要不不起作用@DateTimeFormat(pattern ="yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+ 阅读全文
posted @ 2020-01-06 13:44 这都没什么 阅读(255) 评论(0) 推荐(0)
摘要: 1.使用springboot自带的异步 1. 在启动类中开启异步 加上注解: @EnableAsync 2. 异步的类上需要加@Component,如果这个类是异步的话需要在类上加@Async 如果某个方法是则只需要在方法上加上注解 3.注意点: 1)要把异步任务封装到类里面,不能直接写到Contr 阅读全文
posted @ 2020-01-06 13:39 这都没什么 阅读(2687) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/dh12313012/article/details/84661169 1. spring组件重写构造方法,在构造方法中引用@Value为null 由于spring实例化顺序为先执行构造方法,再注入成员变量,所以序为先执行构造方法,再注入成员变量,所以in 阅读全文
posted @ 2020-01-03 13:33 这都没什么 阅读(5002) 评论(0) 推荐(1)
摘要: 多线程的实现三种方式:1 继承thread类,重写run方法继承thread方法就可以i调用thread类的start方法,,start方法调用java natvie start0();这个是调用操作系统的方法,start方法 class Mythread01 extends Thread{ @Ov 阅读全文
posted @ 2020-01-03 09:45 这都没什么 阅读(552) 评论(0) 推荐(1)
摘要: 1. 下载jdk 下载路径: https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html 2. 检查当前系统是否已经安装openJDK,如果已经安装进行卸载 检查openJDK是否安装命令: 阅读全文
posted @ 2020-01-02 15:52 这都没什么 阅读(261) 评论(0) 推荐(0)
摘要: 1. 添加依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifactId> </dependency> 2. impl public String 阅读全文
posted @ 2020-01-01 21:30 这都没什么 阅读(261) 评论(0) 推荐(0)
摘要: 1. 添加依赖 <!--添加阿里云发短信的依赖--> <dependency> <groupId>com.aliyun</groupId> <artifactId>aliyun-java-sdk-core</artifactId> <version>4.0.6</version> </depende 阅读全文
posted @ 2019-12-15 00:02 这都没什么 阅读(260) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 下一页