您的位置:首页 > 运维架构 > Linux

系统由windows部署在linux问题

2017-04-17 15:40 267 查看
1,web.xml中classpath问题“

classPath不能在前面加”/“,linuxx系统中认为"/"为绝对路劲

<context-param>

        <param-name>contextConfigLocation</param-name>

        <!-- 应用上下文配置文件 -->

        <param-value>

classpath:config_spring/applicationContext.xml

<!-- ,classpath:/config_spring/spring-mybatis.xml -->

</param-value>

    </context-param>

 

2,jsp中用:

<script type="text/javascript" src="${pageContext.request.contextPath}/resources/js/jquery-2.1.4.js"></script>

上下文路劲

 

或者绝对路劲----

 

<script type="text/javascript"

src="${applicationScope.contextPath}/resources/plugins/nice-validator/jquery.validator.js?local=zh-CN"></script>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: