neutrino-proxy
发表于|更新于
|浏览量:
千万别先给人一番赞美,再立刻给他一顿批评——马克·吐温
分享一个内网穿透项目neutrino-proxy
中微子代理(neutrino-proxy)是一个基于netty的、开源的java内网穿透项目。遵循MIT许可,因此您可以对它进行复制、修改、传播并用于任何个人或商业行为。

演示:

相关推荐
2023-11-09
spring-state-machine守卫踩坑
真正的艺术家绝不顾虑作品的前途。——罗曼·罗兰 今天发现一个问题,如果我们是动态构建状态机,在传入指定守卫为null时,代码不会报错,且事件不会过渡到下一个状态 解决方式: 1234567builder.configureTransitions().withExternal() .name(transition.getName()) .source(transition.getSourceState()) .event(transition.getEvent()) .target(transition.getTargetState()) .action(Opp.of(transition.getAction()).orElse(SerCons.nothing()::accept)) .guard(Opp.of(transition.getGuard()).orElseGet(() -> c -> true)) 提供默认值 引入的是import org.dromara.streamquery....
2022-11-09
springboot,get传日期格式转换
男女双方愿意相互观察是爱情的第一征象——瓦西列 对于这种请求: 1http://api.achao.cn/example?date=2022-11-09 我们可以配置转换器,mvc则会自动帮我们转 12345678910111213141516171819202122232425262728293031323334353637383940import cn.hutool.core.date.DatePattern;import io.github.vampireachao.stream.core.optional.Sf;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.context.annotation.Configuration;import org.springframework.core.convert.ConversionService;import org.springframework.core.convert.converter.C...
2023-10-29
r2dbc分页条件查询
假如人只能自己单独生活,只会考虑自己,他的痛苦将是难以承受的。——帕斯卡 代码很简单: 1userRepository.findBy(Example.of(new User()), x -> x.page(PageRequest.of(0, 1))) 这里repository需要继承org.springframework.data.repository.query.ReactiveQueryByExampleExecutor 例如: 12345678import org.springframework.data.r2dbc.repository.R2dbcRepository;import org.springframework.data.repository.query.ReactiveQueryByExampleExecutor;import org.springframework.stereotype.Repository;import reactor.core.publisher.Flux;@Repositorypublic interface UserRep...
2021-05-20
在js中获取thymeleaf变量
大人者,不失其赤子之心者也。——《孟子·离娄下》 代码很简单 如下即可,这里的'Achao'是为了防止编译报错 1234 <script th:inline="javascript"> var data = /*[[${data}]]*/ 'Achao'; console.log(data);</script>
2023-03-07
payment-spring-boot
读书只能供给知识的材料,如果融会贯通,应靠思索之力——洛克 分享一个微信支付的开源项目: dromara / payment-spring-boot 微信支付V3支付,支持微信优惠券,代金券、商家券、公众号支付、微信小程序支付、分账、支付分、商家券、合单支付、先享卡、电商收付通等全部微信支付功能API,同时满足服务商、商户开发需求。一键集成,上手快,欢迎star。 号称是最全最好用的微信支付V3 Spring Boot 组件 作者是胖哥:https://felord.cn/ 也是我写博客的启发人
2022-06-02
链式Consumer
这个时代不会阻止你自己闪耀,但你也覆盖不了任何人的光辉——黄渤 今天发现一种方便的链式Consumer写法 1234567891011121314151617import lombok.experimental.UtilityClass;import java.util.function.Consumer;import java.util.stream.Stream;/** * @author VampireAchao * @since 2022/6/2 10:57 */@UtilityClasspublic class LambdaHelper { @SafeVarargs public static <T> Consumer<T> consumers(Consumer<T>... consumers) { return Stream.of(consumers).reduce(Consumer::andThen).orElseGet(() -> o -> {})...
