Milo
放纵必需的自由而求暂时的安全的人们,结果既失去自由,又得不到安全——富兰克林 分享一个OPC UA的Java实现 https://github.com/eclipse/milo OPC UA Client SDK12345<dependency> <groupId>org.eclipse.milo</groupId> <artifactId>sdk-client</artifactId> <version>0.6.9</version></dependency> OPC UA Server SDK12345<dependency> <groupId>org.eclipse.milo</groupId> <artifactId>sdk-server</artifactId> <version>0.6.9</version></dependency>
pac4j
对付邪恶的特效药,就是跟邪恶战斗。——泰戈尔 分享一个java安全框架 https://www.pac4j.org/
wrapper支持typeHandler
错误经不起失败,但真理却不怕失败。——泰戈尔 相关pr: https://gitee.com/dromara/stream-query/pulls/340 大致使用方式 123456789101112131415161718192021222324@Testvoid selectTest() { Name name = new Name(); name.setUsername("VampireAchao"); name.setNickname("阿超"); UserInfoWithJsonName user = new UserInfoWithJsonName(); user.setName(name); Database.saveFewSql(Lists.of(user)); Database.updateFewSql(Lists.of(user)); LambdaQueryWrapper<UserInfoWithJsonName> wrapper = QueryCondition.qu...
spring获取AliasFor增强的注解
无论何时,别让你自己卷进去反对他人。——歌德 此处是关于issue:https://gitee.com/dromara/stream-query/issues/I7BSNV 这里使用的一个自定义的@Table注解+@AliasFor来增强@TableName 1234567891011121314151617181920212223242526272829303132/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License&q...
VIN解析
爱情易失不易得。——佚名 分享一个VIN解析的代码 https://gitee.com/dromara/hutool/pulls/1005 使用方式 1234567891011121314151617181920212223242526272829303132333435363738394041package org.dromara.hutool.core.data;import org.dromara.hutool.core.data.vin.Vin;import org.junit.jupiter.api.Assertions;import org.junit.jupiter.api.Test;import java.time.Year;/** * @author VampireAchao * @since 2023/5/31 14:43 */public class VinTest { @Test public void parseVinTest() { String vinStr = "HE9XR1C48PS083871"; ...
quay
自己活着,就是为了使别人活得更美好。——雷锋 可以使用quay.io搜索docker镜像 https://quay.io/search 在docker hub进不去时,非常好用
designpatternsgame
友谊绝对不会忍受长期和频繁的忠告。——罗伯特·林德 分享一个学习设计模式的网站 https://designpatternsgame.com/ 其对应的源码仓库:https://github.com/zoltantothcom/Design-Patterns-JavaScript 相当的哇塞
log-viewer
心平气和则能言——朱熹 https://github.com/FEMessage/log-viewer 分享一个前端日志库 其提供了中文文档 https://github.com/FEMessage/log-viewer/blob/dev/README-zh.md
psd.js
唯有在回敬污蔑和诽谤的时候,沉默才显得如此有力——艾迪生 分享一个js库,能操作psd文件 https://github.com/meltingice/psd.js 代码例子: NodeJS Example12345678910111213var PSD = require('psd');var psd = PSD.fromFile("path/to/file.psd");psd.parse();console.log(psd.tree().export());console.log(psd.tree().childrenAtPath('A/B/C')[0].export());// You can also use promises syntax for opening and parsingPSD.open("path/to/file.psd").then(function (psd) { return psd.image.saveAsPng('./output.pn...
js as关键字
统治别人,一定要为别人谋幸福。——莫泊桑 分享一个在export以及 import使用的 as关键字 https://es6.ruanyifeng.com/#docs/module#export-%E5%91%BD%E4%BB%A4 https://es6.ruanyifeng.com/#docs/module#import-%E5%91%BD%E4%BB%A4 这里就不多多赘述简单使用,介绍一个特别的场景: 例如这里有一个js文件 123export function myFunc()export function yourFunc() 针对这个js文件export的两个方法,由于没有export default 因此不能使用 1import MyJs from 'my.js' 而是只能使用 1import { myFunc, yourFunc } from 'my.js' 但是通过as关键字,则可以 1import * as MyJs from 'my.js' 然后就可以使用Myjs....
