File tree 6 files changed +1
-8
lines changed
spring-boot-reactive-change-server-port
src/main/java/me/jittagornp/example/reactive
spring-boot-reactive-dockerfile
src/main/java/me/jittagornp/example/reactive
spring-boot-reactive-helloworld/src/main/java/me/jittagornp/example/reactive
6 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ pom.xml
48
48
49
49
``` java
50
50
@SpringBootApplication
51
- @ComponentScan(basePackages = {"me.jittagornp"})
52
51
public class AppStarter {
53
52
54
53
public static void main(String[] args) {
Original file line number Diff line number Diff line change 5
5
6
6
import org.springframework.boot.SpringApplication;
7
7
import org.springframework.boot.autoconfigure.SpringBootApplication;
8
- import org.springframework.context.annotation.ComponentScan;
9
8
10
9
/**
11
10
* @author jitta
12
11
*/
13
12
@SpringBootApplication
14
- @ComponentScan(basePackages = {"me.jittagornp"})
15
13
public class AppStarter {
16
14
17
15
public static void main(String[] args) {
Original file line number Diff line number Diff line change 1
1
# https://hub.docker.com/_/openjdk
2
- FROM openjdk:11-jre -slim
2
+ FROM openjdk:21 -slim
3
3
EXPOSE 8080
4
4
ADD target/*.jar /app.jar
5
5
ENTRYPOINT java $JAVA_OPTS -jar /app.jar
Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ pom.xml
55
55
56
56
``` java
57
57
@SpringBootApplication
58
- @ComponentScan(basePackages = {"me.jittagornp"})
59
58
public class AppStarter {
60
59
61
60
public static void main(String[] args) {
Original file line number Diff line number Diff line change 5
5
6
6
import org.springframework.boot.SpringApplication;
7
7
import org.springframework.boot.autoconfigure.SpringBootApplication;
8
- import org.springframework.context.annotation.ComponentScan;
9
8
10
9
/**
11
10
* @author jitta
12
11
*/
13
12
@SpringBootApplication
14
- @ComponentScan(basePackages = {"me.jittagornp"})
15
13
public class AppStarter {
16
14
17
15
public static void main(String[] args) {
Original file line number Diff line number Diff line change 5
5
6
6
import org.springframework.boot.SpringApplication;
7
7
import org.springframework.boot.autoconfigure.SpringBootApplication;
8
- import org.springframework.context.annotation.ComponentScan;
9
8
10
9
/**
11
10
* @author jitta
You can’t perform that action at this time.
0 commit comments