init
This commit is contained in:
24
template/.gitignore
vendored
Normal file
24
template/.gitignore
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
bin/
|
||||
classes/
|
||||
|
||||
|
||||
.settings/
|
||||
.classpath
|
||||
.project
|
||||
|
||||
*.iml
|
||||
.idea/
|
||||
HELP.md
|
||||
!.idea/dataSources.xml
|
||||
|
||||
.vscode/
|
||||
.factorypath
|
||||
|
||||
target/
|
||||
test-output/
|
||||
mvnw
|
||||
mvnw.cmd
|
||||
|
||||
.DS_Store
|
||||
logs/
|
||||
*.log
|
||||
8
template/.gitlab-ci.yml
Normal file
8
template/.gitlab-ci.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
include:
|
||||
- project: 'internal/gitlab-ci-template'
|
||||
ref: master
|
||||
file: '/vs-server-generate-module-ci.yml'
|
||||
|
||||
variables:
|
||||
# MODULE_ALTNAME:
|
||||
TRIGGER_PATH: vs-server-generate/hande-test/hande-test-server
|
||||
5
template/common/README.md
Normal file
5
template/common/README.md
Normal file
@@ -0,0 +1,5 @@
|
||||
> 本模块存放公共组件
|
||||
``` \-- *.utils(工具类; package)
|
||||
\-- *.enums(公共枚举; package)
|
||||
\-- *.constants(公共常量; package)
|
||||
```
|
||||
21
template/common/pom.xml
Normal file
21
template/common/pom.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}</artifactId>
|
||||
<version>{{ .version }}</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>{{ .artifactId }}-common</artifactId>
|
||||
<version>{{ .version }}</version>
|
||||
|
||||
<properties>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
||||
|
||||
</dependencies>
|
||||
</project>
|
||||
@@ -0,0 +1,2 @@
|
||||
> 本模块存放公共常量
|
||||
``` \-- *Constant.java
|
||||
@@ -0,0 +1,2 @@
|
||||
> 本模块存放公共枚举
|
||||
``` \-- *Enum.java
|
||||
@@ -0,0 +1,3 @@
|
||||
> 本模块存放公共工具类
|
||||
``` \-- *Util.java
|
||||
```
|
||||
1
template/common/src/main/resources/README.md
Normal file
1
template/common/src/main/resources/README.md
Normal file
@@ -0,0 +1 @@
|
||||
> 本模块存放SQL
|
||||
26
template/entrance/README.md
Normal file
26
template/entrance/README.md
Normal file
@@ -0,0 +1,26 @@
|
||||
本模块为 ```访问入口层```
|
||||
|
||||
```
|
||||
\-- web(web访问; sub-module)
|
||||
\-- *.controller(package)
|
||||
\-- *.converter(package)
|
||||
\-- *.vo(显示层对象; package)
|
||||
\-- *.utils(工具类; package)
|
||||
\-- job(任务; sub-module)
|
||||
\-- *.job(job定义,以Job为后缀; package)
|
||||
\-- *.dto(数据结构; package)
|
||||
\-- *.converter(package)
|
||||
\-- *.utils(工具类; package)
|
||||
\-- mq(消息消费处理; sub-module)
|
||||
\-- *.consumer(package)
|
||||
\-- *.dto(数据结构; package)
|
||||
\-- *.converter(package)
|
||||
\-- *.utils(工具类; package)
|
||||
\-- rpc(对外提供rpc; sub-module)
|
||||
\-- *.RpcService(package)
|
||||
\-- *.dto(数据结构; package)
|
||||
\-- *.converter(package)
|
||||
\-- *.utils(工具类; package)
|
||||
```
|
||||
|
||||
|
||||
13
template/entrance/job/pom.xml
Normal file
13
template/entrance/job/pom.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}-entrance</artifactId>
|
||||
<version>{{ .version }}</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>{{ .artifactId }}-entrance-job</artifactId>
|
||||
|
||||
</project>
|
||||
@@ -0,0 +1,4 @@
|
||||
存放dtoConverter
|
||||
```
|
||||
\-- *Converter.java
|
||||
```
|
||||
@@ -0,0 +1,4 @@
|
||||
存放dto
|
||||
```
|
||||
\-- *DTO.java
|
||||
```
|
||||
@@ -0,0 +1,4 @@
|
||||
存放job file
|
||||
```
|
||||
\-- *Job.java
|
||||
```
|
||||
@@ -0,0 +1,4 @@
|
||||
存放工具类
|
||||
```
|
||||
\-- *Util.java
|
||||
```
|
||||
19
template/entrance/mq/pom.xml
Normal file
19
template/entrance/mq/pom.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}-entrance</artifactId>
|
||||
<version>{{ .version }}</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>{{ .artifactId }}-entrance-mq</artifactId>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}-service</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
@@ -0,0 +1,4 @@
|
||||
存放消息消费者
|
||||
```
|
||||
\-- *Consumer.java
|
||||
```
|
||||
@@ -0,0 +1,4 @@
|
||||
存放DTOConverter
|
||||
```
|
||||
\-- *Converter.java
|
||||
```
|
||||
@@ -0,0 +1,4 @@
|
||||
存放DTO
|
||||
```
|
||||
\-- *DTO.java
|
||||
```
|
||||
@@ -0,0 +1,4 @@
|
||||
存放工具类
|
||||
```
|
||||
\-- *Util.java
|
||||
```
|
||||
24
template/entrance/pom.xml
Normal file
24
template/entrance/pom.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}</artifactId>
|
||||
<version>{{ .version }}</version>
|
||||
</parent>
|
||||
<artifactId>{{ .artifactId }}-entrance</artifactId>
|
||||
<version>{{ .version }}</version>
|
||||
<packaging>pom</packaging>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}-common</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<modules>
|
||||
<module>job</module>
|
||||
<module>mq</module>
|
||||
<module>web</module>
|
||||
<module>rpc</module>
|
||||
</modules>
|
||||
</project>
|
||||
20
template/entrance/rpc/pom.xml
Normal file
20
template/entrance/rpc/pom.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}-entrance</artifactId>
|
||||
<version>{{ .version }}</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>{{ .artifactId }}-entrance-rpc</artifactId>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}-service</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
@@ -0,0 +1,4 @@
|
||||
存放DTOConverter
|
||||
```
|
||||
\-- *Converter.java
|
||||
```
|
||||
@@ -0,0 +1,4 @@
|
||||
存放DTO
|
||||
```
|
||||
\-- *DTO.java
|
||||
```
|
||||
@@ -0,0 +1,4 @@
|
||||
存放工具类
|
||||
```
|
||||
\-- *Util.java
|
||||
```
|
||||
22
template/entrance/web/pom.xml
Normal file
22
template/entrance/web/pom.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}-entrance</artifactId>
|
||||
<version>{{ .version }}</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>{{ .artifactId }}-entrance-web</artifactId>
|
||||
<version>{{ .version }}</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}-service</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
@@ -0,0 +1,4 @@
|
||||
存放Controller
|
||||
```
|
||||
\-- *Controller.java
|
||||
```
|
||||
@@ -0,0 +1,4 @@
|
||||
存放VOConverter
|
||||
```
|
||||
\-- *VOConverter.java
|
||||
```
|
||||
@@ -0,0 +1,4 @@
|
||||
存放工具类
|
||||
```
|
||||
\-- *Util.java
|
||||
```
|
||||
@@ -0,0 +1,4 @@
|
||||
存放VO
|
||||
```
|
||||
\-- *VO.java
|
||||
```
|
||||
9
template/manager/README.md
Normal file
9
template/manager/README.md
Normal file
@@ -0,0 +1,9 @@
|
||||
本模块为 ```通用业务逻辑层```
|
||||
|
||||
```
|
||||
\-- *.mananger(通用业务逻辑层接口定义,以Manager为后缀; package) \-- *.impl(通用业务逻辑层接口实现,以ManagerImpl为后缀; package)
|
||||
\-- *.dto(业务层数据结构; package)
|
||||
\-- *.converter(package)
|
||||
\-- *.facade(remote stub(调用外部rpc); package)
|
||||
\-- *.utils(工具类; package)
|
||||
```
|
||||
24
template/manager/pom.xml
Normal file
24
template/manager/pom.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}</artifactId>
|
||||
<version>{{ .version }}</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>{{ .artifactId }}-manager</artifactId>
|
||||
<version>{{ .version }}</version>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}-persist</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}-common</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
@@ -0,0 +1,4 @@
|
||||
存放DTOConverter
|
||||
```
|
||||
\-- *DTOConverter.java
|
||||
```
|
||||
@@ -0,0 +1,4 @@
|
||||
存放DTO
|
||||
```
|
||||
\-- *DTO.java
|
||||
```
|
||||
@@ -0,0 +1,4 @@
|
||||
存放RpcServiceAdapter
|
||||
```
|
||||
\-- *RpcServiceAdapter.java
|
||||
```
|
||||
@@ -0,0 +1,4 @@
|
||||
存放ManagerImpl
|
||||
```
|
||||
\-- *ManagerImpl.java
|
||||
```
|
||||
@@ -0,0 +1,4 @@
|
||||
存放BaseManagerImpl
|
||||
```
|
||||
\-- *BaseManagerImpl.java
|
||||
```
|
||||
@@ -0,0 +1,4 @@
|
||||
存放工具类
|
||||
```
|
||||
\-- *Util.java
|
||||
```
|
||||
40
template/manager/src/main/resources/hibernate.cfg.xml
Normal file
40
template/manager/src/main/resources/hibernate.cfg.xml
Normal file
@@ -0,0 +1,40 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<!--
|
||||
~ Hibernate, Relational Persistence for Idiomatic Java
|
||||
~
|
||||
~ License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
~ See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
-->
|
||||
<!DOCTYPE hibernate-configuration PUBLIC
|
||||
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
|
||||
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
|
||||
|
||||
<hibernate-configuration>
|
||||
|
||||
<session-factory>
|
||||
|
||||
<!-- Database connection settings -->
|
||||
<property name="connection.driver_class">com.mysql.cj.jdbc.Driver</property>
|
||||
<property name="connection.url">jdbc:mysql://localhost:3306/test</property>
|
||||
<property name="connection.username">root</property>
|
||||
<property name="connection.password">xi@2343JED$</property>
|
||||
|
||||
<!-- JDBC connection pool (use the built-in) -->
|
||||
<property name="connection.pool_size">10</property>
|
||||
|
||||
<!-- SQL dialect -->
|
||||
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
|
||||
|
||||
<!-- Disable the second-level cache
|
||||
<property name="cache.provider_class">org.hibernate.cache.internal.NoCacheProvider</property>
|
||||
-->
|
||||
|
||||
<!-- Echo all executed SQL to stdout -->
|
||||
<property name="show_sql">true</property>
|
||||
|
||||
<!-- Drop and re-create the database schema on startup
|
||||
<property name="hbm2ddl.auto">create</property>
|
||||
-->
|
||||
</session-factory>
|
||||
|
||||
</hibernate-configuration>
|
||||
5
template/module
Normal file
5
template/module
Normal file
@@ -0,0 +1,5 @@
|
||||
id={{ .moduleId }}
|
||||
name={{ .moduleName | replace "-" "_" }}
|
||||
projectId={{ .projectId }}
|
||||
projectName={{ .projectName }}
|
||||
applicationName={{ .applicationName }}
|
||||
2
template/persist/README.md
Normal file
2
template/persist/README.md
Normal file
@@ -0,0 +1,2 @@
|
||||
## 本模块是 ```存储层 ```
|
||||
> 对manager和service层可见
|
||||
32
template/persist/pom.xml
Normal file
32
template/persist/pom.xml
Normal file
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}</artifactId>
|
||||
<version>{{ .version }}</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>{{ .artifactId }}-persist</artifactId>
|
||||
<version>{{ .version }}</version>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}-common</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.toco</groupId>
|
||||
<artifactId>toco-all</artifactId>
|
||||
<type>pom</type>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>com.vs</groupId>-->
|
||||
<!-- <artifactId>vs.common.util</artifactId>-->
|
||||
<!-- <version>1.2.2</version>-->
|
||||
<!-- </dependency>-->
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
@@ -0,0 +1,4 @@
|
||||
存放SqlProvider
|
||||
```
|
||||
\-- *SqlProvider.java
|
||||
```
|
||||
@@ -0,0 +1,4 @@
|
||||
存放meta
|
||||
```
|
||||
\-- *.java
|
||||
```
|
||||
@@ -0,0 +1,4 @@
|
||||
存放Mapper
|
||||
```
|
||||
\-- *Mapper.java
|
||||
```
|
||||
@@ -0,0 +1,4 @@
|
||||
存放BaseMapper
|
||||
```
|
||||
\-- Base*Mapper.java
|
||||
```
|
||||
@@ -0,0 +1,4 @@
|
||||
存放工具类
|
||||
```
|
||||
\-- *Util.java
|
||||
```
|
||||
@@ -0,0 +1 @@
|
||||
> 本模块存放SQL
|
||||
140
template/pom.xml
Normal file
140
template/pom.xml
Normal file
@@ -0,0 +1,140 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}</artifactId>
|
||||
<version>{{ .version }}</version>
|
||||
<packaging>pom</packaging>
|
||||
<parent>
|
||||
<groupId>com.toco</groupId>
|
||||
<artifactId>toco-parent</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<maven.compiler.source>11</maven.compiler.source>
|
||||
<maven.compiler.target>11</maven.compiler.target>
|
||||
<junit.version>4.11</junit.version>
|
||||
<vs.common.util.version>1.2.2</vs.common.util.version>
|
||||
<vs.common.version>1.2.0</vs.common.version>
|
||||
<ox.sprintboot.web.starter.version>1.0-SNAPSHOT</ox.sprintboot.web.starter.version>
|
||||
<lombok.version>1.18.20</lombok.version>
|
||||
<javax.annotation.api.version>1.3.2</javax.annotation.api.version>
|
||||
<logback.classic.version>1.2.3</logback.classic.version>
|
||||
<ox.basidc.common>1.0-SNAPSHOT</ox.basidc.common>
|
||||
<flyway.version>5.2.4</flyway.version>
|
||||
<vs.common.rpc.version>1.3.0-SNAPSHOT</vs.common.rpc.version>
|
||||
<vs.sqlmapper.spring>1.0.0-SNAPSHOT</vs.sqlmapper.spring>
|
||||
<vs.mock.spring>1.0.0-SNAPSHOT</vs.mock.spring>
|
||||
<vs.elasticsearch.version>1.0.0-SNAPSHOT</vs.elasticsearch.version>
|
||||
<org.hibernate.core>5.5.7.Final</org.hibernate.core>
|
||||
<vs.bo.common>1.0-SNAPSHOT</vs.bo.common>
|
||||
<cn.hutool.all>5.7.4</cn.hutool.all>
|
||||
<vs.debug.version>1.0.0-SNAPSHOT</vs.debug.version>
|
||||
<javax.annotation-api>1.3.2</javax.annotation-api>
|
||||
<javax.persistence-api>2.2</javax.persistence-api>
|
||||
<elasticsearch.version>7.3.1</elasticsearch.version>
|
||||
<rocketmq.client.version>4.7.1</rocketmq.client.version>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.toco</groupId>
|
||||
<artifactId>toco-all</artifactId>
|
||||
<type>pom</type>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}-common</artifactId>
|
||||
<version>{{ .version }}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}-service</artifactId>
|
||||
<version>{{ .version }}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}-persist</artifactId>
|
||||
<version>{{ .version }}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}-manager</artifactId>
|
||||
<version>{{ .version }}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>com.vs</groupId>
|
||||
<artifactId>vs-deploy-plugin</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>deploy</phase>
|
||||
<goals>
|
||||
<goal>vs-deploy</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<artifactPrefix>{{ .artifactId }}</artifactPrefix>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>com.vs</groupId>
|
||||
<artifactId>vs-install-plugin</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>install</phase>
|
||||
<goals>
|
||||
<goal>vs-install</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<artifactPrefix>{{ .artifactId }}</artifactPrefix>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-archetype-plugin</artifactId>
|
||||
<version>3.2.1</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-source-plugin</artifactId>
|
||||
<version>3.3.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>compile</phase>
|
||||
<goals>
|
||||
<goal>jar</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>3.3.1</version>
|
||||
<configuration>
|
||||
<encoding>UTF-8</encoding>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<modules>
|
||||
<module>persist</module>
|
||||
<module>service</module>
|
||||
<module>common</module>
|
||||
<module>manager</module>
|
||||
<module>entrance</module>
|
||||
</modules>
|
||||
</project>
|
||||
31
template/service/pom.xml
Normal file
31
template/service/pom.xml
Normal file
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}</artifactId>
|
||||
<version>{{ .version }}</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>{{ .artifactId }}-service</artifactId>
|
||||
<version>{{ .version }}</version>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<dependency>
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}-common</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}-manager</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>redis.clients</groupId>
|
||||
<artifactId>jedis</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
1
template/service/readme.md
Normal file
1
template/service/readme.md
Normal file
@@ -0,0 +1 @@
|
||||
## 具体业务逻辑层定义,包括对api等实现,以Servcie为后缀
|
||||
@@ -0,0 +1,4 @@
|
||||
存放BaseServiceImpl
|
||||
```
|
||||
\-- *BaseServiceImpl.java
|
||||
```
|
||||
@@ -0,0 +1,4 @@
|
||||
存放Converter
|
||||
```
|
||||
\-- *Converter.java
|
||||
```
|
||||
@@ -0,0 +1,4 @@
|
||||
存放DTO
|
||||
```
|
||||
\-- *DTO.java
|
||||
```
|
||||
@@ -0,0 +1,4 @@
|
||||
存放工具类
|
||||
```
|
||||
\-- *Util.java
|
||||
```
|
||||
@@ -0,0 +1,4 @@
|
||||
存放Test
|
||||
```
|
||||
\-- *Test.java
|
||||
```
|
||||
10
values.yml
Normal file
10
values.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
moduleName: his_to
|
||||
groupId: com.volunteerBank
|
||||
artifactId: '{{ .moduleName | replace "-" "_" }}'
|
||||
projectId: 5faf4e3e-48e6-44b1-a7c5-79a0312aabe4
|
||||
moduleId: 27325654-a00a-44f1-a2db-245336f5b47e
|
||||
version: 3.0-SNAPSHOT
|
||||
package: "{{ .groupId }}.{{ .artifactId }}"
|
||||
packagePath: '{{ .package | replace "." "/" }}'
|
||||
projectName: volunteer-bank
|
||||
applicationName: "{{ .projectName }}-server"
|
||||
Reference in New Issue
Block a user