Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cangjie1.0.1-template
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
eazy-template
cangjie1.0.1-template
Commits
a0612ce7
Commit
a0612ce7
authored
Sep 11, 2025
by
xiezhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
22fe3f70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
README.md
README.md
+3
-3
No files found.
README.md
View file @
a0612ce7
...
...
@@ -126,7 +126,7 @@ make stop
HTTP 服务器类包含以下功能:
-
**main 函数**
: 程序入口点,启动 HTTP 服务器
-
**端口配置**
: 硬编码端口 808
1
,可通过环境变量 APP_PORT_1 覆盖
-
**端口配置**
: 硬编码端口 808
0
,可通过环境变量 APP_PORT_1 覆盖
-
**HTTP 处理器**
: 使用 Lambda 表达式处理 HTTP 请求
-
**服务器启动**
: 使用仓颉原生 HTTP 库创建 HTTP 服务
...
...
@@ -160,7 +160,7 @@ HTTP 服务器类包含以下功能:
## 环境变量
-
`APP_PORT_1`
: HTTP 服务器端口号(默认: 8080,代码中硬编码为 808
1
)
-
`APP_PORT_1`
: HTTP 服务器端口号(默认: 8080,代码中硬编码为 808
0
)
## 仓颉语言特性
...
...
@@ -188,7 +188,7 @@ HTTP 服务器类包含以下功能:
## 注意事项
-
当前代码中端口硬编码为 808
1
,环境变量 APP_PORT_1 暂时未生效
-
当前代码中端口硬编码为 808
0
,环境变量 APP_PORT_1 暂时未生效
-
项目使用 cjpm 作为包管理器,需要确保已安装 cjpm
-
编译后的文件位于
`target`
目录
...
...
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