Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
Mybatis Demo
Project
Project
Details
Activity
Releases
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
study-java
Mybatis Demo
Commits
8c6a6fce
Commit
8c6a6fce
authored
Nov 23, 2020
by
宋欢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改mybatis配置
parent
e74efbd7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
10 deletions
+2
-10
Java培训-Mybatis.pptx
Java培训-Mybatis.pptx
+0
-0
MyBatis课件.txt
MyBatis课件.txt
+0
-9
mybatis.xml
demo-web/src/main/resources/mybatis.xml
+2
-1
No files found.
Java培训-Mybatis.pptx
0 → 100644
View file @
8c6a6fce
File added
MyBatis课件.txt
deleted
100644 → 0
View file @
e74efbd7
MySQL的操作,离不开Laravel-DB和Model,简单一句话,DB::table('user')->where('id', 1)->first();
Java也有类似Laravel-DB的ORM框架,之前流行Hibernate,现在我们用MyBatis
配置
demo-web/src/main/resources/mybatis.xml
View file @
8c6a6fce
...
...
@@ -38,9 +38,10 @@
<setting
name=
"jdbcTypeForNull"
value=
"NULL"
/>
<!-- 打印SQL日志 -->
<
!-- <setting name="logImpl" value="STDOUT_LOGGING"/>--
>
<
setting
name=
"logImpl"
value=
"STDOUT_LOGGING"
/
>
</settings>
<!-- 拦截器配置 -->
<plugins>
<plugin
interceptor=
"cn.qmai.study.java.demo.biz.interceptor.ExecutorInterceptor"
>
<property
name=
"databaseType"
value=
"mysql"
/>
...
...
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