| | |
| | | import com.nq.utils.ip.ipUtil; |
| | | import org.mybatis.spring.annotation.MapperScan; |
| | | import org.springframework.boot.SpringApplication; |
| | | import org.springframework.boot.autoconfigure.EnableAutoConfiguration; |
| | | import org.springframework.boot.autoconfigure.SpringBootApplication; |
| | | import org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration; |
| | | import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; |
| | | import org.springframework.scheduling.annotation.EnableScheduling; |
| | | |
| | |
| | | @MapperScan(basePackages = "com.nq.dao") |
| | | @EnableScheduling |
| | | @SpringBootApplication(exclude = DataSourceAutoConfiguration.class) |
| | | |
| | | @EnableAutoConfiguration(exclude={FlywayAutoConfiguration.class}) |
| | | public class StockApplication { |
| | | |
| | | |
| | | public static void main(String[] args) throws UnknownHostException, SocketException { |
| | | ipUtil iputil = new ipUtil(); |
| | | /*ipUtil iputil = new ipUtil(); |
| | | InetAddress inetAddress = InetAddress.getLocalHost(); |
| | | String localMacAddress2 = NetUtil.getMacAddress(inetAddress); |
| | | String localMacAddress2 = NetUtil.getMacAddress(inetAddress);*/ |
| | | SpringApplication.run(StockApplication.class, args); |
| | | //// if ("38.55.201.101".equals(iputil.getPublicIP()) && "66-45-97-00-00-37".equals(localMacAddress2)) { |
| | | // SpringApplication.run(StockApplication.class, args); |