Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebContainerConfig ¶
type WebContainerConfig struct { EnableHTTP bool `value:"${web.server.enable:=true}"` // 是否启用 HTTP Port int32 `value:"${web.server.port:=8080}"` // HTTP 端口 EnableHTTPS bool `value:"${web.server.ssl.enable:=false}"` // 是否启用 HTTPS SSLPort int32 `value:"${web.server.ssl.port:=8443}"` // SSL 端口 SSLCert string `value:"${web.server.ssl.cert:=}"` // SSL 证书 SSLKey string `value:"${web.server.ssl.key:=}"` // SSL 秘钥 }
Web 容器配置
type WebContainerStarter ¶
type WebContainerStarter struct { Config *WebContainerConfig `autowire:""` Container SpringWeb.WebContainer `autowire:"WebContainer"` SSLContainer SpringWeb.WebContainer `autowire:"WebSSLContainer"` }
Web 容器启动器
func (*WebContainerStarter) OnStartApplication ¶
func (starter *WebContainerStarter) OnStartApplication(ctx SpringBoot.ApplicationContext)
func (*WebContainerStarter) OnStopApplication ¶
func (starter *WebContainerStarter) OnStopApplication(ctx SpringBoot.ApplicationContext)
Click to show internal directories.
Click to hide internal directories.