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

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

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

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

再次打包就好了
相关推荐
2021-03-28
获取不同时区的时间
真诚与朴实是天才的宝贵品质。——斯坦尼斯拉夫斯基 1234567891011121314151617181920212223242526272829303132System.out.println("下面的是两个默认时区的LocalDateTime");final LocalDateTime localDateTime = LocalDateTime.ofInstant(new Date().toInstant(), ZoneId.systemDefault());final LocalDateTime localDateTime1 = LocalDateTime.now();System.out.println(localDateTime);System.out.println(localDateTime1);System.out.println("下面的是两个通过Date.from()拿到的默认时区的Date");// 这里需要使用ZonedDateTimefinal Date from = Date.from(Instant.fr...
2021-08-08
MybatisPlus通用枚举
胡马依北风,越鸟巢南枝。一一《古诗十九首》 在项目开发中,经常数据库中的一个字段对应一个枚举 对于这些枚举,我们要使用数据库将他们的值映射起来 MybatisPlus为我们提供了优雅的解决方案 只需要配置中添加枚举处理器,开启通用枚举支持 12345678910mybatis-plus: #指定Mybatis的Mapper文件 mapper-locations: classpath:mappers/*xml #指定Mybatis的实体目录 type-aliases-package: com.ruben.pojo.po configuration: # 开启mybatis日志 log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 开启通用枚举支持,默认使用ordinalType default-enum-type-handler: org.apache.ibatis.type.EnumOrdinalTypeHandler 然后如果是对于一些简单的枚举,例如使用ordinal和数据库的...
2022-12-13
如何关掉Parsed mapper file日志打印
时间一直走,没有尽头,只有路口。——《摆渡人》 先说结论: 将yml配置里的mybatis-plus配置 1log-impl: org.apache.ibatis.logging.stdout.StdOutImpl 改为 1log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl 在yml配置里新增一条 1234logging: level: root: DEBUG com.baomidou.mybatisplus.extension.spring.MybatisSqlSessionFactoryBean: INFO 完整配置放在最后结尾处 为什么这样配?你是如何找到的? 首先我们搜索Parsed mapper file(因为这个日志大概率是硬编码存在于源码之中的,除非是做了日志本地化,会在配置文件里) 这里排除掉一个纯依赖模块,一个注解模块,挨个到com包搜索,在最后一个extension模块搜到了 那我们将这个类的日志级别设为INFO应该就搞定了,但是没有生效 我们打个断点,看看什么情况,等断点停到...
2021-01-30
自定义list To HashMap工具类
没有比正直更富的遗产。——莎士比亚 我们在使用JDK自带的Collectors.toMap时,可能会遇到如下问题(什么?你不知道toMap干嘛的?戳我了解): 1.key重复,出现java.lang.IllegalStateException: Duplicate key ***异常 例如: 12List<User> users = new ArrayList<>(Arrays.asList(new User(null, "HiNo"), new User(null, "SuPa")));Map<String, String> map = users.stream().collect(Collectors.toMap(User::getUsername, User::getPassword)); 2.value为空,出现NPE: java.lang.NullPointerException 例如: 12List<User> users = new ArrayList<>(Ar...
2022-09-07
对接雅虎日语文本校对
青年时种下什么,老年时就收获什么——易卜生 API地址:https://developer.yahoo.co.jp/webapi/jlp/kousei/v2/kousei.html 代码: 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758package com.ruben;import cn.hutool.core.map.MapUtil;import cn.hutool.core.text.CharPool;import cn.hutool.core.text.StrPool;import cn.hutool.http.HttpRequest;import cn.hutool.http.HttpUtil;import cn.hutool.json.JSONObject;import cn.hutool.json.JSONUtil;import cn.hutool.log.StaticLog;import cn....
2023-05-08
为streampark新增用户资源转移功能
凡事一俭,则谋生易足;谋生易足,则求人无争,亦于人无求。——钱泳 相关的pr:https://github.com/apache/incubator-streampark/pull/2734 对应的描述: What changes were proposed in this pull requestIssue Number: close #2712 Brief change log Requirement: The administrator cancels the user deletion function and replaces it with disabling users. Detailed logic: The administrator cancels the user deletion function. When the user account is disabled, it cannot own resources (application and project ownership) Add resource transfer func...
