前臺(tái)門戶系統(tǒng)首頁菜單實(shí)現(xiàn)_第1頁
前臺(tái)門戶系統(tǒng)首頁菜單實(shí)現(xiàn)_第2頁
前臺(tái)門戶系統(tǒng)首頁菜單實(shí)現(xiàn)_第3頁
前臺(tái)門戶系統(tǒng)首頁菜單實(shí)現(xiàn)_第4頁
前臺(tái)門戶系統(tǒng)首頁菜單實(shí)現(xiàn)_第5頁
已閱讀5頁,還剩17頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

將首頁.html<%@pagelanguage="java"<%@pagelanguage="java"contentType="text/html;charset=UTF-8"pageEncoding="UTF-8"<%@<%@taglibprefix="c" /jsp/jstl/core"<%@taglibprefix="fmt" /jsp/jstl/fmt"<c:setvar="ctx"<mvc:resourceslocation="/WEB-INF/static/"="/**"<bean<propertyname="prefix"value="/WEB-<propertyname="suffix"、批量修改jsp中資源文件路css/替換為${ctx}/css/js/替換為$(ctx)/js/images/替換為、ego-manager-pojo中GoodsCategoryGoodsCategoryExampleego-rpc-pojoGoodsCategoryVopackageimportimportpublicclassGoodsCategoryVoimplementsSerializableprivateList<GoodsCategoryVo>*idprivateShort*商品分類名稱privateStringpublicList<GoodsCategoryVo>getChildren()return}publicvoidsetChildren(List<GoodsCategoryVo>children)this.children=}publicShortgetId()return}publicvoidsetId(Shortid)this.id=}publicStringgetName()return}publicvoidsetName(Stringname)=}publicStringtoString()return"GoodsCategoryVo{"+"children="+children+",id="+id+",name='"+name+'\''}}、ego-manager-mapperGoodsCategoryMapper.java、ego-rpc-mapperpackagepackageimportimport@version(版本號(hào)@author(創(chuàng)建人@since:JDKpublicinterfaceGoodsCategoryServiceI*List<GoodsCategoryVo>}ego-rpc-serviceImpl中packageimportimportimportcom.ego.pojo.GoodsCategoryExample;importcom.ego.vo.GoodsCategoryVo;importimportimportimport@version(版本號(hào)@author(創(chuàng)建人@since:JDKpublicclassGoodsCategoryServiceImplimplementsGoodsCategoryServiceIprivateGoodsCategoryMapper*publicList<GoodsCategoryVo>selectCategoryListFroPortal()return}GoodsCategoryExampleexample=newwhere0,List<GoodsCategory>gcList1=List<GoodsCategoryVo>gcvList1=newfor(GoodsCategorygc1:gcList1)GoodsCategoryVogcv1=new //重新指定where條件parentId,2List<GoodsCategory>gcList2=goodsCategoryMapper.selectByExample(example);List<GoodsCategoryVo>gcvList2=newfor(GoodsCategorygc2:gcList2)GoodsCategoryVogcv2=new //重新指定where條件parentId,3List<GoodsCategory>gcList3=goodsCategoryMapper.selectByExample(example);List<GoodsCategoryVo>gcvList3=newfor(GoodsCategorygc3:gcList3)GoodsCategoryVogcv3=new }}}<?xml<?xmlversion="1.0"encoding="UTF-<beans "" return}}<?xmlversion="1.0"<?xmlversion="1.0"encoding="UTF-<beans "" <dubbo:registryprotocol="zookeeper" <dubbo:protocolname="dubbo"port="${dubbo.port}"<bean oService" <beanid="goodsCategoryService" oServiceI" 中 <dubbo:registryprotocol="zookeeper" oService" oServiceI"packagepackageimportimportcom.ego.util.JsonUtil;importorg.junit.Test;importimportimportimportimport@version(版本號(hào)@author(創(chuàng)建人@since:JDK@ContextConfiguration(locations="classpath:spring/applicationContext-*.xml")publicclassGoodsCategoryServiceITest{privateGoodsCategoryServiceIpublicvoidtestSelectCategoryListFroPortal()List<GoodsCategoryVogcvListgoodsCategoryService.selectCategoryListFroPortal();System.out.println("結(jié)果:"+JsonUtil.object2JsonStr(gcvList));}}}springdataredis<?xmlversion="1.0"encoding="UTF-<beans <beanid="jedisPoolConfig" 最大連接數(shù)<propertyname="maxTotal"<propertyname="maxIdle"<propertyname="maxWaitMillis"<propertyname="testOnBorrow"<bean p:use-pool="true"p:host-name="0"p:port="6379" <constructor-argname="poolConfig" <bean te" <property<bean<property<bean<property<bean<property<bean、修改ego-rpc-serviceImpl的packageimportimportimportcom.ego.pojo.GoodsCategoryExample;importcom.ego.util.JsonUtil;importimportimportimport importimport@version(版本號(hào)@author(創(chuàng)建人@since:JDKpublicclassGoodsCategoryServiceImplimplementsGoodsCategoryServiceIprivate te<String,Object> privateGoodsCategoryMapper**publicList<GoodsCategoryVo>selectCategoryListFroPortal()List<GoodsCategoryVo>list=null;StringredisKey="goodsCategory:list";StringgoodsJson=(String)redisTem if(null!=goodsJson)returnJsonUtil.jsonToList(goodsJson,list=if(list!=null&&list.size()> return}*publicList<GoodsCategoryVo>selectCategoryListFroViewNormal()GoodsCategoryExampleexample=newwhere00).andLevelEqualTo((byte)1);List<GoodsCategory>gcList1=List<GoodsCategoryVo>gcvList1=newfor(GoodsCategorygc1:gcList1)GoodsCategoryVogcv1=new List<GoodsCategory>gcList2=List<GoodsCategoryVo>gcvList2=newfor(GoodsCategorygc2:gcList2)GoodsCategoryVogcv2=newList<GoodsCategory>gcList3=List<GoodsCategoryVo>gcvList3=newfor(GoodsCategorygc3:gcList3)GoodsCategoryVogcv3=new }}}return}}、packageimportpackageimportimportimportimportimport importimport@version(版本號(hào)@author(創(chuàng)建人@since:JDK publicclassGoodsCategoryControllerprivateGoodsCategoryServiceI publicList<GoodsCategoryVo>goodsCategoryList()return}}li<script<scripttype="text/javascript"<script te" {{for(vari=0;i<it.length;i++){<li<h4class="cat_tit"><ahref="#"class="cat_tit_link">{{=it[i].name}}</a><span<div<div{{for(j=0;j<it[i].children.length;j++){<dl<dt><a{{for(k=0;k<it[i].children[j].children.length;k++){<liclass="first"><a{{}{{}<div<li><ahref="#">奧利奧<li><ahref="#">光明<li><a <li><a <li><ahref="#">康師傅<li><ahref="#">蒙牛<li><a<li><a<li><a<li><a<li><a

<li><ahref="#">清新水果季全 {{}<script$(function()data:"",typetype:success:function(result)vartempl= $('.cat_item').mousemove(function()$('.cat_item').mouseleave(function() error:function()}Redisprivateprivate te<String,Object> privateStringpublicBaseResultcategotySave(GoodsCategorygoodsCategory)intresult=if(result>0)redis returnBaseResult.success();}return//returnresult>0?BaseResult.success():}*@parampublicBaseResultcategoryDelete(Shortid)intresult=goodsCategoryMapper.deleteByPrimaryKey(id);if(result>0){//刪除成功后清除redis緩存returnBaseResult.success();}return//returnresult>0?BaseResult.success():}@parampublicBaseResultcategoryListDelete(Short[]ids)intresult=goodsCategoryMapper.deleteBatchByPrimaryKey(ids);if(result>0){returnBaseR

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論