内容简介:feilong 3.0.8 发布了,feilong 是一个让Java开发更简便的工具库。 让你从大量重复的底层代码中脱身,提高开发效率; 让你的代码更简炼,易写、易读、易于维护; 文档地址: http://feilong-core.mydoc.io/ 单元测试数...
feilong 3.0.8 发布了,feilong 是一个让 Java 开发更简便的 工具 库。
- 让你从大量重复的底层代码中脱身,提高开发效率;
- 让你的代码
更简炼,易写、易读、易于维护;
文档地址: http://feilong-core.mydoc.io/
单元测试数 增加至 2259 个, 单元测试覆盖率 增加至 91% ,javadoc 比率 83%
本次升级共有 9 处变更, 具体参见 3.0.8 milestone
???? feilong-core
#292 CollectionsUtil 新增 exist 方法
boolean exist(Iterable<O> beanIterable,String propertyName,V propertyValue)
判断iterable中,是否存在 propertyName属性名称值是 propertyValue 的元素.
示例:
场景: 判断 list中是否存在name是 关羽 的User对象
List<User> list = new ArrayList<>(); list.add(new User("张飞", 23)); list.add(new User("关羽", 24)); list.add(new User("刘备", 25)); list.add(new User("关羽", 50)); LOGGER.info(CollectionsUtil.exist(list, "name", "关羽"));
返回:
true
feilong-net-filetransfer
#287 sftp 设置默认的 sshConfig
#286 sftp 默认超时时间从0 (没有超时) 改成 3秒
#288 完善 FileTransfer.getFileEntityMap(String, String...) javadoc
#285 简化 sftp 配置
原先 使用sftp 需要配置大段的xml:
<bean id="sftpFileTransfer" class="com.feilong.net.filetransfer.sftp.SFTPFileTransfer" scope="prototype"> <property name="sftpFileTransferConfig"> <bean class="com.feilong.net.filetransfer.sftp.SFTPFileTransferConfig"> <property name="hostName" value="#{p_sftp['fileTransfer.sftp.hostName']}" /> <property name="userName" value="#{p_sftp['fileTransfer.sftp.userName']}" /> <property name="password"> <value><![CDATA[#{p_sftp['fileTransfer.sftp.password']}]]></value> </property> <property name="port" value="#{p_sftp['fileTransfer.sftp.port']}" /> <property name="sessionTimeout" value="#{p_sftp['fileTransfer.sftp.sessionTimeout']}" /> <property name="sshConfig" ref="p_sftp-sshConfig" /> </bean> </property> </bean>
现在你只需要:
<feilong:sftpFileTransfer id="sftpFileTransfer" hostName="#{p_sftp['fileTransfer.sftp.hostName']}"
userName="#{p_sftp['fileTransfer.sftp.userName']}"
password="#{p_sftp['fileTransfer.sftp.password']}"
port="#{p_sftp['fileTransfer.sftp.port']}"
sessionTimeout="8000"
/>
???? feilong-security
#294 ✨ OnewayEncryption.encodeFile(OnewayType, String) 支持 classpath [enhancement]
parent
#290 修改 sonar-maven-plugin 插件 groupid 从org.codehaus.mojo 到 org.sonarsource.scanner.maven
⬆️ 依赖升级
#296 maven-site-plugin 升级到 3.9.1 [parent]
#295 maven-war-plugin 升级到 3.3.1 [parent]
以上所述就是小编给大家介绍的《feilong 3.0.8 发布了,让 Java 开发更简便的工具库》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Ethnography and Virtual Worlds
Tom Boellstorff、Bonnie Nardi、Celia Pearce、T. L. Taylor / Princeton University Press / 2012-9-16 / GBP 21.00
"Ethnography and Virtual Worlds" is the only book of its kind - a concise, comprehensive, and practical guide for students, teachers, designers, and scholars interested in using ethnographic methods t......一起来看看 《Ethnography and Virtual Worlds》 这本书的介绍吧!
HTML 编码/解码
HTML 编码/解码
RGB CMYK 转换工具
RGB CMYK 互转工具