摘要:
定义 public class MyClass<T> { private Class<T> clazz; public MyClass() { Type type = this.getClass().getGenericSuperclass(); if (type instanceof Parame 阅读全文
posted @ 2024-07-04 14:38
漠孤烟
阅读(20)
评论(0)
推荐(0)
摘要:
默认情况下,打出来的jar包都是给其他项目依赖的。如果本身该jar要独立运行,则需要打包成executable jar jar --create --file App.jar --main-class com.example.App -C build . App.jar: jar包名 com.exa 阅读全文
posted @ 2024-07-04 09:09
漠孤烟
阅读(36)
评论(0)
推荐(0)