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 5757import org .seasar .doma .jdbc .statistic .DefaultStatisticManager ;
5858import org .seasar .doma .jdbc .statistic .StatisticManager ;
5959import org .seasar .doma .message .Message ;
60+ import org .seasar .doma .slf4j .Slf4jJdbcLogger ;
6061import org .springframework .beans .factory .BeanCreationException ;
6162import org .springframework .beans .factory .NoSuchBeanDefinitionException ;
6263import org .springframework .boot .autoconfigure .jdbc .DataSourceAutoConfiguration ;
@@ -96,7 +97,7 @@ public void testAutoRegisteredConfig() {
9697 assertThat (config .getSqlFileRepository (),
9798 is (instanceOf (GreedyCacheSqlFileRepository .class )));
9899 assertThat (config .getNaming (), is (Naming .DEFAULT ));
99- assertThat (config .getJdbcLogger (), is (instanceOf (UtilLoggingJdbcLogger .class )));
100+ assertThat (config .getJdbcLogger (), is (instanceOf (Slf4jJdbcLogger .class )));
100101 assertThat (config .getEntityListenerProvider (), is (notNullValue ()));
101102 assertThat (config .getDuplicateColumnHandler (),
102103 is (ConfigSupport .defaultDuplicateColumnHandler ));
You can’t perform that action at this time.
0 commit comments