Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
ServerModel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
kiritoausna
ServerModel
Commits
3c3d6ce5
Commit
3c3d6ce5
authored
Nov 14, 2024
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024.11.14 启用mybatis.config
parent
be822bc3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
application.yml
gemho-admin/src/main/resources/application.yml
+1
-0
mybatis-config.xml
gemho-admin/src/main/resources/mybatis/mybatis-config.xml
+1
-1
No files found.
gemho-admin/src/main/resources/application.yml
View file @
3c3d6ce5
...
@@ -93,6 +93,7 @@ mybatis-plus:
...
@@ -93,6 +93,7 @@ mybatis-plus:
configuration
:
configuration
:
map-underscore-to-camel-case
:
true
map-underscore-to-camel-case
:
true
log-impl
:
org.apache.ibatis.logging.nologging.NoLoggingImpl
log-impl
:
org.apache.ibatis.logging.nologging.NoLoggingImpl
config-location
:
classpath:mybatis-config.xml
# PageHelper分页插件
# PageHelper分页插件
pagehelper
:
pagehelper
:
...
...
gemho-admin/src/main/resources/mybatis/mybatis-config.xml
View file @
3c3d6ce5
...
@@ -12,7 +12,7 @@ PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
...
@@ -12,7 +12,7 @@ PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
<!-- 配置默认的执行器.SIMPLE就是普通执行器;REUSE执行器会重用预处理语句(prepared statements);BATCH执行器将重用语句并执行批量更新 -->
<!-- 配置默认的执行器.SIMPLE就是普通执行器;REUSE执行器会重用预处理语句(prepared statements);BATCH执行器将重用语句并执行批量更新 -->
<setting
name=
"defaultExecutorType"
value=
"SIMPLE"
/>
<setting
name=
"defaultExecutorType"
value=
"SIMPLE"
/>
<!-- 指定 MyBatis 所用日志的具体实现 -->
<!-- 指定 MyBatis 所用日志的具体实现 -->
<setting
name=
"logImpl"
value=
"SLF4J"
/
>
<!-- <setting name="logImpl" value="SLF4J" />--
>
<!-- 使用驼峰命名法转换字段 -->
<!-- 使用驼峰命名法转换字段 -->
<!-- <setting name="mapUnderscoreToCamelCase" value="true"/> -->
<!-- <setting name="mapUnderscoreToCamelCase" value="true"/> -->
</settings>
</settings>
...
...
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