<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                靜態資源:就是網頁上用到的圖片、CSS文件、js文件等資源。 <br/> 訪問靜態資源的配置步驟如下: **1. 將靜態資源放在`statics`目錄下** 比如我這里放`logo.png`、` bootstrap.min.css`、`jquery.min.js`文件。 ``` |—— 項目名 | |—— src | | |—— main | | | |—— webapp | | | | |—— statics | | | | | |—— css | | | | | | |—— bootstrap.min.css | | | | | |—— img | | | | | | |—— logo.png | | | | | |—— js | | | | | | |—— jquery.min.js ``` **2. 在`resources/springmvc-servlet.xml`配置文件中配置靜態資源映射** ```xml <!-- mapping:將靜態資源映射到指定的路徑下 location: 本地靜態資源文件的目錄,/webapp/statics,則賦值為 /statics --> <mvc:resources mapping="/statics/**" location="/statics/" /> ``` **3. 在視圖層就可以訪問到靜態資源** ```html <head> <!-- 引用方式1:調用 pageContext.request.contextPath --> <!-- pageContext.request.contextPath 是固定寫法,它可以獲取網站的根目錄,pageContext是JSP的9大內置對象之一 --> <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/statics/css/bootstrap.min.css" /> <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/statics/js/jquery.min.js" /> <!-- 引用方式2:以相對路徑的方式找到靜態資源位置 --> <!-- webapp/veiws/WEB-INFO/views/student.jsp,webapp/statics/css/bootstrap.min.css --> <link type="text/css" rel="stylesheet" href="../../statics/css/bootstrap.min.css" /> <link type="text/css" rel="stylesheet" href="../../statics/js/jquery.min.js" /> </head> <body> <img src="${pageContext.request.contextPath}/statics/img/logo.png" /> <img src="../../statics/img/logo.png" /> </body> ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看