File tree Expand file tree Collapse file tree 12 files changed +20
-20
lines changed
flexible/helloworld-springboot
java/com/example/helloworld Expand file tree Collapse file tree 12 files changed +20
-20
lines changed Original file line number Diff line number Diff line change 3939 <!-- Import dependency management from Spring Boot -->
4040 <groupId >org.springframework.boot</groupId >
4141 <artifactId >spring-boot-dependencies</artifactId >
42- <version >2.2.6 .RELEASE</version >
42+ <version >2.3.0 .RELEASE</version >
4343 <type >pom</type >
4444 <scope >import</scope >
4545 </dependency >
7070 <dependency >
7171 <groupId >org.springframework.boot</groupId >
7272 <artifactId >spring-boot-starter-jetty</artifactId >
73- <version >2.2.6 .RELEASE</version >
73+ <version >2.3.0 .RELEASE</version >
7474 </dependency >
7575 </dependencies >
7676
7979 <plugin >
8080 <groupId >org.springframework.boot</groupId >
8181 <artifactId >spring-boot-maven-plugin</artifactId >
82- <version >2.2.6 .RELEASE</version >
82+ <version >2.3.0 .RELEASE</version >
8383 <executions >
8484 <execution >
8585 <goals >
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ limitations under the License.
4242 <!-- Import dependency management from Spring Boot -->
4343 <groupId >org.springframework.boot</groupId >
4444 <artifactId >spring-boot-dependencies</artifactId >
45- <version >2.2.6 .RELEASE</version >
45+ <version >2.3.0 .RELEASE</version >
4646 <type >pom</type >
4747 <scope >import</scope >
4848 </dependency >
@@ -62,7 +62,7 @@ limitations under the License.
6262 <dependency >
6363 <groupId >org.springframework.boot</groupId >
6464 <artifactId >spring-boot-starter-web</artifactId >
65- <version >2.2.6 .RELEASE</version >
65+ <version >2.3.0 .RELEASE</version >
6666 <exclusions >
6767 <!-- Exclude the Tomcat dependency -->
6868 <exclusion >
@@ -74,7 +74,7 @@ limitations under the License.
7474 <dependency >
7575 <groupId >org.springframework.boot</groupId >
7676 <artifactId >spring-boot-starter-jetty</artifactId >
77- <version >2.2.6 .RELEASE</version >
77+ <version >2.3.0 .RELEASE</version >
7878 </dependency >
7979
8080 </dependencies >
@@ -84,7 +84,7 @@ limitations under the License.
8484 <plugin >
8585 <groupId >org.springframework.boot</groupId >
8686 <artifactId >spring-boot-maven-plugin</artifactId >
87- <version >2.2.6 .RELEASE</version >
87+ <version >2.3.0 .RELEASE</version >
8888 <executions >
8989 <execution >
9090 <goals >
Original file line number Diff line number Diff line change 4040 <dependency >
4141 <groupId >org.springframework.boot</groupId >
4242 <artifactId >spring-boot-starter-web</artifactId >
43- <version >2.2.6 .RELEASE</version >
43+ <version >2.3.0 .RELEASE</version >
4444 </dependency >
4545 <dependency >
4646 <groupId >org.springframework.boot</groupId >
4747 <artifactId >spring-boot-starter-actuator</artifactId >
48- <version >2.2.6 .RELEASE</version >
48+ <version >2.3.0 .RELEASE</version >
4949 </dependency >
5050 <dependency >
5151 <groupId >org.springframework.boot</groupId >
5252 <artifactId >spring-boot-starter-test</artifactId >
53- <version >2.2.6 .RELEASE</version >
53+ <version >2.3.0 .RELEASE</version >
5454 <scope >test</scope >
5555 <exclusions >
5656 <exclusion >
6666 <plugin >
6767 <groupId >org.springframework.boot</groupId >
6868 <artifactId >spring-boot-maven-plugin</artifactId >
69- <version >2.2.6 .RELEASE</version >
69+ <version >2.3.0 .RELEASE</version >
7070 <executions >
7171 <execution >
7272 <goals >
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ limitations under the License.
3232 <!-- Import dependency management from Spring Boot -->
3333 <groupId >org.springframework.boot</groupId >
3434 <artifactId >spring-boot-dependencies</artifactId >
35- <version >2.2.6 .RELEASE</version >
35+ <version >2.3.0 .RELEASE</version >
3636 <type >pom</type >
3737 <scope >import</scope >
3838 </dependency >
Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ String hello() {
3737 }
3838
3939 public static void main (String [] args ) {
40+ String port = System .getenv ().getOrDefault ("PORT" , "8080" );
41+ System .setProperty ("server.port" , port );
4042 SpringApplication .run (HelloworldApplication .class , args );
4143 }
4244}
Original file line number Diff line number Diff line change 1111# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212# See the License for the specific language governing permissions and
1313# limitations under the License.
14-
15- server.port = ${PORT}
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ limitations under the License.
3535 <!-- Import dependency management from Spring Boot -->
3636 <groupId >org.springframework.boot</groupId >
3737 <artifactId >spring-boot-dependencies</artifactId >
38- <version >2.2.6 .RELEASE</version >
38+ <version >2.3.0 .RELEASE</version >
3939 <type >pom</type >
4040 <scope >import</scope >
4141 </dependency >
Original file line number Diff line number Diff line change 3636 <!-- Import dependency management from Spring Boot -->
3737 <groupId >org.springframework.boot</groupId >
3838 <artifactId >spring-boot-dependencies</artifactId >
39- <version >2.2.6 .RELEASE</version >
39+ <version >2.3.0 .RELEASE</version >
4040 <type >pom</type >
4141 <scope >import</scope >
4242 </dependency >
Original file line number Diff line number Diff line change 3636 <!-- Import dependency management from Spring Boot -->
3737 <groupId >org.springframework.boot</groupId >
3838 <artifactId >spring-boot-dependencies</artifactId >
39- <version >2.2.6 .RELEASE</version >
39+ <version >2.3.0 .RELEASE</version >
4040 <type >pom</type >
4141 <scope >import</scope >
4242 </dependency >
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ limitations under the License.
3535 <!-- Import dependency management from Spring Boot -->
3636 <groupId >org.springframework.boot</groupId >
3737 <artifactId >spring-boot-dependencies</artifactId >
38- <version >2.2.6 .RELEASE</version >
38+ <version >2.3.0 .RELEASE</version >
3939 <type >pom</type >
4040 <scope >import</scope >
4141 </dependency >
You can’t perform that action at this time.
0 commit comments