Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在外部 jar 存档中使用我的复合组件。在我的 jar-archive 中,我有图像和 css 文件等资源。例如,我的一个组件使用了一个内部带有图像的按钮。当我尝试在另一个项目中使用我的组件时,找不到图像的资源。
我该如何解决这个问题?
试试这个ResourceHandlerapi。检查这篇文章。
ResourceHandler