Skip to content

Commit c4b18f0

Browse files
committed
fix sample logging issue
1 parent 3748224 commit c4b18f0

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

samples/spring-boot-plain/pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,19 @@
2626
<artifactId>operator-framework-samples-common</artifactId>
2727
<version>${project.version}</version>
2828
</dependency>
29+
<dependency>
30+
<groupId>org.springframework.boot</groupId>
31+
<artifactId>spring-boot-starter-log4j2</artifactId>
32+
</dependency>
2933
<dependency>
3034
<groupId>org.springframework.boot</groupId>
3135
<artifactId>spring-boot-starter</artifactId>
36+
<exclusions>
37+
<exclusion>
38+
<groupId>org.springframework.boot</groupId>
39+
<artifactId>spring-boot-starter-logging</artifactId>
40+
</exclusion>
41+
</exclusions>
3242
</dependency>
3343
<dependency>
3444
<groupId>org.springframework.boot</groupId>

samples/spring-boot-plain/src/main/java/com/github/containersolutions/operator/sample/SpringBootStarterSampleApplication.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
import org.springframework.boot.SpringApplication;
44
import org.springframework.boot.autoconfigure.SpringBootApplication;
55

6-
/**
7-
* Note that we have multiple options here either we can add this component scan as seen below. Or annotate controllers
8-
* with @Component or @Service annotation or just register the bean within a spring "@Configuration".
9-
*/
106
@SpringBootApplication
117
public class SpringBootStarterSampleApplication {
128

0 commit comments

Comments
 (0)