Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
4490d7d0
Commit
4490d7d0
authored
Dec 07, 2021
by
翁国栋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
禅道id--
395、在合同证照当中添加一个导出合同证照的功能
parent
4d7dbfd6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
28 deletions
+33
-28
src/main/java/cn/timer/api/utils/aliyun/OSSUtil.java
+4
-0
src/main/resources/application-dev.yml
+29
-28
No files found.
src/main/java/cn/timer/api/utils/aliyun/OSSUtil.java
View file @
4490d7d0
...
...
@@ -593,6 +593,10 @@ public class OSSUtil {
OSSObject
ossObject
;
String
Suffix
;
try
{
File
folder
=
new
File
(
zipPath
);
if
(!
folder
.
exists
()&&
!
folder
.
isDirectory
()){
folder
.
mkdirs
();
}
fos
=
new
FileOutputStream
(
zipPath
+
fileName
);
zos
=
new
ZipOutputStream
(
fos
);
OSS
ossClient
=
new
OSSClientBuilder
().
build
(
endpoint
,
accessKeyId
,
accessKeySecret
);
...
...
src/main/resources/application-dev.yml
View file @
4490d7d0
...
...
@@ -3,35 +3,35 @@ server:
port
:
8089
servlet
:
# context-path: /YoulinghrApiV100
session
:
session
:
timeout
:
2592000
# session会话过期时间
spring
:
servlet
:
multipart
:
max-file-size
:
500MB
servlet
:
multipart
:
max-file-size
:
500MB
max-request-size
:
500MB
jpa
:
# 配置生成表 存储引擎InnoDB
database-platform
:
org.hibernate.dialect.MySQL5InnoDBDialect
# database
:
# database
:
open-in-view
:
false
# naming
:
# naming
:
# spring boot jpa hibernate 根据实体类生成表以及字段的命名策略
# 无修改命名 org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
# 遇到大写字母 加”_”的命名 org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
# physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
hibernate
:
hibernate
:
ddl-auto
:
update
show-sql
:
true
datasource
:
# username: root
# password: youlingHR73!
username
:
youling8timer
password
:
(!0YouLing8Timer0!)
username
:
root
password
:
H0YouLing8T-imer0LKjhG193*
# username: tang
# password: Tang123456!
# url: jdbc:mysql://120.24.172.51:3306/youlingrc_tang?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL
url
:
jdbc:mysql://
test-8timer-api.youlingrc.com/8timer_test
?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL
url
:
jdbc:mysql://
120.78.162.177:3306/8timer_20210904
?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL
# url: jdbc:mysql://192.168.172.200:3306/youlingrc_8timer201?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL
# url: jdbc:mysql://db.hhlsz.com:3306/youlingrc_8timer201?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL
driver-class-name
:
com.mysql.cj.jdbc.Driver
...
...
@@ -56,7 +56,7 @@ spring:
# 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙 ,不能用log4j,不然报错:Failed to bind properties under 'spring.datasource.druid' to javax.sql.DataSource:
# 通过connectProperties属性来打开mergeSql功能;慢SQL记录
#connect-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
druid
:
druid
:
# 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙 ,不能用log4j,不然报错:Failed to bind properties under 'spring.datasource.druid' to javax.sql.DataSource:
filters
:
stat,slf4j
# 配置监控服务器
...
...
@@ -79,9 +79,9 @@ spring:
date-format
:
yyyy-MM-dd HH:mm:ss
# spring boot启动打印横幅 配置
banner
:
charset
:
UTF-8
# Banner file encoding.
charset
:
UTF-8
# Banner file encoding.
location
:
banner.txt
# Banner text resource location.
image
:
image
:
location
:
banner.gif
# Banner image file location (jpg or png can also be used).
width
:
76
# Width of the banner image in chars.
height
:
76
# Height of the banner image in chars (default based on image height).
...
...
@@ -105,23 +105,23 @@ spring:
restart
:
poll-interval
:
3000ms
quiet-period
:
2999ms
mail
:
mail
:
port
:
465
host
:
smtp.
youlingrc
.com
username
:
postmaster@youlingrc
.com
password
:
YoulingRC2020
host
:
smtp.
qq
.com
username
:
862422848@qq
.com
password
:
fonzpklhmnnebbeb
default-encoding
:
utf-8
properties
:
mail
:
mail
:
smtp
:
auth
:
true
starttls
:
starttls
:
enable
:
true
required
:
true
ssl
:
# SSL Config
enable
:
true
socketFactory
:
socketFactory
:
port
:
465
class
:
javax.net.ssl.SSLSocketFactor
...
...
@@ -145,10 +145,10 @@ info:
encoding
:
'
@project.build.sourceEncoding@'
java
:
version
:
'
@java.version@'
git
:
git
:
mode
:
full
##############################
# mybatis-plus
mybatis-plus
:
mapper-locations
:
classpath:mapping/**/*Mapper.xml
# dao到xml文件映射
...
...
@@ -175,7 +175,7 @@ pagehelper:
reasonable
:
true
supportMethodsArguments
:
true
params
:
count=countSql
#showSql
logging
:
level
:
...
...
@@ -183,7 +183,7 @@ logging:
cn.timer.api.dao
:
debug
pattern
:
console
:
'
--%p--%m%n'
#swagger:
# ui-config:
# operations-sorter: method # 它提供了两个配置项:alpha和method,分别代表了按字母表排序以及按方法定义顺序排序
...
...
@@ -233,6 +233,8 @@ config-8timer:
# 客户管理导入服务器保存路径
crm-excel
:
realPath
:
'
D:/excel/'
\ No newline at end of file
#导出zip临时地址
zip
:
path
:
'
D:/zip/'
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