What is the specific function or feature that you are referring to?
- 内容介绍
- 文章标签
- 相关推荐
本文共计323个文字,预计阅读时间需要2分钟。
func-spring-boot-starter:匿名函数托管,GitHub项目路径:https://github.com/yiurhub/func-spring-boot-starter,Gitee项目路径:https://gitee.com/yiur/func-spring-boot-starter,使用注意事项:推荐版本spring-boot-starter 2.6。
func-spring-boot-starter 匿名函数托管GitHub项目路径:
推荐版本: 添加类注解 需要注入
使用注意事项
设计原理
匿名函数特性
匿名函数链接配置
Yaml
2.6.xfunc-link:
# 默认代理模式
singleton: true
# 默认开启lambda模式
lambda: true
# 默认的callback回调函数类
call-back: org.func.spring.boot.component.callback.SimpleFuncCallback
# logger 配置
logger:
# 默认false 不输出日志
enable-log: false
# 默认输出日志信息 ${取当前匿名函数的公开信息}
message: "call method --> ${methodName}(${parameterSource})"
# 日志执行日志格式化
date-format: "yyyy-MM-dd HH:mm:ss"
# 输出日志的文件名
file-name: "simple"
JavaConfig
@EnableFuncLambdaFuncLinkFactory工厂类,生产默认FuncLink链接类
添加链接的方法为setObject(key, Object) 链式编程 泛型约束 Lambda
key: {Spring Bean Name}
本文共计323个文字,预计阅读时间需要2分钟。
func-spring-boot-starter:匿名函数托管,GitHub项目路径:https://github.com/yiurhub/func-spring-boot-starter,Gitee项目路径:https://gitee.com/yiur/func-spring-boot-starter,使用注意事项:推荐版本spring-boot-starter 2.6。
func-spring-boot-starter 匿名函数托管GitHub项目路径:
推荐版本: 添加类注解 需要注入
使用注意事项
设计原理
匿名函数特性
匿名函数链接配置
Yaml
2.6.xfunc-link:
# 默认代理模式
singleton: true
# 默认开启lambda模式
lambda: true
# 默认的callback回调函数类
call-back: org.func.spring.boot.component.callback.SimpleFuncCallback
# logger 配置
logger:
# 默认false 不输出日志
enable-log: false
# 默认输出日志信息 ${取当前匿名函数的公开信息}
message: "call method --> ${methodName}(${parameterSource})"
# 日志执行日志格式化
date-format: "yyyy-MM-dd HH:mm:ss"
# 输出日志的文件名
file-name: "simple"
JavaConfig
@EnableFuncLambdaFuncLinkFactory工厂类,生产默认FuncLink链接类
添加链接的方法为setObject(key, Object) 链式编程 泛型约束 Lambda
key: {Spring Bean Name}

