Skip to content

Commit ce7a930

Browse files
committed
refactor: Update dockerfile and remove @ComponentScane
1 parent 9a4e93d commit ce7a930

File tree

6 files changed

+1
-8
lines changed

6 files changed

+1
-8
lines changed

spring-boot-reactive-change-server-port/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ pom.xml
4848

4949
``` java
5050
@SpringBootApplication
51-
@ComponentScan(basePackages = {"me.jittagornp"})
5251
public class AppStarter {
5352

5453
public static void main(String[] args) {

spring-boot-reactive-change-server-port/src/main/java/me/jittagornp/example/reactive/AppStarter.java

-2
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@
55

66
import org.springframework.boot.SpringApplication;
77
import org.springframework.boot.autoconfigure.SpringBootApplication;
8-
import org.springframework.context.annotation.ComponentScan;
98

109
/**
1110
* @author jitta
1211
*/
1312
@SpringBootApplication
14-
@ComponentScan(basePackages = {"me.jittagornp"})
1513
public class AppStarter {
1614

1715
public static void main(String[] args) {
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# https://hub.docker.com/_/openjdk
2-
FROM openjdk:11-jre-slim
2+
FROM openjdk:21-slim
33
EXPOSE 8080
44
ADD target/*.jar /app.jar
55
ENTRYPOINT java $JAVA_OPTS -jar /app.jar

spring-boot-reactive-dockerfile/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ pom.xml
5555

5656
``` java
5757
@SpringBootApplication
58-
@ComponentScan(basePackages = {"me.jittagornp"})
5958
public class AppStarter {
6059

6160
public static void main(String[] args) {

spring-boot-reactive-dockerfile/src/main/java/me/jittagornp/example/reactive/AppStarter.java

-2
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@
55

66
import org.springframework.boot.SpringApplication;
77
import org.springframework.boot.autoconfigure.SpringBootApplication;
8-
import org.springframework.context.annotation.ComponentScan;
98

109
/**
1110
* @author jitta
1211
*/
1312
@SpringBootApplication
14-
@ComponentScan(basePackages = {"me.jittagornp"})
1513
public class AppStarter {
1614

1715
public static void main(String[] args) {

spring-boot-reactive-helloworld/src/main/java/me/jittagornp/example/reactive/AppStarter.java

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
import org.springframework.boot.SpringApplication;
77
import org.springframework.boot.autoconfigure.SpringBootApplication;
8-
import org.springframework.context.annotation.ComponentScan;
98

109
/**
1110
* @author jitta

0 commit comments

Comments
 (0)