fix: spring启动时接收命令行参数

This commit is contained in:
Gadfly 2021-08-13 18:00:24 +08:00
parent 2a51b1bc25
commit c9eb46c40d
6 changed files with 6 additions and 6 deletions

View File

@ -17,7 +17,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
public class OmsApplication {
public static void main(String[] args) {
SpringApplication.run(OmsApplication.class);
SpringApplication.run(OmsApplication.class, args);
}
}

View File

@ -14,6 +14,6 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
@EnableTransactionManagement
public class PmsApplication {
public static void main(String[] args) {
SpringApplication.run(PmsApplication.class);
SpringApplication.run(PmsApplication.class, args);
}
}

View File

@ -21,6 +21,6 @@ import org.springframework.scheduling.annotation.EnableScheduling;
public class SmsApplication {
public static void main(String[] args) {
SpringApplication.run(SmsApplication.class);
SpringApplication.run(SmsApplication.class, args);
}
}

View File

@ -9,6 +9,6 @@ import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
@EnableDiscoveryClient
public class UmsApplication {
public static void main(String[] args) {
SpringApplication.run(UmsApplication.class);
SpringApplication.run(UmsApplication.class, args);
}
}

View File

@ -8,6 +8,6 @@ import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
@EnableDiscoveryClient
public class AdminApplication {
public static void main(String[] args) {
SpringApplication.run(AdminApplication.class);
SpringApplication.run(AdminApplication.class, args);
}
}

View File

@ -12,6 +12,6 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
@EnableDiscoveryClient
public class AuthApplication {
public static void main(String[] args) {
SpringApplication.run(AuthApplication.class);
SpringApplication.run(AuthApplication.class, args);
}
}