|
|
@ -11,17 +11,15 @@ import java.net.UnknownHostException;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 启动程序
|
|
|
|
* 启动程序
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @author ruoyi
|
|
|
|
* @author ruoyi
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
|
|
|
|
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
|
|
|
|
public class RuoYiApplication
|
|
|
|
public class RuoYiApplication {
|
|
|
|
{
|
|
|
|
public static void main(String[] args) {
|
|
|
|
public static void main(String[] args)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ConfigurableApplicationContext application = SpringApplication.run(RuoYiApplication.class, args);
|
|
|
|
ConfigurableApplicationContext application = SpringApplication.run(RuoYiApplication.class, args);
|
|
|
|
Environment env = application.getEnvironment();
|
|
|
|
Environment env = application.getEnvironment();
|
|
|
|
String ip = null;
|
|
|
|
String ip;
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
ip = InetAddress.getLocalHost().getHostAddress();
|
|
|
|
ip = InetAddress.getLocalHost().getHostAddress();
|
|
|
|
} catch (UnknownHostException e) {
|
|
|
|
} catch (UnknownHostException e) {
|
|
|
|