File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
doma-spring-boot-autoconfigure
main/java/org/seasar/doma/boot/autoconfigure
test/java/org/seasar/doma/boot/autoconfigure Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 2626 <groupId >org.seasar.doma</groupId >
2727 <artifactId >doma-slf4j</artifactId >
2828 <version >${doma.version} </version >
29- <optional >true</optional >
3029 </dependency >
3130 <dependency >
3231 <groupId >org.springframework</groupId >
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ public class DomaProperties {
7575 /**
7676 * Type of {@link JdbcLogger}.
7777 */
78- private JdbcLoggerType jdbcLogger = JdbcLoggerType .JUL ;
78+ private JdbcLoggerType jdbcLogger = JdbcLoggerType .SLF4J ;
7979
8080 /**
8181 * Limit for the maximum number of rows. Ignored unless this value is greater than 0.
Original file line number Diff line number Diff line change 5656import org .seasar .doma .jdbc .statistic .DefaultStatisticManager ;
5757import org .seasar .doma .jdbc .statistic .StatisticManager ;
5858import org .seasar .doma .message .Message ;
59+ import org .seasar .doma .slf4j .Slf4jJdbcLogger ;
5960import org .springframework .beans .factory .NoSuchBeanDefinitionException ;
6061import org .springframework .boot .autoconfigure .jdbc .DataSourceAutoConfiguration ;
6162import org .springframework .context .ConfigurableApplicationContext ;
@@ -92,7 +93,7 @@ public void testAutoRegisteredConfig() {
9293 assertThat (config .getSqlFileRepository (),
9394 is (instanceOf (GreedyCacheSqlFileRepository .class )));
9495 assertThat (config .getNaming (), is (Naming .DEFAULT ));
95- assertThat (config .getJdbcLogger (), is (instanceOf (UtilLoggingJdbcLogger .class )));
96+ assertThat (config .getJdbcLogger (), is (instanceOf (Slf4jJdbcLogger .class )));
9697 assertThat (config .getEntityListenerProvider (), is (notNullValue ()));
9798 assertThat (config .getDuplicateColumnHandler (),
9899 is (ConfigSupport .defaultDuplicateColumnHandler ));
You can’t perform that action at this time.
0 commit comments