This commit is contained in:
parent
43005cdb13
commit
11b467bd56
|
|
@ -1,5 +1,5 @@
|
|||
server:
|
||||
port: 8080
|
||||
port: 8081
|
||||
|
||||
log:
|
||||
level: debug
|
||||
|
|
|
|||
|
|
@ -103,9 +103,9 @@ func main() {
|
|||
|
||||
// 启动服务器
|
||||
go func() {
|
||||
common.Info("服务器启动: http://localhost:8080")
|
||||
common.Info("Swagger文档: http://localhost:8080/swagger/index.html")
|
||||
log.Println("服务器启动: http://localhost:8080")
|
||||
common.Info("服务器启动: http://localhost:%d", port)
|
||||
common.Info("Swagger文档: http://localhost:%d/swagger/index.html", port)
|
||||
log.Printf("服务器启动: http://localhost:%d\n", port)
|
||||
if err := srv.ListenAndServe(); err != nil && err != http.ErrServerClosed {
|
||||
common.LogError("启动失败: %s", err)
|
||||
log.Fatalf("启动失败: %s\n", err)
|
||||
|
|
|
|||
Loading…
Reference in New Issue