简体   繁体   English

Spring Roo-包括jQuery

[英]Spring roo - including jQuery

I have added jQuery link to load-scripts.tagx as following. 我已经将jQuery链接添加到load-scripts.tagx,如下所示。

<script src="custom/js/jquery-1.10.2.min.js" type="text/javascript"></script>

It compiles fine and page loads fine, when i check the generated source it is as following in the generated html, which is perfectly fine. 它编译良好,页面加载正常,当我检查生成的源代码时,它在生成的html中如下所示,这非常好。

<script type="text/javascript" src="custom/js/jquery-1.10.2.min.js"/>

This loads the js as expected, but my only concerned is that it is trying to load jquery-1.10.2.min.map and this fails since there is no such file. 这将按预期加载js,但我唯一关心的是它正在尝试加载jquery-1.10.2.min.map,但由于没有这样的文件而失败。 I want to figure-out why this is happening. 我想弄清楚为什么会这样。

Add this map file in your project 将此地图文件添加到您的项目中

http://code.jquery.com/jquery-1.10.2.min.map http://code.jquery.com/jquery-1.10.2.min.map

Latest gvNIX 1.2.1 includes an addon to move your project to jQuery. 最新的gvNIX 1.2.1包含一个将项目移至jQuery的插件。 Take a look at http://code.google.com/p/gvnix/wiki/QuickStartGvnix 看看http://code.google.com/p/gvnix/wiki/QuickStartGvnix

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM