auto-config.xml 1.54 KB
<?xml version="1.0" encoding="UTF-8"?>

<config>
	<group>

		<!-- ************************** web namespace ******************************* -->
		<property name="yoho.unions.env.namespace" defaultValue="union" description="应用命名空间" />

		<property name="jdbc.mysql.readonlyinslave" defaultValue="true" description="读操作是否只在从库" />

		<!-- memcached -->
		<property name="cache.servers.union.address" defaultValue="memcache.union.yohoops.org:11211" description="" />
		
		<!-- MQ -->
		<property name="rabbit.mq.host" defaultValue="192.168.102.162" description="" />
		<property name="rabbit.mq.port" defaultValue="32810" description="" />
		<property name="rabbit.mq.username" defaultValue="yoho" description="" />
		<property name="rabbit.mq.password" defaultValue="yoho" description="" />
		<property name="rabbit.mq.virtualHost" defaultValue="/yoho" description="" />
		
		<property name="activeTime" defaultValue="86400" description="点击到激活的回溯期(秒)" />
		
		<property name="draw.writeFile.delay" defaultValue="60" description="元宵节抽签活动,定时写文件的周期(分)" />
		
	</group>
	<script>
		<generate template="META-INF/autoconf/config.properties" destfile="WEB-INF/classes/config.properties" />
		<generate template="META-INF/autoconf/databases.yml" destfile="WEB-INF/classes/databases.yml" />
		<generate template="META-INF/autoconf/logback.xml" destfile="WEB-INF/classes/logback.xml" />
		<generate template="META-INF/autoconf/services.yml" destfile="WEB-INF/classes/services.yml" />
	</script>
</config>