Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
file-service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SuperHive
back-end
file-service
Commits
49aaae32
Commit
49aaae32
authored
Aug 06, 2020
by
lijd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改本地环境配置
parent
f5c69ebb
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
80 additions
and
14 deletions
+80
-14
application-demo.yml
src/main/resources/application-demo.yml
+66
-0
application-dev.yml
src/main/resources/application-dev.yml
+6
-6
application-test.yml
src/main/resources/application-test.yml
+6
-6
bootstrap.yml
src/main/resources/bootstrap.yml
+1
-1
UploadControllerTest.java
...ght/file/module/file/controller/UploadControllerTest.java
+1
-1
No files found.
src/main/resources/application-demo.yml
0 → 100644
View file @
49aaae32
spring
:
datasource
:
type
:
com.alibaba.druid.pool.DruidDataSource
druid
:
driver-class-name
:
com.mysql.cj.jdbc.Driver
url
:
jdbc:mysql://119.3.171.225:3306/freight-demo?useUnicode=true&characterEncoding=utf8&autoReconnect=true&useSSL=false
username
:
root
password
:
root
initial-size
:
5
min-idle
:
5
max-active
:
20
max-wait
:
60000
time-between-eviction-runs-millis
:
60000
min-evictable-idle-time-millis
:
300000
validation-query
:
SELECT 1 FROM DUAL
test-while-idle
:
true
test-on-borrow
:
false
test-on-return
:
false
filter
:
stat
:
log-slow-sql
:
true
slow-sql-millis
:
1000
merge-sql
:
false
data
:
mongodb
:
host
:
119.3.171.225
port
:
27017
database
:
freight
#mybatis
mybatis-plus
:
mapper-locations
:
classpath*:/mapper/**/*Dao.xml
#实体扫描,多个package用逗号或者分号分隔
typeAliasesPackage
:
com.esv.freight.file.*.*.entity,com.esv.freight.file.*.*.dto
check-config-location
:
true
#原生配置
configuration
:
map-underscore-to-camel-case
:
true
cache-enabled
:
false
call-setters-on-nulls
:
true
jdbc-type-for-null
:
'
null'
global-config
:
banner
:
true
#数据库相关配置
db-config
:
#主键类型 AUTO:"数据库ID自增", INPUT:"用户输入ID", ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID";
id-type
:
AUTO
logic-delete-value
:
1
logic-not-delete-value
:
0
#AES对称加密秘钥
aes
:
sha1prng
:
key
:
freight-file-servie-3.1415926535
#文件下载基础url
file
:
register
:
image=2,pdf=10,excel=5,word=5,apk=100
download
:
base-url
:
http://cloud.esvtek.com:8082/file/download/direct/
baidu
:
ocr
:
app_id
:
19433262
api_key
:
iXr2xpoGp3GPshCWkiW92W2G
secret_key
:
6xzVIG8C3tQslR9zsM7q6gRYLNLc8ISB
#水印文字默认大小
wartermarker
:
font
:
size
:
60
\ No newline at end of file
src/main/resources/application-dev.yml
View file @
49aaae32
...
...
@@ -3,9 +3,9 @@ spring:
type
:
com.alibaba.druid.pool.DruidDataSource
druid
:
driver-class-name
:
com.mysql.cj.jdbc.Driver
url
:
jdbc:mysql://1
92.168.31.248:3306/freigh
t?useUnicode=true&characterEncoding=utf8&autoReconnect=true&useSSL=false
username
:
freigh
t
password
:
freigh
t
url
:
jdbc:mysql://1
19.3.171.225:3306/freight-tes
t?useUnicode=true&characterEncoding=utf8&autoReconnect=true&useSSL=false
username
:
roo
t
password
:
roo
t
initial-size
:
5
min-idle
:
5
max-active
:
20
...
...
@@ -23,9 +23,9 @@ spring:
merge-sql
:
false
data
:
mongodb
:
host
:
1
92.168.31.248
host
:
1
19.3.171.225
port
:
27017
database
:
huangcb
database
:
freight
#mybatis
mybatis-plus
:
mapper-locations
:
classpath*:/mapper/**/*Dao.xml
...
...
@@ -54,7 +54,7 @@ aes:
file
:
register
:
image=2,pdf=10,excel=5,word=5,apk=100
download
:
base-url
:
http://12
7.0.0.1
:8002/file/download/direct/
base-url
:
http://12
1.36.9.227
:8002/file/download/direct/
baidu
:
ocr
:
app_id
:
19433262
...
...
src/main/resources/application-test.yml
View file @
49aaae32
...
...
@@ -3,9 +3,9 @@ spring:
type
:
com.alibaba.druid.pool.DruidDataSource
druid
:
driver-class-name
:
com.mysql.cj.jdbc.Driver
url
:
jdbc:mysql://1
92.168.31.248:3306/freigh
t?useUnicode=true&characterEncoding=utf8&autoReconnect=true&useSSL=false
username
:
freigh
t
password
:
freigh
t
url
:
jdbc:mysql://1
19.3.171.225:3306/freight-tes
t?useUnicode=true&characterEncoding=utf8&autoReconnect=true&useSSL=false
username
:
roo
t
password
:
roo
t
initial-size
:
5
min-idle
:
5
max-active
:
20
...
...
@@ -23,9 +23,9 @@ spring:
merge-sql
:
false
data
:
mongodb
:
host
:
1
92.168.31.248
host
:
1
19.3.171.225
port
:
27017
database
:
huangcb
database
:
freight
#mybatis
mybatis-plus
:
mapper-locations
:
classpath*:/mapper/**/*Dao.xml
...
...
@@ -54,7 +54,7 @@ aes:
file
:
register
:
image=2,pdf=10,excel=5,word=5,apk=100
download
:
base-url
:
http://1
92.168.31.248
:8082/file/download/direct/
base-url
:
http://1
21.36.9.227
:8082/file/download/direct/
baidu
:
ocr
:
app_id
:
19433262
...
...
src/main/resources/bootstrap.yml
View file @
49aaae32
...
...
@@ -10,7 +10,7 @@ spring:
application
:
name
:
freight-file-service
profiles
:
active
:
test
active
:
dev
cloud
:
nacos
:
discovery
:
...
...
src/test/java/com/esv/freight/file/module/file/controller/UploadControllerTest.java
View file @
49aaae32
...
...
@@ -107,7 +107,7 @@ public class UploadControllerTest extends BaseTestController {
JSONObject
reqJson
=
new
JSONObject
();
// 构造数据
String
filepath
=
"
D:\\test
\\线上合同-司机.docx"
;
String
filepath
=
"
E:\\SVN\\车载项目\\04.项目库\\09.天津港陆侧物流平台\\03.售前方案\\租户创建流程
\\线上合同-司机.docx"
;
File
file
=
new
File
(
filepath
);
InputStream
input
=
new
FileInputStream
(
file
);
reqJson
.
put
(
"fileType"
,
"word"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment