查找spring可配置项

spring 配置文件有哪些可配置项, 可以从官网查询 https://docs.spring.io/spring-boot/docs/current/reference/html/application-properties.html

Published
Categorized as java, web

go_1.21泛型示例

package demo import ( “math/rand” “time” ) // 定义泛型接口 type RandomElementer[T any] interface { // 返回一个随机的元素,如果集合为空,返回(zero, false) RandomElement() (T, bool) } func MustRandom[T any](collection RandomElementer[T]) T { val, ok := collection.RandomElement() if !ok { panic(“collection is empty.”) } return val } // MyList 泛型集合. type MyList[T any] []T // MyList 实现接口RandomElement func (l MyList[T]) RandomElement()… Continue reading go_1.21泛型示例

Published
Categorized as go, language