Skip to content

Commit a1363c8

Browse files
author
litongjava
committed
add start with spring-boot mavne plugin
1 parent f4da374 commit a1363c8

File tree

1 file changed

+7
-0
lines changed
  • docs/zh/01_tio-boot 简介

1 file changed

+7
-0
lines changed

docs/zh/01_tio-boot 简介/02.md

+7
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ If you are developing with Java 8, please use the following dependency:
7070
<artifactId>spring-boot-maven-plugin</artifactId>
7171
<version>2.7.4</version>
7272
<configuration>
73+
<fork>true</fork>
7374
<mainClass>${main.class}</mainClass>
7475
<excludeGroupIds>org.projectlombok</excludeGroupIds>
7576
</configuration>
@@ -124,6 +125,12 @@ public class IndexController {
124125

125126
```
126127

128+
使用 spring-boot 插件启动
129+
130+
```
131+
mvn spring-boot:run -Pproduction
132+
```
133+
127134
访问测试 http://localhost/,显示 index
128135

129136
### 打包

0 commit comments

Comments
 (0)