zhenyuT commented on issue #540:
URL: 
https://github.com/apache/incubator-hugegraph-toolchain/issues/540#issuecomment-1835606728

   > 使用IDEA连接后可以正常创建propertyKey,但是打成jar执行就会出现上面的错误 环境jdk21 IDEA2023版本 
环境都是一样的,不知道为什么
   
   我猜测可能是你打包的方式导致的,用spring boot的打包方式是没问题的。
   但是用其他fat 
jar的方式就可能有问题了。因为jersey-media-json-jackson中是通过spi的方式注册JacksonFeature的,fat 
jar的方式可能导致spi失效
   
   
![image](https://github.com/apache/incubator-hugegraph-toolchain/assets/9477681/0642449d-9329-4dd7-8c5e-ee27b2c64a68)
   
这里的关键就在于jersey-media-json-jackson.jar中的META-INF/services/org.glassfish.jersey.internal.spi.AutoDiscoverable文件。
   
你可以试下把这个文件拷贝到自己主项目中的resources目录下(保持META-INF/services/org.glassfish.jersey.internal.spi.AutoDiscoverable的路径不变),再打包测试。
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to