优化展示。
This commit is contained in:
parent
8334ba32ec
commit
0370314c3f
@ -10,7 +10,6 @@ import (
|
|||||||
"ferry/tools"
|
"ferry/tools"
|
||||||
config2 "ferry/tools/config"
|
config2 "ferry/tools/config"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
@ -100,10 +99,14 @@ func run() error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
content, _ := ioutil.ReadFile("./static/ferry.txt")
|
fmt.Printf("%s Server Run http://%s:%s/ \r\n",
|
||||||
fmt.Println(string(content))
|
tools.GetCurrntTimeStr(),
|
||||||
fmt.Printf("%s Server Run http://127.0.0.1:%s/ \r\n", tools.GetCurrntTimeStr(), config2.ApplicationConfig.Port)
|
config2.ApplicationConfig.Host,
|
||||||
fmt.Printf("%s Swagger URL http://127.0.0.1:%s/swagger/index.html \r\n", tools.GetCurrntTimeStr(), config2.ApplicationConfig.Port)
|
config2.ApplicationConfig.Port)
|
||||||
|
fmt.Printf("%s Swagger URL http://%s:%s/swagger/index.html \r\n",
|
||||||
|
tools.GetCurrntTimeStr(),
|
||||||
|
config2.ApplicationConfig.Host,
|
||||||
|
config2.ApplicationConfig.Port)
|
||||||
fmt.Printf("%s Enter Control + C Shutdown Server \r\n", tools.GetCurrntTimeStr())
|
fmt.Printf("%s Enter Control + C Shutdown Server \r\n", tools.GetCurrntTimeStr())
|
||||||
// 等待中断信号以优雅地关闭服务器(设置 5 秒的超时时间)
|
// 等待中断信号以优雅地关闭服务器(设置 5 秒的超时时间)
|
||||||
quit := make(chan os.Signal)
|
quit := make(chan os.Signal)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user