Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mybatis-generator-plugin
Project overview
Project overview
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
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
Administrator
mybatis-generator-plugin
Commits
076cabbc
Unverified
Commit
076cabbc
authored
Sep 11, 2018
by
何伟
Committed by
GitHub
Sep 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gradle集成
parent
85aa0d0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
0 deletions
+54
-0
README.md
README.md
+54
-0
No files found.
README.md
View file @
076cabbc
...
@@ -65,6 +65,60 @@ MyBatis Generator 参考配置(插件依赖应该配置在mybatis-generator-ma
...
@@ -65,6 +65,60 @@ MyBatis Generator 参考配置(插件依赖应该配置在mybatis-generator-ma
</plugin>
</plugin>
```
```
---------------------------------------
---------------------------------------
gradle集成
[
[issues#41
]
](https://github.com/itfsw/mybatis-generator-plugin/issues/41)),感谢
[
masa-kunikata
](
https://github.com/masa-kunikata
)
提供的脚本。
```
gradle
// https://gist.github.com/masa-kunikata/daaf0f51a8ab9b808f61805407e1654c
buildscript
{
repositories
{
maven
{
url
"https://plugins.gradle.org/m2/"
}
}
dependencies
{
classpath
"gradle.plugin.com.arenagod.gradle:mybatis-generator-plugin:1.4"
}
}
apply
plugin:
'java-library'
apply
plugin:
"com.arenagod.gradle.MybatisGenerator"
apply
plugin:
'eclipse'
sourceCompatibility
=
1.8
targetCompatibility
=
1.8
def
mybatisGeneratorCore
=
'org.mybatis.generator:mybatis-generator-core:1.3.7'
def
itfswMybatisGeneratorPlugin
=
'com.itfsw:mybatis-generator-plugin:1.2.10'
mybatisGenerator
{
verbose
=
false
configFile
=
"config/mybatisGenerator/generatorConfig.xml"
dependencies
{
mybatisGenerator
project
(
':'
)
mybatisGenerator
itfswMybatisGeneratorPlugin
mybatisGenerator
mybatisGeneratorCore
}
}
repositories
{
mavenCentral
()
}
dependencies
{
compile
mybatisGeneratorCore
compile
itfswMybatisGeneratorPlugin
testCompile
'junit:junit:4.12'
}
def
defaultEncoding
=
'UTF-8'
compileJava
{
options
.
encoding
=
defaultEncoding
}
compileTestJava
{
options
.
encoding
=
defaultEncoding
}
```
---------------------------------------
### 1. 查询单条数据插件
### 1. 查询单条数据插件
对应表Mapper接口增加了方法
对应表Mapper接口增加了方法
插件:
插件:
...
...
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