-
Notifications
You must be signed in to change notification settings - Fork 40.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Command-Line Arguments broken in 2.2.4? or Am I using it in wrong way? #20115
Labels
status: duplicate
A duplicate of another issue
Comments
vmisra2018
changed the title
Command-Line Arguments broken in 2.2.4? or there is some other way?
Command-Line Arguments broken in 2.2.4? or Am I using it in wrong way?
Feb 11, 2020
spring-projects-issues
added
the
status: waiting-for-triage
An issue we've not yet triaged
label
Feb 11, 2020
This looks like a duplicate of #19998. Please see this comment on how to pass multiple arguments on the command-line. |
mbhave
added
status: duplicate
A duplicate of another issue
and removed
status: waiting-for-triage
An issue we've not yet triaged
labels
Feb 11, 2020
Hi Madhura, I tried
|
This should work for you
If you have any other questions, please join us on Gitter. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a bootstrap.yml file which has placeholders but it seems when I use springboot 2.2.4 .RELEASE, it does not pick up those placeholders but same code works successfully for 2.2.2 RELEASE
Also , the placeholder as number gives throws java.lang.NumberFormatException for 2.2,4.RELASE. Although I have spring clould version Hoxton.SR1 but it looks more of a springboot issue (?) .
When I run as spring boot ,I am passing multiple command line arguments
bootstrap.yml
Output when I run with 2.2.4.RELEASE :
If I hardcode the ports to 11001 and 11002,it always picks up the second entry and starts on port 11002
I tried to print put arguments in my code
And I see this in logs
But with 2.2.2.RELEASE , it works and properly identities and starts on proper ports
The text was updated successfully, but these errors were encountered: