jar中没有主清单属性
发表于|更新于
|浏览量:
新闻要适合直接感兴趣的人口味。——马克思
我今天遇到了一个报错…

我仔细一看发现jar包才893KB大小

检查了一下打包配置,发现:

这块少了个repackage配置…
1 | <executions> |
加上就可以了

再次打包就好了
相关推荐
2022-12-17
获取lambda代理
伯乐不可欺以马,君子不可欺以人——荀子 代码如下: 123MethodHandles.Lookup lookup = MethodHandles.lookup(); MethodHandle getR = lookup.findVirtual(B.class, "getR", MethodType.methodType(Object.class)); SerFunc<Object, B> lambda = MethodHandleProxies.asInterfaceInstance(SerFunc.class, getR); 此处的lambda代理对象同样可以执行lambda对应的方法
2022-02-14
hutool中@Alias
何必向不值得的人证明什么,生活得更好,乃是为你自己——忽而今夏 我们可以使用hutool中的@Alias注解去给bean取别名,例如: 1234567@Datapublic static class BeanWithAlias { @Alias("name") private String value1; @Alias("age") private Integer value2;} 然后别名不仅能在BeanUtil.copyProperties中使用,还可以在JSONUtil中使用: 123456789101112131415final BeanWithAlias beanWithAlias = new BeanWithAlias();beanWithAlias.setValue1("张三");beanWithAlias.setValue2(35);final JSONObject jsonObject = JSONUtil.parseObj(beanWithAlias);Assert.asse...
2021-10-23
ThreadLocal子线程共享
世人缺乏的是毅力,而非气力。——雨果 昨天聊了ThreadLocal可以用作单个线程中变量共享 其底层实现其实就是个Map,用线程作为key,不信可以看这部分源码: 123456789101112131415161718192021/** * Returns the value in the current thread's copy of this * thread-local variable. If the variable has no value for the * current thread, it is first initialized to the value returned * by an invocation of the {@link #initialValue} method. * * @return the current thread's value of this thread-local */public T get() { Thread t = Thread.currentThr...
2020-12-22
springbootTest坑
人一能之,己百之;人十能之,己千之。——《中庸》 今天踩到一个坑,使用springboot单元测试时插入数据回滚了 最后发现原来需要在测试类上面加上@Rollback(false)就可以了 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960package com.ruben;/** * @ClassName: MybatisPlusDemo * @Date: 2020/11/9 0009 20:51 * @Description: */import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;import com.baomidou.mybatisplus.core.metadata.IPage;import com.baomidou.mybatisplus.core.toolkit.Wrappers;import co...
2023-05-15
rule-engine-open
朴素是美的必要条件。——列夫·托尔斯泰 分享一个开源规则引擎项目: https://gitee.com/aizuda/rule-engine-open 演示地址:http://ruleengine.cn/
2022-05-16
r2dbc
青春是有限的,智慧是无穷的,趁短的青春,去学习无穷的智慧。——高尔基 今天看了点R2DBC,官网:https://r2dbc.io/ Spring-Data-R2dbc:https://spring.io/projects/spring-data-r2dbc 学习文档:https://docs.spring.io/spring-data/r2dbc/docs/current/reference/html/ 跑了下demo,感觉还不错:https://gitee.com/VampireAchao/simple-r2dbc.git

阿超
我的名字叫阿超 年龄25岁 家在北京市 职业是软件开发 每天最晚也会在八点前回家 不抽烟 酒浅尝辄止 晚上十二点上床 保证睡足八个小时 睡前写一篇博客 再做二十分钟俯卧撑暖身 然后再睡觉 基本能熟睡到天亮 像婴儿一样不留下任何疲劳和压力 就这样迎来第二天的早晨 健康检查结果也显示我很正常 我想说明我是一个不论何时都追求内心平稳的人 不拘泥于胜负 不纠结于烦恼 不树立使我夜不能寐的敌人 这就是我在这社会的生活态度
Follow Me公告
This is my Blog