Skip to content

Commit 4daa2b5

Browse files
committed
!feat: ✨using vertx instead of spring boot
1 parent a94f4bb commit 4daa2b5

30 files changed

Lines changed: 1577 additions & 1039 deletions

.prettierrc

Lines changed: 0 additions & 8 deletions
This file was deleted.

.vscode/launch.json

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
{
2-
// Use IntelliSense to learn about possible attributes.
3-
// Hover to view descriptions of existing attributes.
4-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5-
"version": "0.2.0",
6-
"configurations": [
7-
{
8-
"type": "java",
9-
"name": "CrystalReportServer",
10-
"request": "launch",
11-
"mainClass": "com.da.crystal.report.RptSrvApplication",
12-
"projectName": "crystal-report-server-java"
13-
}
14-
]
15-
}
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "java",
9+
"name": "VertxApp",
10+
"request": "launch",
11+
"mainClass": "com.da.crystal.report.VertxApp"
12+
}
13+
]
14+
}

.vscode/settings.json

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
{
2-
"editor.codeActionsOnSave": {
3-
"source.organizeImports": "explicit"
4-
},
5-
"java.compile.nullAnalysis.mode": "automatic",
6-
"java.configuration.updateBuildConfiguration": "automatic",
7-
"auto-header-plus.pathContainsWorkspaceFolder": false,
8-
"java.debug.settings.onBuildFailureProceed": true
9-
}
2+
"editor.codeActionsOnSave": {
3+
"source.organizeImports": "explicit"
4+
},
5+
"editor.formatOnSave": true,
6+
"editor.detectIndentation": false,
7+
"editor.stickyTabStops": true,
8+
"editor.tabSize": 2,
9+
"editor.useTabStops": false,
10+
"java.compile.nullAnalysis.mode": "automatic",
11+
"java.configuration.updateBuildConfiguration": "automatic",
12+
"auto-header-plus.pathContainsWorkspaceFolder": false,
13+
"java.debug.settings.onBuildFailureProceed": true
14+
}

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,11 @@ An Crystal Report server run in java.
3131
### How to Use
3232
3333
1. It contains `postgres`,`mysql`, `sql server` driver by default, Add your db driver in `pom.xml` as necessary.
34-
2. Config your database url, driverClassName, user, password in `application.properties`.
35-
3. Run `maven package` to get `war` package.
36-
4. Copy `war` to tomcat, copy crystal dependency `lib` files to `WEB-INF/lib` folder, and run tomcat.
37-
5. Then copy your crystal report files to `WEB-INF/class/reports` folder, you can add them at anytime.
38-
6. Open `http://server:port/Report/{ReportTemplateName}/{format}?param0=val0&param1=val1` in browser, you can see your report.
39-
7. If chinese text can't display in pdf, please configure /ect/locale.conf `LANG=zh_CN.UTF-8`
34+
2. Config your database url, driverClassName, user, password, report location in `config-prod`.
35+
3. Run `java -jar crystal-report-server-java.jar --conf=config-prod.json` with `lib` folder, or Run `java -jar crystal-report-server-java-fat.jar --conf=config-prod.json`.
36+
4. Copy .rpt file to report location, you can add them at any time.
37+
5. Open `http://server:port/Report/{ReportTemplateName}/{format}?param0=val0&param1=val1` in browser, you can see your report.
38+
6. If chinese text can't display in pdf, please configure /ect/locale.conf `LANG=zh_CN.UTF-8`
4039
4140
> Note: `{ReportTemplateName}` is the name of your report template file without extension, `{format}` is the format you want, such as `pdf` `doc` `xls`, `param0` and `param1` are the parameters of your report, give a param named with `filename`, this param value will be used as the file name.
4241
> Suggestion: Using `Command SQL` instead of `Table Link` for better performance, reduce the report generation duration.

README.zh-cn.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,11 @@
3131
### 如何使用
3232
3333
1. 默认包含`postgres`,`mysql`, `sql server`驱动, 其他数据库需要在 `pom.xml` 中添加数据库驱动。
34-
2. 在 `application.properties` 中配置数据库连接信息。
35-
3. 运行 `maven package` 生成 `war` 包,将 `war` 包拷贝到 tomcat(或者其他容器) 中运行, `war`包是为了更新报表更便捷。
36-
4. 将依赖库`lib`文件拷贝到`WEB-INF/lib` 文件夹中。
37-
5. 将水晶报表`rpt`文件拷贝到 `WEB-INF/class/reports` 文件夹中,可以随时添加。
38-
6. 在浏览器中打开 `http://server:port/Report/{ReportTemplateName}/{format}?param0=val0&param1=val1`,即可看到报表。
39-
7. 如果 pdf 文件不能显示中文, 请编辑/ect/locale.conf `LANG=zh_CN.UTF-8`
34+
2. 在 `config-prod` 中配置数据库连接信息和报表模板位置。
35+
3. 配合 `lib` 文件夹运行 `java -jar crystal-report-server-java.jar --conf=config-prod.json`, 或者运行 `java -jar crystal-report-server-java-fat.jar --conf=config-prod.json`
36+
4. 将水晶报表`rpt`文件拷贝到 报表模板 文件夹中,可以随时添加。
37+
5. 在浏览器中打开 `http://server:port/Report/{ReportTemplateName}/{format}?param0=val0&param1=val1`,即可看到报表。
38+
6. 如果 pdf 文件不能显示中文, 请编辑/ect/locale.conf `LANG=zh_CN.UTF-8`
4039
4140
> 说明:`{ReportTemplateName}` 是报表模板文件名,不包含扩展名;`{format}` 是报表格式,如 `pdf` `doc` `xls`;`param0` 和 `param1` 是报表参数,如果有一个参数名包含 `filename`,则该参数值将作为文件名。
4241
> 建议:使用`Command SQL`代替`Table Link`,可以获得更快的报表生成速度。

cspell.project-words.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,34 @@
1+
antrun
2+
Appender
3+
Appenders
4+
Azlea
5+
businessobjects
16
crdb
7+
crystaldecisions
8+
cvom
29
dbname
310
Dedienne
411
Hikari
12+
Imageio
513
isready
614
javax
715
JDBC
816
jndi
17+
jrcerom
918
logback
19+
OSGI
20+
pfjgraphics
1021
PGPASSWORD
1122
projectlombok
1223
psql
1324
rawtypes
1425
sageassistant
1526
Servlet
1627
springframework
28+
tofile
29+
vaadin
1730
Vals
31+
Verticle
32+
Vertx
1833
Xtreme
1934
zaxxer

0 commit comments

Comments
 (0)