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 {
...
@@ -593,6 +593,10 @@ public class OSSUtil {
OSSObject
ossObject
;
OSSObject
ossObject
;
String
Suffix
;
String
Suffix
;
try
{
try
{
File
folder
=
new
File
(
zipPath
);
if
(!
folder
.
exists
()&&
!
folder
.
isDirectory
()){
folder
.
mkdirs
();
}
fos
=
new
FileOutputStream
(
zipPath
+
fileName
);
fos
=
new
FileOutputStream
(
zipPath
+
fileName
);
zos
=
new
ZipOutputStream
(
fos
);
zos
=
new
ZipOutputStream
(
fos
);
OSS
ossClient
=
new
OSSClientBuilder
().
build
(
endpoint
,
accessKeyId
,
accessKeySecret
);
OSS
ossClient
=
new
OSSClientBuilder
().
build
(
endpoint
,
accessKeyId
,
accessKeySecret
);
...
...
src/main/resources/application-dev.yml
View file @
4490d7d0
...
@@ -3,35 +3,35 @@ server:
...
@@ -3,35 +3,35 @@ server:
port
:
8089
port
:
8089
servlet
:
servlet
:
# context-path: /YoulinghrApiV100
# context-path: /YoulinghrApiV100
session
:
session
:
timeout
:
2592000
# session会话过期时间
timeout
:
2592000
# session会话过期时间
spring
:
spring
:
servlet
:
servlet
:
multipart
:
multipart
:
max-file-size
:
500MB
max-file-size
:
500MB
max-request-size
:
500MB
max-request-size
:
500MB
jpa
:
jpa
:
# 配置生成表 存储引擎InnoDB
# 配置生成表 存储引擎InnoDB
database-platform
:
org.hibernate.dialect.MySQL5InnoDBDialect
database-platform
:
org.hibernate.dialect.MySQL5InnoDBDialect
# database
:
# database
:
open-in-view
:
false
open-in-view
:
false
# naming
:
# naming
:
# spring boot jpa hibernate 根据实体类生成表以及字段的命名策略
# spring boot jpa hibernate 根据实体类生成表以及字段的命名策略
# 无修改命名 org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
# 无修改命名 org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
# 遇到大写字母 加”_”的命名 org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
# 遇到大写字母 加”_”的命名 org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
# physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
# physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
hibernate
:
hibernate
:
ddl-auto
:
update
ddl-auto
:
update
show-sql
:
true
show-sql
:
true
datasource
:
datasource
:
# username: root
# username: root
# password: youlingHR73!
# password: youlingHR73!
username
:
youling8timer
username
:
root
password
:
(!0YouLing8Timer0!)
password
:
H0YouLing8T-imer0LKjhG193*
# username: tang
# username: tang
# password: Tang123456!
# 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://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://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
# 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
driver-class-name
:
com.mysql.cj.jdbc.Driver
...
@@ -56,7 +56,7 @@ spring:
...
@@ -56,7 +56,7 @@ spring:
# 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙 ,不能用log4j,不然报错:Failed to bind properties under 'spring.datasource.druid' to javax.sql.DataSource:
# 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙 ,不能用log4j,不然报错:Failed to bind properties under 'spring.datasource.druid' to javax.sql.DataSource:
# 通过connectProperties属性来打开mergeSql功能;慢SQL记录
# 通过connectProperties属性来打开mergeSql功能;慢SQL记录
#connect-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
#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,去掉后监控界面sql无法统计,'wall'用于防火墙 ,不能用log4j,不然报错:Failed to bind properties under 'spring.datasource.druid' to javax.sql.DataSource:
filters
:
stat,slf4j
filters
:
stat,slf4j
# 配置监控服务器
# 配置监控服务器
...
@@ -79,9 +79,9 @@ spring:
...
@@ -79,9 +79,9 @@ spring:
date-format
:
yyyy-MM-dd HH:mm:ss
date-format
:
yyyy-MM-dd HH:mm:ss
# spring boot启动打印横幅 配置
# spring boot启动打印横幅 配置
banner
:
banner
:
charset
:
UTF-8
# Banner file encoding.
charset
:
UTF-8
# Banner file encoding.
location
:
banner.txt
# Banner text resource location.
location
:
banner.txt
# Banner text resource location.
image
:
image
:
location
:
banner.gif
# Banner image file location (jpg or png can also be used).
location
:
banner.gif
# Banner image file location (jpg or png can also be used).
width
:
76
# Width of the banner image in chars.
width
:
76
# Width of the banner image in chars.
height
:
76
# Height of the banner image in chars (default based on image height).
height
:
76
# Height of the banner image in chars (default based on image height).
...
@@ -105,23 +105,23 @@ spring:
...
@@ -105,23 +105,23 @@ spring:
restart
:
restart
:
poll-interval
:
3000ms
poll-interval
:
3000ms
quiet-period
:
2999ms
quiet-period
:
2999ms
mail
:
mail
:
port
:
465
port
:
465
host
:
smtp.
youlingrc
.com
host
:
smtp.
qq
.com
username
:
postmaster@youlingrc
.com
username
:
862422848@qq
.com
password
:
YoulingRC2020
password
:
fonzpklhmnnebbeb
default-encoding
:
utf-8
default-encoding
:
utf-8
properties
:
properties
:
mail
:
mail
:
smtp
:
smtp
:
auth
:
true
auth
:
true
starttls
:
starttls
:
enable
:
true
enable
:
true
required
:
true
required
:
true
ssl
:
# SSL Config
ssl
:
# SSL Config
enable
:
true
enable
:
true
socketFactory
:
socketFactory
:
port
:
465
port
:
465
class
:
javax.net.ssl.SSLSocketFactor
class
:
javax.net.ssl.SSLSocketFactor
...
@@ -145,10 +145,10 @@ info:
...
@@ -145,10 +145,10 @@ info:
encoding
:
'
@project.build.sourceEncoding@'
encoding
:
'
@project.build.sourceEncoding@'
java
:
java
:
version
:
'
@java.version@'
version
:
'
@java.version@'
git
:
git
:
mode
:
full
mode
:
full
##############################
##############################
# mybatis-plus
# mybatis-plus
mybatis-plus
:
mybatis-plus
:
mapper-locations
:
classpath:mapping/**/*Mapper.xml
# dao到xml文件映射
mapper-locations
:
classpath:mapping/**/*Mapper.xml
# dao到xml文件映射
...
@@ -175,7 +175,7 @@ pagehelper:
...
@@ -175,7 +175,7 @@ pagehelper:
reasonable
:
true
reasonable
:
true
supportMethodsArguments
:
true
supportMethodsArguments
:
true
params
:
count=countSql
params
:
count=countSql
#showSql
#showSql
logging
:
logging
:
level
:
level
:
...
@@ -183,7 +183,7 @@ logging:
...
@@ -183,7 +183,7 @@ logging:
cn.timer.api.dao
:
debug
cn.timer.api.dao
:
debug
pattern
:
pattern
:
console
:
'
--%p--%m%n'
console
:
'
--%p--%m%n'
#swagger:
#swagger:
# ui-config:
# ui-config:
# operations-sorter: method # 它提供了两个配置项:alpha和method,分别代表了按字母表排序以及按方法定义顺序排序
# operations-sorter: method # 它提供了两个配置项:alpha和method,分别代表了按字母表排序以及按方法定义顺序排序
...
@@ -233,6 +233,8 @@ config-8timer:
...
@@ -233,6 +233,8 @@ config-8timer:
# 客户管理导入服务器保存路径
# 客户管理导入服务器保存路径
crm-excel
:
crm-excel
:
realPath
:
'
D:/excel/'
realPath
:
'
D:/excel/'
#导出zip临时地址
\ No newline at end of file
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