Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
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
youjj
cloud-platform
Commits
cf434bec
Commit
cf434bec
authored
May 10, 2019
by
youjj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
48455732
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
21 additions
and
21 deletions
+21
-21
LICENSE
LICENSE
+6
-6
LICENSE
ace-control/ace-nacos/nacos/LICENSE
+6
-6
GeneratorUtils.java
...thub/wxiaoqi/security/generator/utils/GeneratorUtils.java
+2
-2
application.yml
ace-modules/ace-generator/src/main/resources/application.yml
+2
-2
biz.java.vm
...les/ace-generator/src/main/resources/template/biz.java.vm
+1
-1
controller.java.vm
...-generator/src/main/resources/template/controller.java.vm
+1
-1
entity.java.vm
.../ace-generator/src/main/resources/template/entity.java.vm
+1
-1
mapper.java.vm
.../ace-generator/src/main/resources/template/mapper.java.vm
+1
-1
mapper.xml.vm
...s/ace-generator/src/main/resources/template/mapper.xml.vm
+1
-1
No files found.
LICENSE
View file @
cf434bec
...
...
@@ -9,15 +9,15 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
"License" shall mean the terms and conditions for use, reproduction, and
distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or
com.xxfc.member.
entity authorized by the copyright
"Licensor" shall mean the copyright owner or entity authorized by the copyright
owner that is granting the License.
"Legal Entity" shall mean the union of the acting
com.xxfc.member.
entity and all other entities
that control, are controlled by, or are under common control with that
com.xxfc.member.
entity.
"Legal Entity" shall mean the union of the acting entity and all other entities
that control, are controlled by, or are under common control with that entity.
For the purposes of this definition, "control" means (i) the power, direct or
indirect, to cause the direction or management of such
com.xxfc.member.
entity, whether by
indirect, to cause the direction or management of such entity, whether by
contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such
com.xxfc.member.
entity.
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising
permissions granted by this License.
...
...
@@ -75,7 +75,7 @@ made, use, offer to sell, sell, import, and otherwise transfer the Work, where
such license applies only to those patent claims licensable by such Contributor
that are necessarily infringed by their Contribution(s) alone or by combination
of their Contribution(s) with the Work to which such Contribution(s) was
submitted. If You institute patent litigation against any
com.xxfc.member.
entity (including a
submitted. If You institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work or a
Contribution incorporated within the Work constitutes direct or contributory
patent infringement, then any patent licenses granted to You under this License
...
...
ace-control/ace-nacos/nacos/LICENSE
View file @
cf434bec
...
...
@@ -9,16 +9,16 @@
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or
com.xxfc.member.
entity authorized by
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting
com.xxfc.member.
entity and all
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that
com.xxfc.member.
entity. For the purposes of this definition,
control with that entity. For the purposes of this definition,
"control" means (properties) the power, direct or indirect, to cause the
direction or management of such
com.xxfc.member.
entity, whether by contract or
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such
com.xxfc.member.
entity.
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
...
...
@@ -79,7 +79,7 @@
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any
com.xxfc.member.
entity (including a
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
...
...
ace-modules/ace-generator/src/main/java/com/github/wxiaoqi/security/generator/utils/GeneratorUtils.java
View file @
cf434bec
...
...
@@ -184,8 +184,8 @@ public class GeneratorUtils {
if
(
template
.
contains
(
"mapper.java.vm"
))
{
return
packagePath
+
"mapper"
+
File
.
separator
+
className
+
"Mapper.java"
;
}
if
(
template
.
contains
(
"
com.xxfc.member.
entity.java.vm"
))
{
return
packagePath
+
"
com.xxfc.member.
entity"
+
File
.
separator
+
className
+
".java"
;
if
(
template
.
contains
(
"entity.java.vm"
))
{
return
packagePath
+
"entity"
+
File
.
separator
+
className
+
".java"
;
}
if
(
template
.
contains
(
"controller.java.vm"
))
{
return
packagePath
+
"rest"
+
File
.
separator
+
className
+
"Controller.java"
;
...
...
ace-modules/ace-generator/src/main/resources/application.yml
View file @
cf434bec
...
...
@@ -10,9 +10,9 @@ spring:
datasource
:
type
:
com.alibaba.druid.pool.DruidDataSource
driverClassName
:
com.mysql.jdbc.Driver
url
:
jdbc:mysql://localhost:3306/
ag_auth
?useUnicode=true&characterEncoding=UTF-8
url
:
jdbc:mysql://localhost:3306/
world
?useUnicode=true&characterEncoding=UTF-8
username
:
root
password
:
123456
password
:
xx2019fc
jackson
:
time-zone
:
GMT+8
date-format
:
yyyy-MM-dd HH:mm:ss
...
...
ace-modules/ace-generator/src/main/resources/template/biz.java.vm
View file @
cf434bec
...
...
@@ -2,7 +2,7 @@ package ${package}.biz;
import
org
.
springframework
.
stereotype
.
Service
;
import
${
package
}.
com
.
xxfc
.
member
.
entity
.${
className
};
import
${
package
}.
entity
.${
className
};
import
${
package
}.
mapper
.${
className
}
Mapper
;
import
com
.
github
.
wxiaoqi
.
security
.
common
.
biz
.
BaseBiz
;
...
...
ace-modules/ace-generator/src/main/resources/template/controller.java.vm
View file @
cf434bec
...
...
@@ -2,7 +2,7 @@ package ${package}.rest;
import
com
.
github
.
wxiaoqi
.
security
.
common
.
rest
.
BaseController
;
import
${
package
}.
biz
.${
className
}
Biz
;
import
${
package
}.
com
.
xxfc
.
member
.
entity
.${
className
};
import
${
package
}.
entity
.${
className
};
import
org
.
springframework
.
stereotype
.
Controller
;
import
org
.
springframework
.
web
.
bind
.
annotation
.
RequestMapping
;
...
...
ace-modules/ace-generator/src/main/resources/template/entity.java.vm
View file @
cf434bec
package
${
package
}.
com
.
xxfc
.
member
.
entity
;
package
${
package
}.
entity
;
import
java
.
io
.
Serializable
;
import
java
.
util
.
Date
;
...
...
ace-modules/ace-generator/src/main/resources/template/mapper.java.vm
View file @
cf434bec
package
${
package
}.
mapper
;
import
${
package
}.
com
.
xxfc
.
member
.
entity
.${
className
};
import
${
package
}.
entity
.${
className
};
import
tk
.
mybatis
.
mapper
.
common
.
Mapper
;
/**
...
...
ace-modules/ace-generator/src/main/resources/template/mapper.xml.vm
View file @
cf434bec
...
...
@@ -4,7 +4,7 @@
<mapper
namespace=
"${package}.mapper.${className}Mapper"
>
<!-- 可根据自己的需求,是否要使用 -->
<resultMap
type=
"${package}.
com.xxfc.member.
entity.${className}"
id=
"${classname}Map"
>
<resultMap
type=
"${package}.entity.${className}"
id=
"${classname}Map"
>
#foreach($column in $columns)
<result
property=
"${column.attrname}"
column=
"${column.columnName}"
/>
#end
...
...
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