Skip to content

Commit 73fba20

Browse files
committed
2 parents e060f08 + 384dfe1 commit 73fba20

File tree

17 files changed

+76
-4
lines changed

17 files changed

+76
-4
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
<module>quick-api-invoker</module>
8383
<module>quick-platform-component</module>
8484
<module>quick-platform-common</module>
85-
<module>quick-archetype</module>
85+
<module>quick-sample-server</module>
8686
</modules>
8787
<packaging>pom</packaging>
8888
<description>使用springboot框架做的一些例子,做个记录,以后方便即拿即用</description>

quick-sample-server/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
快速生成服务骨架
2+
3+
https://blog.csdn.net/u011731544/article/details/132322425
4+
5+
#### 创建maven骨架步骤
6+
1、在目录下执行命令
7+
```bash
8+
spring-boot-quick\quick-archetype\mvn archetype:create-from-project
9+
```
10+
11+
2、进入target中的archetype文件执行install
12+
```bash
13+
spring-boot-quick\quick-archetype\target\generated-sources\archetype> mvn install
14+
```
15+
16+
3、执行archetype:crawl命令,用于构建骨架,在本地仓库的根目录生成archetype-catalog.xml骨架配置文件
17+
18+
4、为确认,可查看本仓库`archetype-catalog.xml`中内容是否有当前archetype声明节点,如下:
19+
```xml
20+
<archetype>
21+
<groupId>com.quick</groupId>
22+
<artifactId>quick-sample-server-archetype</artifactId>
23+
<version>1.0-SNAPSHOT</version>
24+
<description>quick-sample-server</description>
25+
</archetype>
26+
```
27+
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
excludePatterns=.idea/**,README.md,.mvn/wrapper/*,.gitignore
2+
archetype.filteredExtensions=java,yml,yaml,xml,txt,groovy,cs,mdo,aj,jsp,gsp,vm,html,xhtml,properties,.classpath,.project
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@
1010
<relativePath>../quick-platform/pom.xml</relativePath>
1111
</parent>
1212

13-
<artifactId>quick-archetype</artifactId>
13+
<artifactId>quick-sample-server</artifactId>
14+
<packaging>pom</packaging>
15+
<modules>
16+
<module>sample-api</module>
17+
<module>samaple-server</module>
18+
</modules>
19+
<!-- <packaging>maven-archetype</packaging>-->
1420

1521
<properties>
1622
<maven.compiler.source>8</maven.compiler.source>
@@ -62,7 +68,6 @@
6268

6369

6470
<build>
65-
<finalName>czxy-SSM</finalName>
6671

6772
<plugins>
6873
<!-- 加入maven-archetype-plugin插件 -->
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<parent>
5+
<groupId>com.quick</groupId>
6+
<artifactId>quick-sample-server</artifactId>
7+
<version>1.0-SNAPSHOT</version>
8+
</parent>
9+
<artifactId>samaple-server</artifactId>
10+
<name>Archetype - samaple-server</name>
11+
<url>http://maven.apache.org</url>
12+
</project>

quick-archetype/src/main/java/com/quick/CustomApplication.java renamed to quick-sample-server/samaple-server/src/main/java/com/quick/CustomApplication.java

File renamed without changes.

quick-archetype/src/main/java/com/quick/controller/CtKeyPoolController.java renamed to quick-sample-server/samaple-server/src/main/java/com/quick/controller/CtKeyPoolController.java

File renamed without changes.

quick-archetype/src/main/java/com/quick/entity/CtKeyPoolEntity.java renamed to quick-sample-server/samaple-server/src/main/java/com/quick/entity/CtKeyPoolEntity.java

File renamed without changes.

quick-archetype/src/main/java/com/quick/mapper/CtKeyPoolMapper.java renamed to quick-sample-server/samaple-server/src/main/java/com/quick/mapper/CtKeyPoolMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.quick.mapper;
22

3-
import com.quick.entity.CtKeyPoolEntity;
43
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4+
import com.quick.entity.CtKeyPoolEntity;
55

66
/**
77
* <p>

quick-archetype/src/main/java/com/quick/service/CtKeyPoolService.java renamed to quick-sample-server/samaple-server/src/main/java/com/quick/service/CtKeyPoolService.java

File renamed without changes.

0 commit comments

Comments
 (0)