/*
package com.example.demo.yxx;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestTemplate;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.InetSocketAddress;
import java.net.ServerSocket;
import java.net.Socket;
import java.nio.ByteBuffer;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.ServerSocketChannel;
import java.nio.channels.SocketChannel;
import java.nio.charset.Charset;
import java.util.Set;

*/
/**
 * @Project : huimv.shiwan
 * @Package : com.example.demo.yxx
 * @Description : 定时发送请求
 * @Author : yuxuexuan
 * @Create : 2021/1/8 0008 8:43
 **//*

@Component
public class Yxx {

    @Autowired
    private RestTemplate restTemplate;

    @Scheduled(cron = "0 * * * * ?")
    public void timedRransmission(){
        System.out.println("sssssssssss");
        restTemplate.postForEntity("http://122.112.252.100:8088/publicNetwork/add",null,null);
    }

}
*/
