博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
2012版jeecms修改后台访问路径
阅读量:7165 次
发布时间:2019-06-29

本文共 1274 字,大约阅读时间需要 4 分钟。

修改后台访问路径:

如:http://localhost:8080/jeeadmin/jeecms/login.do

改:http://localhost:8080/admin/index.do

修改方法:

1、将xml中的

<servlet-mapping>

<servlet-name>JeeCmsAdmin</servlet-name>

<url-pattern>/jeecms/admin/*<url-pattern>

</servlet-mapping>

2、将jeecms-servlet-admin.xml中的

<property name="returnUrl" value="/jeecms/admin/index.do"/>

改为

<property name="loginUrl" value="/hailou/login.do"/>

<property name="returnUrl" value="/hailou/index.do"/>

<entry key="appBase" value="/hailou"/>

改为

<entry key="appBase" value="/jeecms/admin"/>

3、将这个AdminContextInterceptor类中的getURL(HttpServletRequest request) 方法中的变量count=2改为count=1

 

jeecms内容页打开慢的原因

这是因为jeecms员工在做页面时,有四个文件中将css文件引入的地址是http://192.168.0.121/....j将这个去了就行,所涉及的页面有四个,产品内容.html,新闻内容.html,视频内容.html,会员注册页.html。

 

启动服务器的时候抛出dic.home should not be a file,but a directory!

分析问题:这是因为PaodingMaker.getFile()方法中采用了老版本的java.net.URL.getFile(),不能够识别中文或者空格,只有采用URL.toURI().getPath()才能识别汉字与空格。

解决问题:需要修改一下Paoding中的代码了。找到PaodingMaker.java的setDicHomeProperties方法,修改 File dicHomeFile= getFile(dicHome);为

File dicHomeFile2 = getFile(dicHome);

String path="";
try {
path = URLDecoder.decode(dicHomeFile2.getPath(),"UTF-8");
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
File dicHomeFil

 

转载于:https://www.cnblogs.com/bolgbo/p/6549112.html

你可能感兴趣的文章