把原本的jeeadmin/jeecms/改为 system/admin/
1. 打开WEB-INF/web.xml ,把servlet-name 为JeeCmsAdmin下替换为更改的路径
<servlet-mapping>
<servlet-name>JeeCmsAdmin</servlet-name>
<url-pattern>/system/admin/*</url-pattern>
</servlet-mapping>
2.打开WEB-INF/jeecms-servlet-admin.xml,找到entry key为"appBase"的标签 更改value值
<entry key="appBase" value="/system/admin"/>
3.打开WEB-INF/shiro-context.xml 以下代码中jeeadmin/jeecms 替换为更改的路径
<!--anon匿名 authc登录认证 user用户已登录 logout退出filter-->
<property name="filterChainDefinitions">
<value>
*.jspx = anon
*.jhtml = anon
/member/forgot_password.jspx = anon
/member/password_reset.jspx = anon
/member/jobapply.jspx = anon
/login.jspx = authc
/logout.jspx = logout
/member/** = user
/system/admin/login.do = authc
/system/admin/logout.do = logout
/system/admin/** =user
</value>
</property>
</bean>
<!-- Shiro Filter -->
<bean id="adminUrlBean" class="com.jeecms.core.security.CmsAdminUrl">
<property name="adminLogin" value="/system/admin/login.do"/>
<property name="adminPrefix" value="/system/admin/"/>
<!-- <property name="adminLogin" value="/jeeadmin/jeecms/login.do"/>
<property name="adminPrefix" value="/jeeadmin/jeecms/"/> -->
</bean>
<bean id="authcFilter" class="com.jeecms.core.security.CmsAuthenticationFilter" parent="adminUrlBean">
<!-- <property name="adminIndex" value="/jeeadmin/jeecms/index.do"/> -->
<property name="adminIndex" value="/system/admin/index.do"/>
</bean>