我們前面做了那麼多準備不是白做的,大家如果堅持到現在,真的值得給自己乙個擁抱!現在我們就來開始著手處理後台管理系統。
首先,大家需要整合淘淘**的後台管理系統靜態頁面,即需要將以下css、js、jsp三個資料夾新增到taotao-manager-web工程中的web-inf下。
整合靜態頁面之後的效果為:
為什麼我們把jsp放到web-inf下面呢?這是因為我們在taotao-mamager-web工程的springmvc.xml檔案中配置了關於jsp的視**析器,把jsp放到了web-inf下,所以為了保持一致,我們把jsp放到了web-inf下。當然,也可以修改視**析器配置,只要兩者路徑一致即可。
由於我們在web.xml檔案中定義的url攔截形式為「/」表示攔截所有的url請求,包括靜態資源例如css、js等,所以需要在springmvc.xml中新增資源對映標籤:
location="/web-inf/js/"
location="/web-inf/css/"
方便大家複製,現把整個springmvc.mxl檔案貼上如下:
<?xml version="1.0" encoding="utf-8"?>
xmlns=""
xmlns:xsi=""
xmlns:p=""
xmlns:context=""
xmlns:dubbo=""
xmlns:mvc=""
xsi:schemalocation=" /spring-beans-4.2.xsd
/spring-mvc-4.2.xsd
/dubbo.xsd
/spring-context-4.2.xsd">
base-package="com.taotao.controller" />
class="org.springframework.web.servlet.view.internalresourceviewresolver">
name="prefix"
value="/web-inf/jsp/" />
name="suffix"
value=".jsp" />
bean>
location="/web-inf/js/"
location="/web-inf/css/"
name="taotao-manager-web"/>
protocol="zookeeper"
address="192.168.25.128:2181"/>
inte***ce="com.taotao.service.itemservice"
id="itemservice" />
beans>
商城專案實戰28 內容管理
請求的url content query list 響應的資料格式 easyuiresult service public classcontentserviceimplimplementscontentservice 引數 categoryid 響應的資料格式 taotaoresult 建立一可以...
Vue 後台管理專案13 許可權管理實現
1.1 完成roles元件靜態布局 elemenet元件 table 展開行 通過設定 type expand 和 scoped slot 可以開啟展開行功能,el table column 的模板會被渲染成為展開行的內容,展開行可訪問的屬性與使用自定義列模板時的 scoped slot 相同。傳送...
專案實戰 後台管理系統(三)
學生管理 student.html add student.html 新增 1 學生id 學生姓名 學生郵箱 所屬班級id 所屬班級 操作 edit student.html?nid 編輯 刪除 複製 add student.html 複製 edit student.html 複製 urls.py ...