Refine some structs and handle cycle import
This commit is contained in:
@@ -11,9 +11,9 @@ import (
|
||||
func RunWindowsServer() {
|
||||
if global.GVA_CONFIG.System.UseMultipoint {
|
||||
// 初始化redis服务
|
||||
init.RegisterRedis()
|
||||
init.Redis()
|
||||
}
|
||||
Router := init.RegisterRouter()
|
||||
Router := init.Routers()
|
||||
Router.Static("/form-generator", "./resource/page")
|
||||
address := fmt.Sprintf(":%d", global.GVA_CONFIG.System.Addr)
|
||||
s := &http.Server{
|
||||
@@ -24,11 +24,11 @@ func RunWindowsServer() {
|
||||
MaxHeaderBytes: 1 << 20,
|
||||
}
|
||||
time.Sleep(10 * time.Microsecond)
|
||||
init.L.Debug("server run success on ", address)
|
||||
global.GVA_LOG.Debug("server run success on ", address)
|
||||
|
||||
fmt.Printf(`欢迎使用 Gin-Vue-Admin
|
||||
默认自动化文档地址:http://127.0.0.1%s/swagger/index.html
|
||||
默认前端文件运行地址:http://127.0.0.1:8080
|
||||
`, s.Addr)
|
||||
init.L.Error(s.ListenAndServe())
|
||||
global.GVA_LOG.Error(s.ListenAndServe())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user