Skip to content

Commit 53abd55

Browse files
committed
remove import JavaConfig of DBFlute because of unnecessary
1 parent 17b99a8 commit 53abd55

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

demo-dbflute/README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,9 @@ demo-dbflute
5858
|-...
5959
```
6060

61-
How to collaborate with DBFlute classes in Spring Framework
61+
How to show SQL logs as DEBUG
6262

63-
1. import the auto-generated DBFluteBeansJavaConfig class at the application class
64-
```
65-
@SpringBootApplication
66-
@Import(DBFluteBeansJavaConfig.class) // *here
67-
public class DemoDBFluteApplication {
68-
```
69-
2. add a logging level setting for 'org.dbflute' to the application.properties to show SQL logs as DEBUG
63+
add a logging level setting for 'org.dbflute' to the application.properties
7064
```
7165
logging.level.org.dbflute=DEBUG
7266
```

demo-dbflute/src/main/java/com/example/DemoDBFluteApplication.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,14 @@
1010
import org.springframework.boot.SpringApplication;
1111
import org.springframework.boot.autoconfigure.SpringBootApplication;
1212
import org.springframework.context.annotation.Bean;
13-
import org.springframework.context.annotation.Import;
1413

15-
import com.example.dbflute.allcommon.DBFluteBeansJavaConfig;
1614
import com.example.model.Base;
1715
import com.example.model.Pizza;
1816
import com.example.model.Topping;
1917

2018
import bitronix.tm.BitronixTransactionSynchronizationRegistry;
2119

2220
@SpringBootApplication
23-
@Import(DBFluteBeansJavaConfig.class) // #dbflute
2421
public class DemoDBFluteApplication {
2522

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

0 commit comments

Comments
 (0)