ÎҵĵÚÒ»¸öFreeMarkerÄ£°åÉú³Éjava´úÂëµÄÀý×Ó
µÚÒ»²½.н¨Ò»¸öÄ£°åÎļþÒÔ.ftl½áβ¡£
IDAO.ftl
package com.media.dao;
import java.util.List;
import com.media.bean.${model_name};
import com.media.exceptions.DAOException;
/**
* ${model_name_cn}½Ó¿Ú
*
* @author ${author}
* @link ${link}
*
* @version $Revision: 1.00 $ $Date: ${date?string("yyyy-MM-dd HH:mm:ss")}
*/
public interface I${model_name}DAO extends IGenericDAO<${model_name}>{
/**
* ¸ù¾Ý${model_name_cn}±àºÅ²éÕÒ${model_name_cn}ÐÅÏ¢
*
* @param ${instant}Id ${model_name_cn}񅧏
* @return ${model_name} ${model_name_cn}¶ÔÏó
* @throws DAOException
*/
public ${model_name} find${model_name}ById(Long ${instant}Id) throws DAOException;
/**
* ÅúÁ¿ÎïÀíɾ³ý${model_name_cn}(²»¿É»Ö¸´)
* @param ${instant}Ids ${model_name_cn}񅧏
* @throws DAOException
*/
public void delete${model_name_list}(Long[] ${instant}Ids) throws DAOException;
/**
* ÎïÀíɾ³ý${model_name_cn}(²»¿É»Ö¸´)
* @param ${instant}Id ${model_name_cn}񅧏
* @throws DAOException
*/
public void delete${model_name}(Long ${instant}Id) throws DAOException;
/**
* ±£´æ${model_name_cn}
* @param ${instant}
* @throws DAOException
*/
public void save${model_name}(${model_name} ${instant}) throws DAOException;
/**
* ¸üÐÂ${model_name_cn}
* @param ${instant}
* @throws DAOException
*/
public void update${model_name}(${model_name} ${instant}) throws DAOException;
/**
* ÀûÓÃhqlÓï¾ä²éѯ${model_name_cn}ÐÅÏ¢
* @param hsql
* @throws DAOException
*/
public List<${model_name}> find${model_name_list}(String hsql) throws DAOException;
/**
* ÀûÓÃhqlÓï¾ä²éѯ${model_name_cn}ÐÅÏ¢
* @param hsql
* @throws DAOException
*/
public List<${model_name}> find${model_name_list}(String hsql,Object[] params) throws DAOException;
}
µÚ¶þ²½.дһ¸öfreemakerµÄ¹¤¾ßÀàÓÃÓÚÉú³É´úÂë¡£
FreeMarkerUtil.java
×¢Ò⣺¹¤³Ì±ØÐëÒýÈëfreemaker.jar
package com.media.test;
impor
Ïà¹ØÎĵµ£º
package com.joe;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Test
{
//½«×Ö·û´®µÄÊý×Ö×Ö·ûÊä³ö
public static void main(String[] args)
{
String str = "iu7i8hy4j ......
¡¾ÎÄÕ±êÌâ¡¿javaС³ÌÐò£¨1£©
¡¾ÎÄÕÂ×÷Õß¡¿Ôø½¡Éú
¡¾×÷ÕßÓÊÏä¡¿zengjiansheng1@126.com
¡¾×÷ÕßQQ¡¿190678908
¡¾×÷ÕßÉùÃ÷¡¿±¾ÈËˮƽÓÐÏÞ£¬Ê§ÎóÖ®´¦£¬¾´Çë¸÷λָ³ö¡£±¾ÈËÒÔǰдµÄһЩС³ÌÐò£¬·ÖÏíÒ»ÏÂÏ£Íû¶Ô¸÷λѧϰjavaÓаïÖú ^-^
***************************************************************************** ......
0¡¡ÒýÑÔ
´Ó¿ØÖÆ̨ÖжÁÈ¡Êý¾ÝÊÇÒ»¸ö±È½Ï³£ÓõŦÄÜ£¬ÔÚ JDK 5.0 ÒÔÇ°µÄ°æ±¾ÖеÄʵÏÖÊDZȽϸ´Ôӵģ¬ÐèÒªÊÖ¹¤´¦ÀíϵͳµÄÊäÈëÁ÷¡£ÓÐÒâ˼µÄÊÇ£¬´Ó JDK 5.0 °æ±¾¿ªÊ¼£¬ÄÜ´Ó¿ØÖÆ̨ÖÐÊäÈëÊý¾ÝµÄ·½·¨Ã¿Ôö¼ÓÒ»¸ö°æ±¾ºÅ£¬¾ÍÓÐÒ»ÖÖÐÂÔöµÄ·½·¨£¬ÕâÒ²Ôö¼ÓÁËÑ¡ÔñµÄÖÖÀ࣬¿ÉÒÔÒÀ¾Ý²»Í¬µÄÒªÇóÀ´½øÐÐÑ¡Ôñ¡£ÏÂÃæÀ´¿´Ò»Ï£¬¸÷¸ö°æ±¾ÖÐÈçºÎ´Ó¿ØÖ ......
дÈë
public static void Writer(String value) {
try{
File file2 = new File("F:\\countDB.txt");
if(!file2.exists()){
  ......
Õª×Ô£º°Ù¶È°Ù¿Æ ×÷Õߣºyefeizi ¸üÐÂʱ¼ä£º2009-10-11
JAVA¼ò½é
JavaÊÇÓÉSun Microsystems¹«Ë¾ÓÚ1995Äê5ÔÂÍƳöµÄJava³ÌÐòÉè¼ÆÓïÑÔ£¨ÒÔϼò³ÆJavaÓïÑÔ£©ºÍJavaƽ̨µÄ×ܳơ£ÓÃJavaʵÏÖµÄHotJavaä¯ÀÀÆ÷£¨Ö§³ÖJava applet£©ÏÔʾÁËJavaµÄ÷ÈÁ¦£º¿çƽ̨¡¢¶¯Ì¬µÄWeb¡¢Internet¼ÆËã¡£´Ó´ ......