Skip to content

Commit 883830b

Browse files
committed
初始化提交
1 parent eb9e7eb commit 883830b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+5029
-18
lines changed

.gitignore

Lines changed: 37 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,41 @@
1-
# Compiled class file
2-
*.class
1+
target/
2+
!.mvn/wrapper/maven-wrapper.jar
33

4-
# Log file
5-
*.log
4+
### STS ###
5+
.apt_generated
6+
.classpath
7+
.factorypath
8+
.project
9+
.settings
10+
.springBeans
611

7-
# BlueJ files
8-
*.ctxt
12+
### IntelliJ IDEA ###
13+
.idea
14+
*.iws
15+
*.iml
16+
*.ipr
917

10-
# Mobile Tools for Java (J2ME)
11-
.mtj.tmp/
18+
### NetBeans ###
19+
nbproject/private/
20+
build/
21+
nbbuild/
22+
dist/
23+
nbdist/
24+
.nb-gradle/
25+
/*.iml
1226

13-
# Package Files #
14-
*.jar
15-
*.war
16-
*.ear
17-
*.zip
18-
*.tar.gz
19-
*.rar
20-
21-
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
22-
hs_err_pid*
27+
**/target/
28+
.classpath
29+
.project
30+
**/.settings
31+
**/bin/
32+
**/build/
33+
**/.externalToolBuilders/
34+
*.iml
35+
**/.idea/
36+
**/disconf
37+
**/rpc.properties
38+
/producer/tmp
39+
/.temfile
40+
.temfile
41+
convertedFile/

pom.xml

Lines changed: 172 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,172 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
6+
<groupId>com.yudianbank</groupId>
7+
<artifactId>filepreview</artifactId>
8+
<version>0.0.1-SNAPSHOT</version>
9+
<packaging>jar</packaging>
10+
11+
<name>file-online-preview</name>
12+
<description>Demo project for Spring Boot</description>
13+
14+
<parent>
15+
<groupId>org.springframework.boot</groupId>
16+
<artifactId>spring-boot-starter-parent</artifactId>
17+
<version>1.5.8.RELEASE</version>
18+
<relativePath/> <!-- lookup parent from repository -->
19+
</parent>
20+
21+
<properties>
22+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
23+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
24+
<java.version>1.8</java.version>
25+
<ufile.sdk.verison>1.0-SNAPSHOT</ufile.sdk.verison>
26+
<logging.path>${basedir}/target/classes/logs</logging.path>
27+
<appName>file-preview</appName>
28+
</properties>
29+
30+
<dependencies>
31+
<dependency>
32+
<groupId>org.springframework.boot</groupId>
33+
<artifactId>spring-boot-starter-freemarker</artifactId>
34+
</dependency>
35+
<dependency>
36+
<groupId>org.springframework.boot</groupId>
37+
<artifactId>spring-boot-starter-web</artifactId>
38+
</dependency>
39+
<!--apollo client-->
40+
<dependency>
41+
<groupId>com.ctrip.framework.apollo</groupId>
42+
<artifactId>apollo-client</artifactId>
43+
<version>0.8.0</version>
44+
</dependency>
45+
<dependency>
46+
<groupId>net.logstash.logback</groupId>
47+
<artifactId>logstash-logback-encoder</artifactId>
48+
<version>4.11</version>
49+
</dependency>
50+
<dependency>
51+
<groupId>org.springframework.boot</groupId>
52+
<artifactId>spring-boot-starter-test</artifactId>
53+
<scope>test</scope>
54+
</dependency>
55+
<!-- REDISSON -->
56+
<dependency>
57+
<groupId>org.redisson</groupId>
58+
<artifactId>redisson</artifactId>
59+
<version>3.2.0</version>
60+
</dependency>
61+
<dependency>
62+
<groupId> org.apache.poi</groupId>
63+
<artifactId> poi </artifactId>
64+
<version>3.12</version>
65+
</dependency>
66+
<dependency >
67+
<groupId> org.apache.poi</groupId>
68+
<artifactId>poi-scratchpad</artifactId>
69+
<version > 3.12 </version>
70+
</dependency>
71+
<dependency>
72+
<groupId>fr.opensagres.xdocreport</groupId>
73+
<artifactId>org.apache.poi.xwpf.converter.core</artifactId>
74+
<version>1.0.5</version>
75+
<exclusions>
76+
<exclusion>
77+
<artifactId>poi</artifactId>
78+
<groupId>org.apache.poi</groupId>
79+
</exclusion>
80+
</exclusions>
81+
</dependency>
82+
<dependency>
83+
<groupId>fr.opensagres.xdocreport</groupId>
84+
<artifactId>org.apache.poi.xwpf.converter.xhtml</artifactId>
85+
<version>1.0.5</version>
86+
</dependency>
87+
<dependency>
88+
<groupId>fr.opensagres.xdocreport</groupId>
89+
<artifactId>fr.opensagres.xdocreport.document</artifactId>
90+
<version>1.0.5</version>
91+
</dependency>
92+
<dependency>
93+
<groupId>commons-io</groupId>
94+
<artifactId>commons-io</artifactId>
95+
<version>2.4</version>
96+
</dependency>
97+
<!-- 解压(apache) -->
98+
<dependency>
99+
<groupId>org.apache.commons</groupId>
100+
<artifactId>commons-compress</artifactId>
101+
<version>1.9</version>
102+
</dependency>
103+
<!-- 解压(rar)-->
104+
<dependency>
105+
<groupId>com.github.junrar</groupId>
106+
<artifactId>junrar</artifactId>
107+
<version>0.7</version>
108+
</dependency>
109+
<dependency>
110+
<groupId>net.sourceforge.jchardet</groupId>
111+
<artifactId>jchardet</artifactId>
112+
<version>1.0</version>
113+
</dependency>
114+
<dependency>
115+
<groupId>antlr</groupId>
116+
<artifactId>antlr</artifactId>
117+
<version>2.7.7</version>
118+
</dependency>
119+
<dependency>
120+
<groupId>commons-httpclient</groupId>
121+
<artifactId>commons-httpclient</artifactId>
122+
<version>3.1</version>
123+
<scope>test</scope>
124+
<exclusions>
125+
<exclusion>
126+
<artifactId>commons-logging</artifactId>
127+
<groupId>commons-logging</groupId>
128+
</exclusion>
129+
</exclusions>
130+
</dependency>
131+
<dependency>
132+
<groupId>org.artofsolving.jodconverter</groupId>
133+
<artifactId>jodconverter-core</artifactId>
134+
<version>3.0-SNAPSHOT</version>
135+
<exclusions>
136+
<exclusion>
137+
<artifactId>commons-io</artifactId>
138+
<groupId>commons-io</groupId>
139+
</exclusion>
140+
</exclusions>
141+
</dependency>
142+
<dependency>
143+
<groupId>commons-cli</groupId>
144+
<artifactId>commons-cli</artifactId>
145+
<version>1.2</version>
146+
</dependency>
147+
<dependency>
148+
<groupId>com.thoughtworks.xstream</groupId>
149+
<artifactId>xstream</artifactId>
150+
<version>1.3.1</version>
151+
</dependency>
152+
</dependencies>
153+
<build>
154+
<resources>
155+
<resource>
156+
<directory>${basedir}/src/main/resources</directory>
157+
<includes>
158+
<include>**/*</include>
159+
</includes>
160+
<filtering>true</filtering>
161+
</resource>
162+
</resources>
163+
<plugins>
164+
<plugin>
165+
<groupId>org.springframework.boot</groupId>
166+
<artifactId>spring-boot-maven-plugin</artifactId>
167+
</plugin>
168+
</plugins>
169+
</build>
170+
171+
172+
</project>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package com.yudianbank;
2+
3+
import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
4+
import org.springframework.boot.SpringApplication;
5+
import org.springframework.boot.autoconfigure.SpringBootApplication;
6+
import org.springframework.context.annotation.ComponentScan;
7+
import org.springframework.context.annotation.PropertySource;
8+
import org.springframework.scheduling.annotation.EnableScheduling;
9+
10+
import java.util.Enumeration;
11+
import java.util.Properties;
12+
13+
@SpringBootApplication
14+
@EnableScheduling
15+
@ComponentScan(value = "com.yudianbank.*")
16+
//@EnableApolloConfig
17+
public class FilePreviewApplication {
18+
public static void main(String[] args) {
19+
Properties properties = System.getProperties();
20+
System.out.println(properties.get("user.dir"));
21+
SpringApplication.run(FilePreviewApplication.class, args);
22+
}
23+
}

0 commit comments

Comments
 (0)