maven 导入数据库

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

一.mysql 配置 基本代码

 

1. pom.xml

文件配置:jeesite.property

jdbc.type=mysql
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/yaoshi?useUnicode=true&characterEncoding=utf-8
jdbc.username=root
jdbc.password=123456
  <properties><mysql.driver.version>5.1.13</mysql.driver.version>      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding></properties><dependencies><dependency><groupId>mysql</groupId><artifactId>mysql-connector-java</artifactId><version>5.1.13</version><scope>runtime</scope></dependency> </dependencies><profiles><!-- 初始化数据库 -->			<profile><id>init-db</id><dependencies><dependency><groupId>org.dbunit</groupId><artifactId>dbunit</artifactId><version>2.4.8</version></dependency><dependency><groupId>org.apache.poi</groupId><artifactId>poi</artifactId><version>3.2-FINAL</version></dependency></dependencies><build><plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-antrun-plugin</artifactId><version>1.7</version><configuration><target><!-- mysql --><property name="dbunit.datatype" value="org.dbunit.ext.mysql.MySqlDataTypeFactory" /><property file="src/main/resources/jeesite.properties" /><sql driver="${jdbc.driver}" url="${jdbc.url}" userid="${jdbc.username}" password="${jdbc.password}" onerror="continue" encoding="${project.build.sourceEncoding}"><classpath refid="maven.test.classpath" /><transaction src="db/sys/jeesite_${jdbc.type}.sql"/><transaction src="db/cms/jeesite_${jdbc.type}.sql"/></sql><taskdef name="dbunit" classname="org.dbunit.ant.DbUnitTask" classpathref="maven.test.classpath" /><!-- mysql、mssql --><dbunit driver="${jdbc.driver}" url="${jdbc.url}" userid="${jdbc.username}"password="${jdbc.password}"><dbconfig><property name="datatypeFactory" value="${dbunit.datatype}" /></dbconfig><classpath refid="maven.test.classpath" /><operation type="INSERT" src="db/sys/jeesite_data.xls" format="xls" transaction="true"/><operation type="INSERT" src="db/cms/jeesite_data.xls" format="xls" transaction="true"/></dbunit></target></configuration></plugin></plugins></build></profile></profiles>

2. 文件结构

164857_ANHj_1760858.png

3. 批处理命令:

@echo offset  MAVEN_HOME=D:\0-eclipse-work\1-work\1-jeesite-12-14\apache-maven-3.3.3
set  path=%MAVEN_HOME%/bin;%windir%/system32;%path%cd %~dp0
cd ..call mvn antrun:run -Pinit-dbcd db
pause

4.表数据结构:

165033_BzEv_1760858.png

5.生成的antrun 结构文件:

<?xml version="1.0" encoding="UTF-8" ?>
<project name="maven-antrun-" default="main"  >
<target name="main"><property name="dbunit.datatype" value="org.dbunit.ext.mysql.MySqlDataTypeFactory"/><property file="src/main/resources/jeesite.properties"/><sql onerror="continue" userid="${jdbc.username}" encoding="UTF-8" driver="${jdbc.driver}" password="${jdbc.password}" url="${jdbc.url}"><classpath refid="maven.test.classpath"/><transaction src="db/sys/jeesite_${jdbc.type}.sql"/><transaction src="db/cms/jeesite_${jdbc.type}.sql"/></sql><taskdef name="dbunit" classname="org.dbunit.ant.DbUnitTask" classpathref="maven.test.classpath"/><dbunit userid="${jdbc.username}" driver="${jdbc.driver}" password="${jdbc.password}" url="${jdbc.url}"><dbconfig><property name="datatypeFactory" value="${dbunit.datatype}"/></dbconfig><classpath refid="maven.test.classpath"/><operation transaction="true" src="db/sys/jeesite_data.xls" format="xls" type="INSERT"/><operation transaction="true" src="db/cms/jeesite_data.xls" format="xls" type="INSERT"/></dbunit>
</target>
</project>

二.jeesite的全部xml配置

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"><modelVersion>4.0.0</modelVersion><groupId>com.thinkgem.jeesite</groupId><artifactId>jeesite</artifactId><version>1.2.7</version><packaging>war</packaging><name>JeeSite</name><url>http://thinkgem.github.com/jeesite</url><inceptionYear>2012-2016</inceptionYear><!-- 项目属性 --><properties><!-- main version setting --><spring.version>4.1.9.RELEASE</spring.version><validator.version>5.2.4.Final</validator.version><mybatis.version>3.2.8</mybatis.version><mybatis-spring.version>1.2.3</mybatis-spring.version><druid.version>1.0.18</druid.version><ehcache.version>2.6.11</ehcache.version><ehcache-web.version>2.0.4</ehcache-web.version><shiro.version>1.2.3</shiro.version><sitemesh.version>2.4.2</sitemesh.version><activiti.version>5.21.0</activiti.version><!-- tools version setting --><slf4j.version>1.7.7</slf4j.version><commons-lang3.version>3.3.2</commons-lang3.version><commons-io.version>2.4</commons-io.version><commons-codec.version>1.9</commons-codec.version><commons-fileupload.version>1.3.1</commons-fileupload.version><commons-beanutils.version>1.9.1</commons-beanutils.version><jackson.version>2.2.3</jackson.version><fastjson.version>1.1.40</fastjson.version><xstream.version>1.4.7</xstream.version><guava.version>17.0</guava.version><dozer.version>5.5.1</dozer.version><poi.version>3.9</poi.version><freemarker.version>2.3.20</freemarker.version><!-- jdbc driver setting --><mysql.driver.version>5.1.30</mysql.driver.version><oracle.driver.version>10.2.0.4.0</oracle.driver.version><mssql.driver.version>1.3.1</mssql.driver.version><!-- environment setting --><jdk.version>1.6</jdk.version><tomcat.version>2.2</tomcat.version><jetty.version>7.6.14.v20131031</jetty.version><webserver.port>8181</webserver.port><project.build.sourceEncoding>UTF-8</project.build.sourceEncoding><downloadSources>true</downloadSources></properties><!-- 设定主仓库,按设定顺序进行查找。 --><repositories><repository><id>jeesite-repos</id><name>Jeesite Repository</name><url>http://maven.aliyun.com/nexus/content/groups/public</url></repository></repositories><!-- 设定插件仓库 --><pluginRepositories> <pluginRepository><id>jeesite-repos</id><name>Jeesite Repository</name><url>http://maven.aliyun.com/nexus/content/groups/public</url></pluginRepository></pluginRepositories> <!-- 依赖项定义 --><dependencies><!-- SPRING begin --><dependency><groupId>org.springframework</groupId><artifactId>spring-core</artifactId><version>${spring.version}</version><exclusions><exclusion><groupId>commons-logging</groupId><artifactId>commons-logging</artifactId></exclusion></exclusions></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-beans</artifactId><version>${spring.version}</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-context</artifactId><version>${spring.version}</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-context-support</artifactId><version>${spring.version}</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-aop</artifactId><version>${spring.version}</version><exclusions><exclusion><groupId>commons-logging</groupId><artifactId>commons-logging</artifactId></exclusion></exclusions></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-tx</artifactId><version>${spring.version}</version></dependency><!-- spring orm --><dependency><groupId>org.springframework</groupId><artifactId>spring-orm</artifactId><version>${spring.version}</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-jdbc</artifactId><version>${spring.version}</version></dependency><!-- bean validate --><dependency><groupId>org.hibernate</groupId><artifactId>hibernate-validator</artifactId><version>${validator.version}</version></dependency><!-- SPRING end --><!-- AOP begin --><dependency><groupId>org.aspectj</groupId><artifactId>aspectjrt</artifactId><version>1.7.4</version></dependency><dependency><groupId>org.aspectj</groupId><artifactId>aspectjweaver</artifactId><version>1.7.4</version></dependency><dependency><groupId>cglib</groupId><artifactId>cglib</artifactId><version>3.1</version></dependency><!-- AOP end --><!-- PERSISTENCE begin --><!-- MyBatis --><dependency><groupId>org.mybatis</groupId><artifactId>mybatis</artifactId><version>${mybatis.version}</version></dependency><dependency><groupId>org.mybatis</groupId><artifactId>mybatis-spring</artifactId><version>${mybatis-spring.version}</version></dependency><!-- connection pool --><dependency><groupId>com.alibaba</groupId><artifactId>druid</artifactId><version>${druid.version}</version></dependency><!-- jdbc driver --><dependency><groupId>mysql</groupId><artifactId>mysql-connector-java</artifactId><version>${mysql.driver.version}</version><scope>runtime</scope></dependency><dependency><groupId>com.oracle</groupId><artifactId>ojdbc14</artifactId><version>${oracle.driver.version}</version><scope>system</scope><systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/ojdbc14-10.2.0.4.0.jar</systemPath></dependency><dependency><groupId>net.sourceforge.jtds</groupId><artifactId>jtds</artifactId><version>${mssql.driver.version}</version><scope>runtime</scope></dependency><!-- PERSISTENCE end --><!-- WEB begin --><dependency><groupId>org.springframework</groupId><artifactId>spring-web</artifactId><version>${spring.version}</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-webmvc</artifactId><version>${spring.version}</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-oxm</artifactId><version>${spring.version}</version></dependency><dependency><groupId>opensymphony</groupId><artifactId>sitemesh</artifactId><version>${sitemesh.version}</version></dependency><dependency><groupId>taglibs</groupId><artifactId>standard</artifactId><version>1.1.2</version><type>jar</type></dependency><dependency><groupId>javax.servlet</groupId><artifactId>jstl</artifactId><version>1.2</version><type>jar</type></dependency><dependency><groupId>javax.servlet</groupId><artifactId>servlet-api</artifactId><version>2.5</version><scope>provided</scope></dependency><dependency><groupId>javax.servlet.jsp</groupId><artifactId>jsp-api</artifactId><version>2.1</version><scope>provided</scope></dependency><!-- <dependency><groupId>javax.servlet</groupId><artifactId>javax.servlet-api</artifactId><version>3.0.1</version><scope>provided</scope></dependency><dependency><groupId>javax.servlet.jsp</groupId><artifactId>jsp-api</artifactId><version>2.2</version><scope>provided</scope></dependency> --><!-- WEB end --><!-- CACHE begin --><dependency><groupId>net.sf.ehcache</groupId><artifactId>ehcache-core</artifactId><version>${ehcache.version}</version></dependency><dependency><groupId>net.sf.ehcache</groupId>  <artifactId>ehcache-web</artifactId>  <version>${ehcache-web.version}</version></dependency><dependency><groupId>redis.clients</groupId><artifactId>jedis</artifactId><version>2.5.1</version></dependency><!-- CACHE end --><!-- SECURITY begin --><dependency><groupId>org.apache.shiro</groupId><artifactId>shiro-core</artifactId><version>${shiro.version}</version></dependency><dependency><groupId>org.apache.shiro</groupId><artifactId>shiro-spring</artifactId><version>${shiro.version}</version></dependency><dependency><groupId>org.apache.shiro</groupId><artifactId>shiro-cas</artifactId><version>${shiro.version}</version><exclusions><exclusion><groupId>commons-logging</groupId><artifactId>commons-logging</artifactId></exclusion></exclusions></dependency><dependency><groupId>org.apache.shiro</groupId><artifactId>shiro-web</artifactId><version>${shiro.version}</version></dependency><dependency><groupId>org.apache.shiro</groupId><artifactId>shiro-ehcache</artifactId><version>${shiro.version}</version></dependency><!-- SECURITY end --><!-- Activiti --><dependency><groupId>org.activiti</groupId><artifactId>activiti-engine</artifactId><version>${activiti.version}</version></dependency><dependency><groupId>org.activiti</groupId><artifactId>activiti-spring</artifactId><version>${activiti.version}</version></dependency><dependency><groupId>org.activiti</groupId><artifactId>activiti-explorer</artifactId><version>${activiti.version}</version><exclusions><exclusion><artifactId>vaadin</artifactId><groupId>com.vaadin</groupId></exclusion><exclusion><artifactId>dcharts-widget</artifactId><groupId>org.vaadin.addons</groupId></exclusion><exclusion><artifactId>activiti-simple-workflow</artifactId><groupId>org.activiti</groupId></exclusion></exclusions></dependency><dependency><groupId>org.activiti</groupId><artifactId>activiti-modeler</artifactId><version>${activiti.version}</version></dependency><dependency><groupId>org.activiti</groupId><artifactId>activiti-diagram-rest</artifactId><version>${activiti.version}</version></dependency><!-- 支持activiti缓存 --><!-- <dependency><groupId>org.infinispan</groupId><artifactId>infinispan-core</artifactId><version>5.1.7.Final</version></dependency> --><!-- LOGGING begin --><dependency><groupId>org.slf4j</groupId><artifactId>slf4j-api</artifactId><version>${slf4j.version}</version></dependency><dependency><groupId>org.slf4j</groupId><artifactId>slf4j-log4j12</artifactId><version>${slf4j.version}</version></dependency><!-- common-logging 实际调用slf4j --><dependency><groupId>org.slf4j</groupId><artifactId>jcl-over-slf4j</artifactId><version>${slf4j.version}</version></dependency><!-- java.util.logging 实际调用slf4j --><dependency><groupId>org.slf4j</groupId><artifactId>jul-to-slf4j</artifactId><version>${slf4j.version}</version></dependency><!-- LOGGING end --><!-- GENERAL UTILS begin --><dependency><groupId>org.apache.commons</groupId><artifactId>commons-lang3</artifactId><version>${commons-lang3.version}</version></dependency><dependency><groupId>commons-io</groupId><artifactId>commons-io</artifactId><version>${commons-io.version}</version></dependency><dependency><groupId>commons-codec</groupId><artifactId>commons-codec</artifactId><version>${commons-codec.version}</version></dependency><dependency><groupId>commons-fileupload</groupId><artifactId>commons-fileupload</artifactId><version>${commons-fileupload.version}</version></dependency><dependency><groupId>commons-beanutils</groupId><artifactId>commons-beanutils</artifactId><version>${commons-beanutils.version}</version><exclusions><exclusion><groupId>commons-logging</groupId><artifactId>commons-logging</artifactId></exclusion></exclusions></dependency><!-- google java lib --><dependency><groupId>com.google.guava</groupId><artifactId>guava</artifactId><version>${guava.version}</version></dependency><!-- jackson json --><dependency><groupId>com.fasterxml.jackson.core</groupId><artifactId>jackson-core</artifactId><version>${jackson.version}</version></dependency><dependency><groupId>com.fasterxml.jackson.core</groupId><artifactId>jackson-databind</artifactId><version>${jackson.version}</version></dependency><dependency><groupId>com.fasterxml.jackson.core</groupId><artifactId>jackson-annotations</artifactId><version>${jackson.version}</version></dependency><dependency><groupId>com.fasterxml.jackson.module</groupId><artifactId>jackson-module-jaxb-annotations</artifactId><version>${jackson.version}</version></dependency><!-- fastjson json<dependency><groupId>com.alibaba</groupId><artifactId>fastjson</artifactId><version>${fastjson.version}</version></dependency> --><!-- xstream xml --><dependency><groupId>com.thoughtworks.xstream</groupId><artifactId>xstream</artifactId><version>${xstream.version}</version></dependency><!-- pojo copy --><dependency><groupId>net.sf.dozer</groupId><artifactId>dozer</artifactId><version>${dozer.version}</version></dependency><!-- freemarker engine --><dependency><groupId>org.freemarker</groupId><artifactId>freemarker</artifactId><version>${freemarker.version}</version></dependency><!-- email --><dependency><groupId>javax.mail</groupId><artifactId>mail</artifactId><version>1.4.7</version></dependency><dependency><groupId>javax.activation</groupId><artifactId>activation</artifactId><version>1.1.1</version></dependency><!-- poi office --><dependency><groupId>org.apache.poi</groupId><artifactId>poi</artifactId><version>${poi.version}</version></dependency><dependency><groupId>org.apache.poi</groupId><artifactId>poi-ooxml</artifactId><version>${poi.version}</version></dependency><dependency><groupId>org.apache.poi</groupId><artifactId>poi-ooxml-schemas</artifactId><version>${poi.version}</version></dependency><!-- image util --><dependency><groupId>com.drewnoakes</groupId><artifactId>metadata-extractor</artifactId><version>2.6.2</version></dependency><!-- 条形码、二维码生成  --><dependency><groupId>com.google.zxing</groupId><artifactId>core</artifactId><version>2.2</version></dependency><dependency><groupId>com.google.zxing</groupId><artifactId>javase</artifactId><version>2.2</version></dependency><!-- 中文分词 --><dependency><groupId>org.wltea</groupId><artifactId>analyzer</artifactId><version>2012_u6</version><scope>system</scope><systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/analyzer-2012_u6.jar</systemPath></dependency><!-- GENERAL UTILS end --><!-- CKFinder begin --><dependency><groupId>net.coobird</groupId><artifactId>thumbnailator</artifactId><version>0.4.2</version><scope>system</scope><systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/thumbnailator-0.4.2.jar</systemPath></dependency><dependency><groupId>com.ckfinder</groupId><artifactId>apache-ant-zip</artifactId><version>2.3</version><scope>system</scope><systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/apache-ant-zip-2.3.jar</systemPath></dependency><dependency><groupId>com.ckfinder</groupId><artifactId>ckfinder</artifactId><version>2.3</version><scope>system</scope><systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/ckfinder-2.3.jar</systemPath></dependency><dependency><groupId>com.ckfinder</groupId><artifactId>ckfinderplugin-fileeditor</artifactId><version>2.3</version><scope>system</scope><systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/ckfinderplugin-fileeditor-2.3.jar</systemPath></dependency><dependency><groupId>com.ckfinder</groupId><artifactId>ckfinderplugin-imageresize</artifactId><version>2.3</version><scope>system</scope><systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/ckfinderplugin-imageresize-2.3.jar</systemPath></dependency><!-- CKFinder end --><!-- TEST begin --><dependency><groupId>junit</groupId><artifactId>junit</artifactId><version>4.11</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-test</artifactId><version>${spring.version}</version></dependency><!-- TEST end --><!-- User Agent --><dependency><groupId>bitwalker</groupId><artifactId>UserAgentUtils</artifactId><version>1.13</version><scope>system</scope><systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/UserAgentUtils-1.13.jar</systemPath></dependency><!-- 自定义jar依赖包<dependency><groupId>com.thinkgem.jeesite</groupId><artifactId>test-core</artifactId><version>1.0</version><scope>system</scope><systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/test-core-1.0.jar</systemPath></dependency> --><!-- 使用 Jetty JSP引擎 <dependency><groupId>org.eclipse.jetty</groupId><artifactId>jetty-jsp</artifactId><version>${jetty.version}</version><exclusions><exclusion><groupId>org.eclipse.jetty.orbit</groupId><artifactId>javax.servlet</artifactId></exclusion><exclusion><groupId>org.eclipse.jetty.orbit</groupId><artifactId>org.apache.taglibs.standard.glassfish</artifactId></exclusion></exclusions></dependency> --></dependencies><build><outputDirectory>${project.basedir}/src/main/webapp/WEB-INF/classes/</outputDirectory><plugins><!-- Compiler 插件, 设定JDK版本 --><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><version>3.5.1</version><configuration><source>${jdk.version}</source><target>${jdk.version}</target><showWarnings>true</showWarnings></configuration></plugin><!-- JSP 预编译插件  jspweb.xml<plugin><groupId>org.jasig.mojo.jspc</groupId><artifactId>jspc-maven-plugin</artifactId><version>2.0.0</version><configuration><injectString>&lt;!- - [INSERT FRAGMENT HERE] - -&gt;</injectString></configuration><executions><execution><goals><goal>compile</goal></goals></execution></executions><dependencies><dependency><groupId>org.jasig.mojo.jspc</groupId><artifactId>jspc-compiler-tomcat6</artifactId><version>2.0.0</version></dependency></dependencies></plugin>--><!-- Jetty JSP 预编译插件  web.xml<plugin><groupId>org.mortbay.jetty</groupId><artifactId>jetty-jspc-maven-plugin</artifactId><version>${jetty.version}</version><configuration><insertionMarker>&lt;!- - [INSERT FRAGMENT HERE] - -&gt;</insertionMarker></configuration><executions><execution><goals><goal>jspc</goal></goals></execution></executions></plugin>--><!-- 打包jar文件时,配置manifest文件,加入lib包的jar依赖 --><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-jar-plugin</artifactId><version>2.4</version><configuration><encoding>${project.build.sourceEncoding}</encoding></configuration><!-- <executions><execution><phase>prepare-package</phase><goals><goal>jar</goal></goals><configuration><classesDirectory>${project.outputDirectory}</classesDirectory><finalName>jeesite</finalName><outputDirectory>${project.build.directory}/${project.artifactId}/WEB-INF/lib</outputDirectory><includes><include>com/thinkgem/jeesite/**</include></includes></configuration></execution></executions> --></plugin><!-- 混淆代码<plugin><groupId>com.github.wvengen</groupId><artifactId>proguard-maven-plugin</artifactId><version>2.0.11</version><executions><execution><phase>prepare-package</phase><goals><goal>proguard</goal></goals></execution></executions><configuration><obfuscate>true</obfuscate><options><option>-injars ${project.build.directory}/${project.artifactId}/WEB-INF/lib/jeesite.jar</option></options><outjar>${project.artifactId}/WEB-INF/lib/jeesite_out.jar</outjar><outputDirectory>${project.build.directory}</outputDirectory><proguardInclude>${basedir}/proguard.cfg</proguardInclude><source>${jdk.version}</source><target>${jdk.version}</target><encoding>${project.build.sourceEncoding}</encoding><libs><lib>${java.home}/lib/rt.jar</lib><lib>${java.home}/lib/jsse.jar</lib><lib>${java.home}/lib/jce.jar</lib></libs><addMavenDescriptor>false</addMavenDescriptor></configuration><dependencies><dependency><groupId>net.sf.proguard</groupId><artifactId>proguard-base</artifactId><version>4.9</version><scope>runtime</scope></dependency></dependencies></plugin> --><!-- war 打包插件, 设定war包名称不带版本号 --><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-war-plugin</artifactId><version>2.4</version><configuration><packagingExcludes><!-- WEB-INF/classes/com/thinkgem/jeesite/** -->WEB-INF/classes/org/apache/ibatis/**,WEB-INF/classes/org/mybatis/spring/**</packagingExcludes><warSourceExcludes>static/bootstrap/2.3.1/docs/**,static/ckeditor/_samples/**,static/ckeditor/_source/**,static/ckfinder/_samples/**,static/ckfinder/help/**,static/compressor*/**,static/jquery-jbox/2.3/docs/**,static/jquery-jbox/2.3/Skins2/**,static/jquery-validation/1.11.0/demo/**,static/jquery-ztree/3.5.12/demo/**,static/My97DatePicker/docs/**,static/supcan/doc/**,static/SuperSlide/demo/**,static/treeTable/demo/**<!-- , --><!-- userfiles/** --><!-- ,/**/*.jsp -->,test/**</warSourceExcludes><webappDirectory>${project.build.directory}/${project.artifactId}</webappDirectory><!-- <webXml>${project.basedir}/target/jspweb.xml</webXml> --><warName>${project.artifactId}</warName></configuration></plugin><!-- Eclipse 插件 --><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-eclipse-plugin</artifactId><version>2.9</version><configuration><downloadSources>${downloadSources}</downloadSources><downloadJavadocs>false</downloadJavadocs><wtpversion>2.0</wtpversion><jeeversion>5.0</jeeversion><!-- <jeeversion>6.0</jeeversion> --><additionalConfig><file><name>.settings/org.eclipse.core.resources.prefs</name><content><![CDATA[eclipse.preferences.version=1${line.separator}encoding/<project>=${project.build.sourceEncoding}${line.separator}]]></content></file></additionalConfig><additionalProjectnatures><projectnature>org.springframework.ide.eclipse.core.springnature</projectnature></additionalProjectnatures></configuration></plugin><!-- tomcat6插件 --><plugin><groupId>org.apache.tomcat.maven</groupId><artifactId>tomcat6-maven-plugin</artifactId><version>${tomcat.version}</version> <configuration><port>${webserver.port}</port><path>/${project.artifactId}</path><uriEncoding>${project.build.sourceEncoding}</uriEncoding></configuration></plugin><!-- tomcat7插件 --><plugin><groupId>org.apache.tomcat.maven</groupId><artifactId>tomcat7-maven-plugin</artifactId><version>${tomcat.version}</version> <configuration><port>${webserver.port}</port><path>/${project.artifactId}</path><uriEncoding>${project.build.sourceEncoding}</uriEncoding></configuration></plugin><!-- jetty插件 --><plugin><groupId>org.mortbay.jetty</groupId><artifactId>jetty-maven-plugin</artifactId><version>${jetty.version}</version><configuration><connectors><connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector"><port>${webserver.port}</port></connector></connectors><webAppConfig><contextPath>/${project.artifactId}</contextPath></webAppConfig><systemProperties>  <systemProperty><name>org.mortbay.util.URI.charset</name><value>${project.build.sourceEncoding}</value></systemProperty></systemProperties></configuration></plugin><!-- resource插件 --><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-resources-plugin</artifactId><version>2.7</version></plugin><!-- install插件 --><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-install-plugin</artifactId><version>2.5.2</version></plugin><!-- clean插件 --><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-clean-plugin</artifactId><version>2.6.1</version></plugin><!-- ant插件 --><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-antrun-plugin</artifactId><version>1.8</version></plugin><!-- dependency插件 --><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-dependency-plugin</artifactId><version>2.10</version></plugin></plugins></build><profiles><!-- 初始化数据库 -->			<profile><id>init-db</id><dependencies><dependency><groupId>org.dbunit</groupId><artifactId>dbunit</artifactId><version>2.4.8</version></dependency><dependency><groupId>org.apache.poi</groupId><artifactId>poi</artifactId><version>3.2-FINAL</version></dependency></dependencies><build><plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-antrun-plugin</artifactId><version>1.7</version><configuration><target><!-- mysql --><property name="dbunit.datatype" value="org.dbunit.ext.mysql.MySqlDataTypeFactory" /><!-- mssql<property name="dbunit.datatype" value="org.dbunit.ext.mssql.MsSqlDataTypeFactory" /> --><!-- oracle<property name="dbunit.datatype" value="org.dbunit.ext.oracle.Oracle10DataTypeFactory" /> --><property file="src/main/resources/jeesite.properties" /><sql driver="${jdbc.driver}" url="${jdbc.url}" userid="${jdbc.username}" password="${jdbc.password}" onerror="continue" encoding="${project.build.sourceEncoding}"><classpath refid="maven.test.classpath" /><transaction src="db/sys/jeesite_${jdbc.type}.sql"/><transaction src="db/cms/jeesite_${jdbc.type}.sql"/><transaction src="db/oa/jeesite_${jdbc.type}.sql"/><transaction src="db/gen/jeesite_${jdbc.type}.sql"/><transaction src="db/gen/example_${jdbc.type}.sql"/><transaction src="db/test/jeesite_${jdbc.type}.sql"/><transaction src="db/act/drop/activiti.${jdbc.type}.drop.engine.sql"/><transaction src="db/act/drop/activiti.${jdbc.type}.drop.history.sql"/><transaction src="db/act/drop/activiti.${jdbc.type}.drop.identity.sql"/><transaction src="db/act/create/activiti.${jdbc.type}.create.engine.sql"/><transaction src="db/act/create/activiti.${jdbc.type}.create.history.sql"/><transaction src="db/act/create/activiti.${jdbc.type}.create.identity.sql"/></sql><taskdef name="dbunit" classname="org.dbunit.ant.DbUnitTask" classpathref="maven.test.classpath" /><!-- mysql、mssql --><dbunit driver="${jdbc.driver}" url="${jdbc.url}" userid="${jdbc.username}"password="${jdbc.password}"><!-- oracle<dbunit driver="${jdbc.driver}" url="${jdbc.url}" userid="${jdbc.username}"password="${jdbc.password}" schema="${jdbc.username}" > --><dbconfig><property name="datatypeFactory" value="${dbunit.datatype}" /></dbconfig><classpath refid="maven.test.classpath" /><operation type="INSERT" src="db/sys/jeesite_data.xls" format="xls" transaction="true"/><operation type="INSERT" src="db/cms/jeesite_data.xls" format="xls" transaction="true"/></dbunit></target></configuration></plugin></plugins></build></profile></profiles><!-- 开发者信息 --><developers>  <developer><id>thinkgem</id><name>WangZhen</name><email>thinkgem at 163.com</email><roles><role>Project lead</role></roles><timezone>+8</timezone></developer></developers></project>

 

转载于:https://my.oschina.net/u/1760858/blog/825816

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/291660.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

下载matlab安装包太慢_MATLAB 2020a商业数学中文版软件下载安装教程

【软件语言】&#xff1a;简体中文 【支持系统】&#xff1a;Win7/Win8/Win10【软件类别】&#xff1a;安装版【更新时间】&#xff1a;2020年5月15日【下载地址】&#xff1a;www.rjazbs.me/t-2945.html客服微信&#xff1a;rjazbsMATLAB是一款商业数学软件&#xff0c;用于算…

phpstorm+Xdebug断点调试PHP

运行环境&#xff1a; PHPSTORM版本 : 8.0.1 PHP版本 : 5.6.2 xdebug版本&#xff1a;php_xdebug-2.2.5-5.6-vc11-x86_64.dll ps : php版本和xdebug版本一定要相对应 1. PHP安装xdebug扩展 php.ini的配置&#xff0c;下面的配置仅供参考&#xff0c;路径要换成自己的&#xff0…

EF Core 6 新功能汇总(三)

在这篇文章中&#xff0c;我将重点介绍 EF Core 6 中 LINQ 查询功能的增强。这是 EF Core 6 新功能汇总的第三篇文章&#xff1a;EF Core 6 新功能汇总&#xff08;一&#xff09;EF Core 6 新功能汇总&#xff08;二&#xff09;EF Core 6 新功能汇总&#xff08;三&#xff0…

SpringMvc项目中使用GoogleKaptcha 生成验证码

前言&#xff1a;google captcha 是google生成验证码的一个工具类&#xff0c;其原理是将随机生成字符串保存到session中&#xff0c;同时以图片的形式返回给页面&#xff0c;之后前台页面提交到后台进行对比。 1、jar包准备 官方提供的pom应该是 <dependency> <grou…

wpsppt流程图联系效果_风险隐患排查的手段—HAZOP 与检查表的区别及应用效果

HAZOP 与检查表的区别HAZOP 分析可以在工厂运行周期内的任何时间段进行&#xff0c;既适用于设计阶段&#xff0c;也适用于在役的工艺装置。在化工项目的设计阶段采用HAZOP 方法进行分析&#xff0c;能识别设计、设备及操作程序中的潜在危险&#xff0c;比如装置设备是否装有安…

软件测试实验报告下载 实验一到实验五

实验一&#xff1a; 传送门在此&#xff1a;https://download.csdn.net/download/qq_44872173/15559951 目录如下&#xff1a;

linux网络编程之并发服务器的三种实现模型 (超级经典)

转载 &#xff1a; http://blog.csdn.net/tennysonsky/article/details/45671215 服务器设计技术有很多&#xff0c;按使用的协议来分有 TCP 服务器和 UDP 服务器&#xff0c;按处理方式来分有循环服务器和并发服务器。 循环服务器与并发服务器模型 在网络程序里面&#xff0c…

IT人的自我导向型学习:学习的4个层次

[原文链接] 谈起软件开发一定会想到用什么技术、采用什么框架&#xff0c;然而在盛行的敏捷之下&#xff0c;人的问题逐渐凸显出来。不少企业请人来培训敏捷开发技术&#xff0c;却发现并不能真正运用起来&#xff0c;其中一个主要原因就是大家还没有很好的学习能力。没有学习&…

动态ram依靠什么存储信息_ROM、RAM、DRAM、SRAM和FLASH傻傻分不清

ROM、RAM、DRAM、SRAM和FLASH各类储存器在电脑、手机、电子设备、嵌入式设备及相应的开发中普遍应用的&#xff0c;但是很多还是傻傻分不清楚。下面就简单介绍下这几个吧&#xff01;ROM和RAMROM&#xff1a;只读存储器或者固化存储器&#xff1b;RAM&#xff1a;随机存取存储器…

软件项目管理课后题下载【共5个章(1、3、4、5、6)】

都整理好了&#xff0c;链接在此&#xff1a;https://download.csdn.net/download/qq_44872173/15560093 目录如下&#xff1a;

linux c之snprintf()和sprintf()区别

1、snprintf函数 int snprintf(char *str, size_t size, const char *format, ...); 将可变个参数(...)按照format格式化成字符串,然后将其复制到str中 (1) 如果格式化后的字符串长度 < size,则将此字符串全部复制到str中,并给其后添加一个字符串结束符(/0); (2) 如果…

Chrome中输入框默认样式移除

Chrome中输入框默认样式移除 在chrome浏览器中会默认给页面上的输入框如input、textarea等渲染浏览器自带的边框效果 IE8中效果如下&#xff1a; Chrome中效果如下&#xff1a; 这在我们未给输入框设置获取焦点时改变边框颜色时&#xff0c;chrome浏览器解析页面中默认将输入框…

MBR解析

先推广一下QQ群&#xff1a;61618925。欢迎各位爱好编程的朋友加入。 一、程序界面 二、关键部分代码&#xff1a; 1.数据结构定义 #define MBRSIZE 512 #define BOOTRECORDSIZE 440 #define DISKSIGNEDSIZE 4 #define RESERVESIZE 2 #define DPTNUMBER 4 #define DPTSIZE 16 #…

css sprite讲解与使用实例

转自&#xff1a;http://www.manongjc.com/article/886.html 一、什么是css sprites css sprites直译过来就是CSS精灵。通常被解释为“CSS图像拼合”或“CSS贴图定位”。其实就是通过将多个图片融合到一张图里面&#xff0c;然后通过CSS background背景定位技术技巧布局网页背景…

实验 2 关键字驱动测试(2 学时)实验报告--软件功能测试与性能测试实验

以下是实验要求部分&#xff1a;&#xff08;小伙伴们根据自己需求决定是否下载哈&#xff09; 下载位置链接&#xff1a;https://download.csdn.net/download/qq_44872173/20031354

小手工纸盒机器人_亲子手工 | DIY弹珠迷宫小黑手自制玩具系列

上周用鞋盒做的迷你桌球受到很多男孩子的喜欢今天小黑手又做了一个瓦楞纸手工「弹珠迷宫」也是喜欢的爱不释手呢暑假小黑手系列&#xff0c;希望也能攒出个自己的小游乐场自己动手做自己的玩具&#xff0c;买玩具的钱可以省了快速手工教程Let’s do it我们一起做起来吧&#xf…

Linux screen 常用命令

想必&#xff0c;只要接触过Linux一段时间的人&#xff0c;一定知道screen这个神奇的工具了&#xff0c;它主要有如下些优势&#xff1a; 1. 后台运行&#xff1a;当你在ssh terminal执行shell时&#xff0c;如果网络这时断开&#xff0c;你的程序会怎样&#xff1f;TERMINATED…

实验 3 检查点和参数化实验报告--软件功能测试与性能测试实验

实验报告下载链接&#xff1a; https://download.csdn.net/download/qq_44872173/20031539 实验要求部分&#xff1a;

C#中的语句

寄语接下来几篇文章&#xff0c;将和大家一起简单回顾下C#中常规的语法&#xff0c;也是平常我们在编码过程中都使用的。今天来介绍下C#中的语句。一般科班出身的程序猿们大家第一个学习的语言基本都是C语言&#xff0c;C语言里面在刚开始就介绍了语句。C#中介绍的语句和C中的基…