when i run my jar with the command line -Dserver.port , the application does not start with the specified port
it was working fine when i was using spring 2.2.6.
Comment From: wilkinsona
This isn't actionable at the moment as you haven't provided enough information. -Dserver.port
should still work. If you would like us to spend some more time investigating, please spend some time providing a complete yet minimal sample that reproduces the problem. You can share it with us by pushing it to a separate repository on GitHub or by zipping it up and attaching it to this issue.
Comment From: KarthikTarun
@wilkinsona from 2.2.6 to 3.3.1 was there any change to as how we can start the application on a specific port, I went through the docs but couldn't find anything
Comment From: bclozel
@KarthikTarun I'm not aware of any change there that could explain what you are seeing. I think we are going to need a sample from you.
Comment From: KarthikTarun
in my code, i have this line app.setDefaultProperties(Collections.singletonMap("server.port","9292"));
but tomcat dosent start, when i package the jar and start the jar
but it works when i try to run it though intellij run configration
under dependencies i have the following added
implementation(group: "org.springframework.boot", name: "spring-boot-starter-web", version: "3.3.1", exclusions)
unfortunately, i cant share the code.
Comment From: bclozel
Thanks for the additional information but this is still not enough for us to understand what is happening.
We are not asking for your entire application but just enough code to reproduce the problem you are seeing. You can start by creating a simple application on https://start.spring.io and add the relevant code snippets until the problem appears.
In the meantime I am closing this issue. We will reopen it when we'll get the sample we need. Thanks!