parent
85a6ef7ef4
commit
40dd098b6e
Binary file not shown.
@ -0,0 +1,14 @@
|
||||
package UnitTest;
|
||||
public class ConvertPdf {
|
||||
public static void main(String[] args) {
|
||||
//Spire破解 去头部水印 The document was created with Spire.PDF for Java
|
||||
//https://blog.csdn.net/lijie0213/article/details/123347458
|
||||
//加载word示例文档
|
||||
// Document document = new Document();
|
||||
// String infile="D:\\dsWork\\FengHuang\\FengHuang\\Test\\6D5A80EB-A39D-4F4D-B5CD-FDCCB9DBC07A.docx";
|
||||
// document.loadFromFile(infile, FileFormat.Docx);
|
||||
// //保存结果文件
|
||||
// document.saveToFile("C:\\OUT.pdf", FileFormat.PDF);
|
||||
// document.close();
|
||||
}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8/"/>
|
||||
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
|
||||
<classpathentry kind="src" path="target/generated-sources/annotations">
|
||||
<attributes>
|
||||
<attribute name="optional" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
@ -0,0 +1,10 @@
|
||||
/.idea/
|
||||
/WebRoot/WEB-INF/classes
|
||||
baseServiceJava.iml
|
||||
*.log
|
||||
*.class
|
||||
/WebRoot/Upload
|
||||
/ETL/Data/
|
||||
/lib/*.jar
|
||||
/ETL/Mars/.idea/
|
||||
/ETL/Mars/__pycache__/
|
@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>testjava</name>
|
||||
<comment>Project testjava created by Buildship.</comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
Binary file not shown.
@ -0,0 +1,80 @@
|
||||
<?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>dsideal</groupId>
|
||||
<artifactId>FengHuang</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<!--https://blog.csdn.net/duchao123duchao/article/details/71480106-->
|
||||
<!-- 使用阿里 maven 库 -->
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>ali-maven</id>
|
||||
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
</releases>
|
||||
<snapshots>
|
||||
<enabled>true</enabled>
|
||||
<updatePolicy>always</updatePolicy>
|
||||
<checksumPolicy>fail</checksumPolicy>
|
||||
</snapshots>
|
||||
</repository>
|
||||
</repositories>
|
||||
<!--使用jdk1.8进行编译-->
|
||||
<properties>
|
||||
<maven.compiler.source>1.8</maven.compiler.source>
|
||||
<maven.compiler.target>1.8</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<!--jfinal主框架-->
|
||||
<dependency>
|
||||
<groupId>com.jfinal</groupId>
|
||||
<artifactId>jfinal</artifactId>
|
||||
<version>5.0.8</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
<version>8.0.30</version>
|
||||
</dependency>
|
||||
<!-- druid 数据源连接池 -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>druid</artifactId>
|
||||
<version>1.2.16</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!--安装hutool-->
|
||||
<dependency>
|
||||
<groupId>cn.hutool</groupId>
|
||||
<artifactId>hutool-all</artifactId>
|
||||
<version>5.8.15</version>
|
||||
</dependency>
|
||||
<!--引用fastjson-->
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>fastjson</artifactId>
|
||||
<version>2.0.25</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.6.1</version>
|
||||
<configuration>
|
||||
<source>1.8</source>
|
||||
<target>1.8</target>
|
||||
<encoding>UTF-8</encoding>
|
||||
<!-- java8 保留参数名编译参数 -->
|
||||
<compilerArgument>-parameters</compilerArgument>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
@ -0,0 +1,33 @@
|
||||
package com.dsideal.FengHuang;
|
||||
|
||||
import com.jfinal.kit.PropKit;
|
||||
import com.jfinal.plugin.activerecord.ActiveRecordPlugin;
|
||||
import com.jfinal.plugin.activerecord.CaseInsensitiveContainerFactory;
|
||||
import com.jfinal.plugin.activerecord.Db;
|
||||
import com.jfinal.plugin.activerecord.Record;
|
||||
import com.jfinal.plugin.druid.DruidPlugin;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class Start {
|
||||
public static void main(String[] args) {
|
||||
PropKit.use("application.properties");
|
||||
String user = PropKit.get("user");
|
||||
String password = PropKit.get("password");
|
||||
String jdbcUrl = PropKit.get("jdbcUrl");
|
||||
DruidPlugin hp = new DruidPlugin(jdbcUrl, user, password);
|
||||
hp.start();
|
||||
|
||||
// 配置ActiveRecord插件
|
||||
ActiveRecordPlugin arp = new ActiveRecordPlugin(hp);
|
||||
//配置默认小写
|
||||
arp.setContainerFactory(new CaseInsensitiveContainerFactory(true));
|
||||
arp.start();
|
||||
String sql = "select * from t_base_class limit 10";
|
||||
List<Record> list = Db.find(sql);
|
||||
|
||||
for (Record record : list) {
|
||||
System.out.println(record.getStr("class_name"));
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
# 数据库信息
|
||||
driverClassName=com.mysql.cj.jdbc.Driver
|
||||
user=root
|
||||
password=DsideaL147258369
|
||||
jdbcUrl=jdbc:mysql://10.10.14.199:22066/dsideal_db?rewriteBatchedStatements=true&useUnicode=true&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
@ -0,0 +1,7 @@
|
||||
@echo off
|
||||
set MAIN_CLASS=com.dsideal.FengHuang.Start
|
||||
set APP_BASE_PATH=%~dp0
|
||||
set CP=.;%APP_BASE_PATH%config;%APP_BASE_PATH%..\..\lib\*;
|
||||
set JAVA_OPTS=-Xms1024m -Xmx2048m
|
||||
java -Xverify:none %JAVA_OPTS% -cp %CP% %MAIN_CLASS%
|
||||
pause
|
@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 启动入口类,该脚本文件用于别的项目时要改这里
|
||||
MAIN_CLASS=com.dsideal.FengHuang.Start
|
||||
|
||||
|
||||
# Java 命令行参数,根据需要开启下面的配置,改成自己需要的,注意等号前后不能有空格
|
||||
export JAVA_HOME=/usr/java/jdk
|
||||
export JRE_HOME=${JAVA_HOME}/jre
|
||||
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
|
||||
export PATH=${JAVA_HOME}/bin:$PATH
|
||||
|
||||
JAVA_OPTS="-Xms1024m -Xmx2048m"
|
||||
|
||||
# 生成 class path 值
|
||||
CP=.:/usr/local/tomcat8/webapps/FengHuang/WEB-INF/lib/*
|
||||
|
||||
# 运行为后台进程,并且将信息输出到 logback.xml配置的日志文件位置
|
||||
nohup java -Xverify:none ${JAVA_OPTS} -cp ${CP} ${MAIN_CLASS} >> /dev/null 2>&1 &
|
||||
|
@ -0,0 +1,5 @@
|
||||
# 数据库信息
|
||||
driverClassName=com.mysql.cj.jdbc.Driver
|
||||
user=root
|
||||
password=DsideaL147258369
|
||||
jdbcUrl=jdbc:mysql://10.10.14.199:22066/dsideal_db?rewriteBatchedStatements=true&useUnicode=true&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
@ -0,0 +1,7 @@
|
||||
@echo off
|
||||
set MAIN_CLASS=com.dsideal.FengHuang.Start
|
||||
set APP_BASE_PATH=%~dp0
|
||||
set CP=.;%APP_BASE_PATH%config;%APP_BASE_PATH%..\..\lib\*;
|
||||
set JAVA_OPTS=-Xms1024m -Xmx2048m
|
||||
java -Xverify:none %JAVA_OPTS% -cp %CP% %MAIN_CLASS%
|
||||
pause
|
@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 启动入口类,该脚本文件用于别的项目时要改这里
|
||||
MAIN_CLASS=com.dsideal.FengHuang.Start
|
||||
|
||||
|
||||
# Java 命令行参数,根据需要开启下面的配置,改成自己需要的,注意等号前后不能有空格
|
||||
export JAVA_HOME=/usr/java/jdk
|
||||
export JRE_HOME=${JAVA_HOME}/jre
|
||||
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
|
||||
export PATH=${JAVA_HOME}/bin:$PATH
|
||||
|
||||
JAVA_OPTS="-Xms1024m -Xmx2048m"
|
||||
|
||||
# 生成 class path 值
|
||||
CP=.:/usr/local/tomcat8/webapps/FengHuang/WEB-INF/lib/*
|
||||
|
||||
# 运行为后台进程,并且将信息输出到 logback.xml配置的日志文件位置
|
||||
nohup java -Xverify:none ${JAVA_OPTS} -cp ${CP} ${MAIN_CLASS} >> /dev/null 2>&1 &
|
||||
|
@ -0,0 +1,10 @@
|
||||
mkdir lib
|
||||
cd lib
|
||||
del *.jar /q
|
||||
cd ..
|
||||
cd ExtendJar
|
||||
copy *.jar ..\lib
|
||||
cd ..
|
||||
mvn -f pom.xml dependency:copy-dependencies -DoutputDirectory=lib
|
||||
|
||||
@echo 完成了!
|
Loading…
Reference in new issue