zj
2024-06-03 4afe73cb84c5a609662b8b4ee20693de9b86b9a3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package com.nq;
 
import cn.hutool.core.net.NetUtil;
import com.nq.utils.ip.ipUtil;
import org.apache.catalina.Context;
import org.apache.tomcat.util.descriptor.web.SecurityCollection;
import org.apache.tomcat.util.descriptor.web.SecurityConstraint;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.bind.annotation.RestController;
 
import java.net.InetAddress;
import java.net.SocketException;
import java.net.UnknownHostException;
 
@MapperScan(basePackages = "com.nq.dao")
@EnableScheduling
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@RestController
public class StockApplication {
 
 
    public static void main(String[] args) throws UnknownHostException, SocketException {
        ipUtil iputil = new ipUtil();
        InetAddress inetAddress = InetAddress.getLocalHost();
        String localMacAddress2 = NetUtil.getMacAddress(inetAddress);
        SpringApplication.run(StockApplication.class, args);
    }
 
 
 
}