mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Polish
See gh-19484
This commit is contained in:
parent
5f178db49b
commit
e4057dd528
@ -22,7 +22,7 @@ public class SampleApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
if (args.length < 2) {
|
||||
throw new IllegalArgumentException("Missing arguments " + Arrays.toString(args) + "");
|
||||
throw new IllegalArgumentException("Missing arguments " + Arrays.toString(args));
|
||||
}
|
||||
if (!args[0].startsWith("--management.endpoints.web.exposure.include=")) {
|
||||
throw new IllegalArgumentException("Invalid argument " + args[0]);
|
||||
|
@ -22,7 +22,7 @@ public class SampleApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
if (args.length < 2) {
|
||||
throw new IllegalArgumentException("Missing arguments " + Arrays.toString(args) + "");
|
||||
throw new IllegalArgumentException("Missing arguments " + Arrays.toString(args));
|
||||
}
|
||||
if (!args[0].startsWith("--management.endpoints.web.exposure.include=")) {
|
||||
throw new IllegalArgumentException("Invalid argument " + args[0]);
|
||||
|
@ -22,7 +22,7 @@ public class SampleApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
if (args.length < 1) {
|
||||
throw new IllegalArgumentException("Missing active profile argument " + Arrays.toString(args) + "");
|
||||
throw new IllegalArgumentException("Missing active profile argument " + Arrays.toString(args));
|
||||
}
|
||||
String argument = args[0];
|
||||
if (!argument.startsWith("--spring.profiles.active=")) {
|
||||
|
@ -22,7 +22,7 @@ public class SampleApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
if (args.length < 1) {
|
||||
throw new IllegalArgumentException("Missing active profile argument " + Arrays.toString(args) + "");
|
||||
throw new IllegalArgumentException("Missing active profile argument " + Arrays.toString(args));
|
||||
}
|
||||
String argument = args[0];
|
||||
if (!argument.startsWith("--spring.profiles.active=")) {
|
||||
|
Loading…
Reference in New Issue
Block a user