From e5cbbbded1549fb2f3da5021ccedc76a90abddaa Mon Sep 17 00:00:00 2001 From: Kazuki Shimizu Date: Sun, 16 Dec 2018 11:12:59 +0900 Subject: [PATCH] Without mybatis-config.xml --- src/main/resources/application.properties | 6 ++++- src/main/resources/mybatis-config.xml | 27 ----------------------- 2 files changed, 5 insertions(+), 28 deletions(-) delete mode 100644 src/main/resources/mybatis-config.xml diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 245b6db..8fea8af 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -2,7 +2,11 @@ spring.jackson.deserialization.UNWRAP_ROOT_VALUE=true image.default=https://static.productionready.io/images/smiley-cyrus.jpg jwt.secret=nRvyYC4soFxBdZ-F-5Nnzz5USXstR1YylsTd-mA0aKtI9HUlriGrtkf-TiuDapkLiUCogO3JOK7kwZisrHp6wA jwt.sessionTime=86400 -mybatis.config-location=classpath:mybatis-config.xml +mybatis.configuration.cache-enabled=true +mybatis.configuration.default-statement-timeout=3000 +mybatis.configuration.map-underscore-to-camel-case=true +mybatis.configuration.use-generated-keys=true +mybatis.type-handlers-package=io.spring.infrastructure.mybatis mybatis.mapper-locations=mapper/*.xml logging.level.io.spring.infrastructure.mybatis.readservice.ArticleReadService=DEBUG # Uncomment the following line to enable and allow access to the h2-console diff --git a/src/main/resources/mybatis-config.xml b/src/main/resources/mybatis-config.xml deleted file mode 100644 index ac8a12d..0000000 --- a/src/main/resources/mybatis-config.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - -