springmvc sitemesh json问题

参考:

解决方法:

<sitemesh>
    <mapping path="/*" decorator="/WEB-INF/views/template/template.jsp"/>
    <!---排除对json的装饰-->
    <mapping path="/json/*" exclue="true"/>
</sitemesh>
$.post('/json/submit.json', {
            name: username,
            password: password
        }, function (val) {

        })

 

posted @ 2015-06-28 21:28  Seaurl  阅读(415)  评论(0编辑  收藏  举报