wyl_159 2013-04-29 09:44
浏览 236
已采纳

web项目中引入jquery库问题

大家帮忙看看这个jsp文件中为何引入不到jquery库,目录结构如我上传的图片
请求到这个页面后报:
SCRIPT5007: 属性“$”的值为 null、未定义或不是 Function 对象

<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">


  • 写回答

5条回答 默认 最新

  • jinnianshilongnian 2013-04-29 12:46
    关注

    修改你的配置文件example-servlet.xml 加上红色部分即可
    <?xml version="1.0" encoding="UTF-8"?>
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:p="http://www.springframework.org/schema/p"
    xmlns:context="http://www.springframework.org/schema/context"
    [color=red] xmlns:mvc="http://www.springframework.org/schema/mvc" [/color]
    xsi:schemaLocation="http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans.xsd
    http://www.springframework.org/schema/context
    http://www.springframework.org/schema/context/spring-context.xsd
    [color=red] http://www.springframework.org/schema/mvc
    http://www.springframework.org/schema/mvc/spring-mvc.xsd"[/color]>
    <!-- 指定spring mvc controllerr的扫描 -->

    [color=red]<mvc:annotation-driven/> 
    <mvc:default-servlet-handler/> 
    

    [/color]

    [url]http://jinnianshilongnian.iteye.com/blog/1423971[/url]

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(4条)

报告相同问题?

悬赏问题

  • ¥15 WPF RichTextBox格式化大量文本卡顿如何解决
  • ¥15 什么设备可以研究OFDM的60GHz毫米波信道模型
  • ¥15 不知道是该怎么引用多个函数片段
  • ¥15 pip install后修改模块路径,import失败,需要在哪里修改环境变量?
  • ¥15 爬取1-112页所有帖子的标题但是12页后要登录后才能 我使用selenium模拟登录 账号密码输入后 会报错 不知道怎么弄了
  • ¥30 关于用python写支付宝扫码付异步通知收不到的问题
  • ¥50 vue组件中无法正确接收并处理axios请求
  • ¥15 隐藏系统界面pdf的打印、下载按钮
  • ¥15 基于pso参数优化的LightGBM分类模型
  • ¥15 安装Paddleocr时报错无法解决