vmtool -c 5ffd2b27 –action getInstances –className org.springframework.boot.autoconfigure.web.ServerProperties -x 2
Category: language
linux安装多个版本的golang
go install golang.org/dl/go1.23.0@latest
查找spring可配置项
spring 配置文件有哪些可配置项, 可以从官网查询 https://docs.spring.io/spring-boot/docs/current/reference/html/application-properties.html
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泛型示例
arthas常用的命令
arthas常用的命令