⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 base.txt

📁 生成与Oracle相关的Ibatis相关配置文件及Java源码
💻 TXT
字号:
///--------------------------------------------------Top Header-----------------------------------------------------------
///-----------------------------------------------------------------------------------------------------------------------
$THEAD
/* Copyright (c) #YEAR# 胜利油田胜利软件有限责任公司 油田应用开发部. All rights reserved. */
///-------------------------------------------------Top Package-----------------------------------------------------------
///-----------------------------------------------------------------------------------------------------------------------
$TPACK
com.victorysoft.#PROJECT#
///--------------------------------------------------Bean Header----------------------------------------------------------
///-----------------------------------------------------------------------------------------------------------------------
$BHEAD
/**
 * #TABCOMT#
 * @version 1.0
 * @newtime #NEWTIME#
 * @author  胜利软件代码生成器
 * @since   JDK1.5.0
 */ 
///------------------------------------------------Interface Header-------------------------------------------------------
///-----------------------------------------------------------------------------------------------------------------------
$DHEAD
/**
 * #TABCOMT#接口
 * @version 1.0
 * @newtime #NEWTIME#
 * @author  胜利软件代码生成器
 * @since   JDK1.5.0
 */ 
///------------------------------------------------Implements Header------------------------------------------------------
///-----------------------------------------------------------------------------------------------------------------------
$IHEAD
/**
 * #TABCOMT#接口实现
 * @version 1.0
 * @newtime #NEWTIME#
 * @author  胜利软件代码生成器
 * @since   JDK1.5.0
 */ 
///--------------------------------------------------Factory Header-------------------------------------------------------
///-----------------------------------------------------------------------------------------------------------------------
$FHEAD
/**
 * #UPPROJECT#工厂
 * @version 1.0
 * @newtime #NEWTIME#
 * @author  胜利软件代码生成器
 * @since   JDK1.5.0
 */ 
///--------------------------------------------------SQL MAP Header-------------------------------------------------------
///-----------------------------------------------------------------------------------------------------------------------
$MHEAD
<!--
 * #TABCOMT# SQL MAP 配置
 * @version 1.0
 * @newtime #NEWTIME#
 * @author  胜利软件代码生成器
 * @since   JDK1.5.0
-->
///----------------------------------------------------Factory------------------------------------------------------------
///-------------------------------------------------Factory Model---------------------------------------------------------
$APPDAO
	/**
	 * 获取#TABCOMT#接口
	 */
	public #UPTABNAME#Dao get#UPTABNAME#Dao() {
		return (#UPTABNAME#Dao) getBean("#UPTABNAME#Dao");
	}
	
$FACTORY
#THEAD#
package #TPACK#.util;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;

#IMPTS#

#FHEAD#
public class #UPPROJECT#Factory{
	private static #UPPROJECT#Factory instance = new #UPPROJECT#Factory();

	private static XmlBeanFactory factory = null;

	public static #UPPROJECT#Factory getInstance() {
		if (factory == null) {
			ClassPathResource res = new ClassPathResource("applicationContext.xml");
			factory = new XmlBeanFactory(res);
		}
		return instance;
	}

	public Object getBean(String springBeanName) {
		return factory.getBean(springBeanName);
	}
	
	#APPDAOS#
}
///-----------------------------------------------------Log4j-------------------------------------------------------------
///--------------------------------------------------Log4j Model----------------------------------------------------------
$LOG4J
#### Use two appenders, one to log to console, another to log to a file
log4j.rootCategory=ERROR, stdout, R
# Print only messages of priority WARN or higher for your categoryWARN
log4j.category.your.category.name=ERROR
#### First appender writes to console
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
# Pattern to output the caller's file name and line number.
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n
#### Second appender writes to a file
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=d\:\\#PROJECT#.log
# Control the maximum log file size
log4j.appender.R.MaxFileSize=1000KB
# Archive log files (one backup file here)
log4j.appender.R.MaxBackupIndex=10
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d %p %l - %m%n
///-----------------------------------------------------BE END------------------------------------------------------------
$BEEND

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -