📄 releasetemplate.java
字号:
/*
* Created on 2007-9-4
* Last modified on 2007-9-4
* Powered by YeQiangWei.com
*/
package com.yeqiangwei.club.release;
import java.io.IOException;
import org.apache.log4j.Logger;
import com.yeqiangwei.club.release.cfg.ReleaseProvider;
import com.yeqiangwei.io.File;
public class ReleaseTemplate {
private static final Logger logger = Logger.getLogger(ReleaseTemplate.class);
public static final int INDEX = 1;
public static final int LIST = 2;
public static final int PAGE = 3;
public static String getTemplate(int i){
String template = null;
String path = ReleaseProvider.getReleaseConfig().getPath();
if(!path.endsWith(File.separator)){
path = path + File.separator;
}
switch(i){
case INDEX:
path = path+"index.jsp";
break;
case LIST:
path = path+"list.jsp";
break;
case PAGE:
path = path+"page.jsp";
break;
}
try {
template = File.readText(path,"utf-8");
} catch (IOException e) {
logger.error(e.toString());
}
return template;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -