librarys

module
v0.0.0-...-70cb23a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2024 License: MIT

README

之前的ioc

map形式,注册name:“interface"

如果掉用其方法,就是实现init,这样才调

现在的ioc

切片,只需要注册 name,version

如果掉用其方法,就是实现init,这样才调,但是这种方式只要name和version,比上面更复杂好用

app1 ioc1 是老的版本 map

app ioc 是新的版本 slice

补充业务异常

req := ioc.NewLoadConfigRequest()
req.ConfigFile.Enabled = true
req.ConfigFile.Path = "/Users/kade.chen/go12-project/sso/etc/application.toml"
ioc.DevelopmentSetup(req)

自动加载注册init所有ioc

补充细节 cookis业务报错 llllllll

test

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL