|
|
@ -15,13 +15,11 @@ 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) {
|
|
|
|