---
title: "jeecms v5 系统中约定的目录结构和常量"
author: "longgangbai"
date: "2014-06-13T15:11:43Z"
tags: []
categories: ["互联网"]
slug: "jeecms-v5"
draft: false
lastmod: "2014-06-13T15:11:43Z"
id: 2079387
url: "https://topmanopensource.iteye.com/blog/2079387"
---

# JEECMS非技术相关的约定

## 针对系统中常量约定

   Jeecms项目中常量约定在com.jeecms.cms.Constants中。

package com.jeecms.cms;

 

/\**

 * CMS常量

 * 

 \*/

public class Constants {

/\**

 * 首页模板

 \*/

public static final String TPLDIR\_INDEX = "index";

/\**

 * 栏目页模板

 \*/

public static final String TPLDIR\_CHANNEL = "channel";

/\**

 * 内容页模板

 \*/

public static final String TPLDIR\_CONTENT = "content";

/\**

 * 单页模板

 \*/

public static final String TPLDIR\_ALONE = "alone";

/\**

 * 专题模板

 \*/

public static final String TPLDIR\_TOPIC = "topic";

/\**

 * 会员中心模板

 \*/

public static final String TPLDIR\_MEMBER = "member";

/\**

 * 专用模板

 \*/

public static final String TPLDIR\_SPECIAL = "special";

/\**

 * 公用模板

 \*/

public static final String TPLDIR\_COMMON = "common";

/\**

 * 文库模板

 \*/

public static final String TPLDIR\_LIBRARY = "library";

/\**

 * 客户端包含模板

 \*/

public static final String TPLDIR\_CSI = "csi";

/\**

 * 客户端包含用户自定义模板

 \*/

public static final String TPLDIR\_CSI\_CUSTOM = "csi\_custom";

/\**

 * 服务器端包含模板

 \*/

public static final String TPLDIR\_SSI = "ssi";

/\**

 * 标签模板

 \*/

public static final String TPLDIR\_TAG = "tag";

/\**

 * 评论模板

 \*/

public static final String TPLDIR\_COMMENT = "comment";

/\**

 * 留言模板

 \*/

public static final String TPLDIR\_GUESTBOOK = "guestbook";

/\**

 * 站内信模板

 \*/

public static final String TPLDIR\_MESSAGE = "message";

/\**

 * 列表样式模板

 \*/

public static final String TPLDIR\_STYLE\_LIST = "style\_list";

/\**

 * 列表样式模板

 \*/

public static final String TPLDIR\_STYLE\_PAGE = "style\_page";

 

/\**

 * 模板后缀

 \*/

public static final String TPL\_SUFFIX = ".html";

/\**

 * 上传路径

 \*/

public static final String UPLOAD\_PATH = "/u/cms/";

 

/\**

 * 文库路径

 \*/

public static final String LIBRARY\_PATH = "/wenku/";

/\**

 * 资源路径

 \*/

public static final String RES\_PATH = "/r/cms";

/\**

 * 模板路径

 \*/

public static final String TPL\_BASE = "/WEB-INF/t/cms";

/\**

 * 全文检索索引路径

 \*/

public static final String LUCENE\_PATH = "/WEB-INF/lucene";

/\**

 * 列表样式模板路径

 \*/

public static final String TPL\_STYLE\_LIST = "/WEB-INF/t/cms\_sys\_defined/style\_list/style\_";

/\**

 * 内容分页模板路径

 \*/

public static final String TPL\_STYLE\_PAGE\_CONTENT = "/WEB-INF/t/cms\_sys\_defined/style\_page/content\_";

/\**

 * 列表分页模板路径

 \*/

public static final String TPL\_STYLE\_PAGE\_CHANNEL = "/WEB-INF/t/cms\_sys\_defined/style\_page/channel\_";

/\**

 * 页面禁止访问

 \*/

public static final String ERROR\_403 = "error/403";

/\**

 * 数据库备份路径

 \*/

public static final String BACKUP\_PATH = "/WEB-INF/buckup";

/\**

 * 数据库备份文本前缀

 \*/

public static String ONESQL\_PREFIX="JEECMS\_BACKUP\_";

/\**

 * 防火墙配置文件

 \*/

public static String FIREWALL\_CONFIGPATH = "/WEB-INF/config/firewall.properties";

}

 jeecms\_sys：为jeeadmin的模版文件存放目录。

&lt;!--EndFragment--&gt;