File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed
src/main/java/com/example Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff 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```
7165logging.level.org.dbflute=DEBUG
7266```
Original file line number Diff line number Diff line change 1010import org .springframework .boot .SpringApplication ;
1111import org .springframework .boot .autoconfigure .SpringBootApplication ;
1212import org .springframework .context .annotation .Bean ;
13- import org .springframework .context .annotation .Import ;
1413
15- import com .example .dbflute .allcommon .DBFluteBeansJavaConfig ;
1614import com .example .model .Base ;
1715import com .example .model .Pizza ;
1816import com .example .model .Topping ;
1917
2018import bitronix .tm .BitronixTransactionSynchronizationRegistry ;
2119
2220@ SpringBootApplication
23- @ Import (DBFluteBeansJavaConfig .class ) // #dbflute
2421public class DemoDBFluteApplication {
2522
2623 public static void main (String [] args ) {
You can’t perform that action at this time.
0 commit comments