Comments (22)
你用的版本是多少
from xjar.
克隆源码,打成jar包,是1.1.3
from xjar.
你这个是Spring-Boot 的jar包吗?
from xjar.
是的
from xjar.
from xjar.
你这个是测试项目吗? 方便放到github上吗?我clone下来调试下
from xjar.
这不是测试项目,抱歉不太方便
from xjar.
没事 你测试下 XBoot.encrypt(plaintext, encrypted, password); 就是不加过滤器的
from xjar.
好,我试试
from xjar.
不行,还是报一样的错。项目中不需要引入xjar吧,我加密是在单独的测试项目中对jar包进行加密的
from xjar.
截图 BOOT-INF/classes/ 目录 和 MANIFEST.MF文件的内容看下
from xjar.
from xjar.
Enumeration<Resource> resources = Loaders.ant().load("io/xjar/**"); while (resources.hasMoreElements()) { Resource resource = resources.nextElement(); System.out.println(resource); }
你在那个main 方法 执行下这段代码 看怎么输出
from xjar.
没有输出,resources.hasMoreElements()是false
from xjar.
那我知道原因了 你是在clone下来的项目里面写的这个main方法吧
from xjar.
不是,我自己新建了一个项目txjar,图片中xjar是clone的
from xjar.
用 依赖的方式就可以了
<repositories> <repository> <id>jitpack.io</id> <url>https://jitpack.io</url> </repository> </repositories>
<dependency> <groupId>com.github.core-lib</groupId> <artifactId>xjar</artifactId> <version>v1.1.3</version> </dependency>
from xjar.
或者用 插件的形式 配置在你要加密的 Spring-Boot 项目里面 更方便 你看README.MD 里面有比较详细的介绍
from xjar.
用依赖包方式加密后报错,找不到启动类
使用插件形势加密后,生成cn.com.zll.app.xjar包,启动时同样报找不到启动类错误
from xjar.
密码输错了吧
from xjar.
尴尬呀,密码输错了,现在起来了。非常感谢!!!
from xjar.
哈哈哈
from xjar.
Related Issues (20)
- 能不能也支持一下:Solon 框架啊?
- xjar命令之后之后报错ArrayIndexOutOfBoundsException HOT 1
- 控制台Scanner nextLine()获取用户输入执行报错 HOT 5
- 请问,加密后Nacos、Spring Cloud 等能正常使用吗?
- 使用xjar启动器启动集成了seata-all-1.3.0.jar的加密后的Spring Cloud项目时发生异常 HOT 3
- 请问,jdk15,打包加密启动报错
- 【致命】发现一个致命的问题,既然加密是为了交付,假如三方直接登入机器dumpjava内存,一下就看到秘钥了。 HOT 4
- springmvc项目出错
- jsp加密运行出错
- Springboot3 + Java17 打包后运行报错 HOT 3
- tomcat 扫描包出错 HOT 1
- 被杀毒软件报毒 HOT 2
- -Dxjar.excludes=static/** 无法排除static目录下文件不加密
- 启动时报主类错误 Incompatible magic value
- 针对quarkus等框架打包出来的legacy-jar也能运行吗?JDK17
- 升级了Java版到21,现在运行的时候,没法启动 HOT 2
- 有大佬用WinSW服务部署过吗
- Xjar启动异常:尚不支持新的Java类文件版本 HOT 10
- 加密类操作spring 注解怎么解决啊?无法解密啊!
- springboot自定义打包,依赖jar外置后,xjar加密报错
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xjar.