支持多Sheet的Excle批量导入工具

等不忙了做一个支持多Sheet的Excle批量导入工具,初步设想配置文件如下:


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<root>
    <comment>Excel多Sheet批量导入工具配置文件</comment>
	<dataSource description=""
	            dsDriverClass=""
				dsUrl=""
				dsUserName=""
				dsPassword=""/>
	     
	<excelFile name = "c:/text.xls" >
	     <sheet sheetIndex="0" tableName = "table0">
		    <colume sheetColumeIndex="" dbColumeName="" dbIsNullAble="true"/> 
			<colume sheetColumeIndex="" dbColumeName="" dbIsNullAble="true"/> 
			<colume sheetColumeIndex="" dbColumeName="" dbIsNullAble="true"/> 
			<colume sheetColumeIndex="" dbColumeName="" dbIsNullAble="true"/> 
		 </sheet>

		 <sheet index="1" tableName = "table1">
		    <colume sheetColumeIndex="" dbColumeName="" dbIsNullAble="true"/> 
			<colume sheetColumeIndex="" dbColumeName="" dbIsNullAble="true"/> 
			<colume sheetColumeIndex="" dbColumeName="" dbIsNullAble="true"/> 
			<colume sheetColumeIndex="" dbColumeName="" dbIsNullAble="true"/> 
		 </sheet>

		 <sheet index="2" tableName = "table2">
		    <colume sheetColumeIndex="" dbColumeName="" dbIsNullAble="true"/> 
			<colume sheetColumeIndex="" dbColumeName="" dbIsNullAble="true"/> 
			<colume sheetColumeIndex="" dbColumeName="" dbIsNullAble="true"/> 
			<colume sheetColumeIndex="" dbColumeName="" dbIsNullAble="true"/> 
		 </sheet>

		 <sheet index="3" tableName = "table3">
		    <colume sheetColumeIndex="" dbColumeName="" dbIsNullAble="true"/> 
			<colume sheetColumeIndex="" dbColumeName="" dbIsNullAble="true"/> 
			<colume sheetColumeIndex="" dbColumeName="" dbIsNullAble="true"/> 
			<colume sheetColumeIndex="" dbColumeName="" dbIsNullAble="true"/> 
		 </sheet>
	</excelFile>
</root>


你可能感兴趣的:(java,xml,Excel,sun)