Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fgqyxxlr
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yaru
fgqyxxlr
Commits
c7880248
Commit
c7880248
authored
May 24, 2019
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通用mybatis-config移入admin模块
parent
14c27855
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
ruoyi-admin/src/main/resources/application.yml
+1
-1
ruoyi-admin/src/main/resources/mybatis/mybatis-config.xml
+15
-15
No files found.
ruoyi-admin/src/main/resources/application.yml
View file @
c7880248
...
...
@@ -75,7 +75,7 @@ mybatis:
# 配置mapper的扫描,找到所有的mapper.xml映射文件
mapperLocations
:
classpath*:mapper/**/*Mapper.xml
# 加载全局的配置文件
configLocation
:
classpath:m
apper
/mybatis-config.xml
configLocation
:
classpath:m
ybatis
/mybatis-config.xml
# PageHelper分页插件
pagehelper
:
...
...
ruoyi-
system/src/main/resources/mapper
/mybatis-config.xml
→
ruoyi-
admin/src/main/resources/mybatis
/mybatis-config.xml
View file @
c7880248
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE configuration
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
<settings>
<setting
name=
"cacheEnabled"
value=
"true"
/>
<!-- 全局映射器启用缓存 -->
<setting
name=
"useGeneratedKeys"
value=
"true"
/>
<!-- 允许 JDBC 支持自动生成主键 -->
<setting
name=
"defaultExecutorType"
value=
"REUSE"
/>
<!-- 配置默认的执行器 -->
<setting
name=
"logImpl"
value=
"SLF4J"
/>
<!-- 指定 MyBatis 所用日志的具体实现 -->
<!-- <setting name="mapUnderscoreToCamelCase" value="true"/> 驼峰式命名 -->
</settings>
</configuration>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE configuration
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
<settings>
<setting
name=
"cacheEnabled"
value=
"true"
/>
<!-- 全局映射器启用缓存 -->
<setting
name=
"useGeneratedKeys"
value=
"true"
/>
<!-- 允许 JDBC 支持自动生成主键 -->
<setting
name=
"defaultExecutorType"
value=
"REUSE"
/>
<!-- 配置默认的执行器 -->
<setting
name=
"logImpl"
value=
"SLF4J"
/>
<!-- 指定 MyBatis 所用日志的具体实现 -->
<!-- <setting name="mapUnderscoreToCamelCase" value="true"/> 驼峰式命名 -->
</settings>
</configuration>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment