【问题标题】:grails famfamfam plugin http 404 errorgrails famfamfam 插件 http 404 错误
【发布时间】:2013-01-28 16:59:04
【问题描述】:

在我的 grails 应用程序中,我使用 spring-security-core:1.2.7.3 插件和 famfamfam:1.0.1 插件。

当我单击将我带到 Web 应用程序的链接(并且我之前选择了 rememberme 复选框)时,它会将我带到安全页面,但不显示 famfamfam 图像。在 Firefox 中,我可以看到以下错误:

"NetworkError: 404 Not Found - http://localhost:8080/static/plugins/famfamfam-1.0.1/images/icons/user_suit.png;jsessionid=AB8FFF32A22F98573537A965694936AC"

有什么方法可以防止将“jsessionid”附加到图像上?

谢谢!

【问题讨论】:

    标签: grails spring-security


    【解决方案1】:

    插件所有者的回复请参见此链接:https://github.com/xiaochong/zkui/issues/118

    问题似乎与资源插件有关。

    我的解决方法是在 zk 项中使用空白图像:

    `<z:menuitem label="Home" height="80px;" top="40px;"
    href="${createLink(uri: '/')}" image="/images/blank.png" class="menu_house"/>`
    

    然后使用一个类来添加菜单图片: .menu_house { background-image: url("../images/house.png"); background-repeat: no-repeat; background-position: left center; }

    我希望这有助于将来节省一些时间。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-01-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多