GWT中的ClientBundle资源路径 [英] ClientBundle Resources Path in GWT
本文介绍了GWT中的ClientBundle资源路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个maven gwt项目,并且我正在使用ClientBundle将我的图像资源打包在该项目中.我想将图像放置在/src/main/resources
中,就像应该在maven中一样,而不是按照gwt的要求放置在src/main/java/com/mycompany/myproject/client
中.
I have a maven gwt project, and I'm using ClientBundle to package my image resources within the project. I would like to place the images in /src/main/resources
as should be done in maven instead of src/main/java/com/mycompany/myproject/client
as gwt wants.
有什么办法可以做到这一点?
Is there any way I can achieve this?
谢谢你, 萨米
推荐答案
我明白了;我可以将图像放置在src/main/resources/com/mycompany/myproject/client
上,它将被正确解析;)
I got it; I can place the image at src/main/resources/com/mycompany/myproject/client
and it will be resolved correctly ;)
这篇关于GWT中的ClientBundle资源路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文