Spring Boot定时任务
开启定时任务在项目启动类上添加@EnableScheduling注解,开启对定时任务的支持@SpringBootApplication
@EnableScheduling
public class ScheduledApplication {
public static void main(String[] args) {
SpringApplication.run...
nginx服务器配置https
# 监听80端口,http请求转发到https监听的443端口
server {
listen 80;
server_name localhost;
return 301 https://$server_name$request_uri;
}
# 监听443端口,https请求
server {
listen 443 ssl;
...