project init
This commit is contained in:
21
api/src/main/resources/config/application-development.yml
Normal file
21
api/src/main/resources/config/application-development.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
spring:
|
||||
datasource:
|
||||
url: jdbc:mysql://yingdiandian.mysql.rds.aliyuncs.com:3306/smart_venue?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&serverTimezone=GMT%2b8&useAffectedRows=true
|
||||
username: yingdd
|
||||
password: Yingdd2015
|
||||
redis:
|
||||
host: 47.96.15.192
|
||||
password:
|
||||
timeout: 6000
|
||||
port: 6379
|
||||
|
||||
jpa:
|
||||
show-sql: true
|
||||
|
||||
oss:
|
||||
accessKeyId: LTAIlbtS4W2Xe4OV
|
||||
accessKeySecret: qWMYkSfmXFtRoIv9q9OCbszcF9U7dX
|
||||
protocol: http
|
||||
name: smartvenue
|
||||
endPoint: http://oss-cn-beijing.aliyuncs.com
|
||||
url: https://smartvenue.oss-cn-beijing.aliyuncs.com/
|
||||
22
api/src/main/resources/config/application-production.yml
Normal file
22
api/src/main/resources/config/application-production.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
spring:
|
||||
datasource:
|
||||
url: jdbc:mysql://127.0.0.1:3306/smart_venue?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&serverTimezone=GMT%2b8&useAffectedRows=true
|
||||
username: root
|
||||
password: hyty1234
|
||||
redis:
|
||||
host: 127.0.0.1
|
||||
password:
|
||||
timeout: 6000
|
||||
port: 6379
|
||||
|
||||
jpa:
|
||||
show-sql: true
|
||||
|
||||
|
||||
oss:
|
||||
accessKeyId: LTAIlbtS4W2Xe4OV
|
||||
accessKeySecret: qWMYkSfmXFtRoIv9q9OCbszcF9U7dX
|
||||
protocol: http
|
||||
name: smartvenue
|
||||
endPoint: http://oss-cn-beijing.aliyuncs.com
|
||||
url: https://smartvenue.oss-cn-beijing.aliyuncs.com/
|
||||
13
api/src/main/resources/config/application-test.yml
Normal file
13
api/src/main/resources/config/application-test.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
spring:
|
||||
datasource:
|
||||
url: jdbc:mysql://yingdiandian.mysql.rds.aliyuncs.com:3306/smart_venue?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&serverTimezone=GMT%2b8
|
||||
username: yingdd
|
||||
password: Yingdd2015
|
||||
redis:
|
||||
host: 121.41.101.63
|
||||
password: yingdiandian2015
|
||||
timeout: 6000
|
||||
port: 6379
|
||||
|
||||
jpa:
|
||||
show-sql: true
|
||||
80
api/src/main/resources/config/application.yml
Normal file
80
api/src/main/resources/config/application.yml
Normal file
@@ -0,0 +1,80 @@
|
||||
server:
|
||||
port: 8093
|
||||
# port: 8000
|
||||
debug: true
|
||||
|
||||
app:
|
||||
accessToken:
|
||||
expires: 7200
|
||||
|
||||
spring:
|
||||
http:
|
||||
multipart:
|
||||
max-file-size: 1024MB
|
||||
max-request-size: 1024MB
|
||||
enabled: true
|
||||
profiles:
|
||||
include:
|
||||
-development
|
||||
-test
|
||||
-production
|
||||
active: development
|
||||
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
|
||||
# 数据库连接池配置
|
||||
druid:
|
||||
filters: stat
|
||||
initialSize: 1
|
||||
minIdle: 1
|
||||
maxActive: 40
|
||||
maxWait: 600000
|
||||
timeBetweenEvictionRunsMillis: 60000
|
||||
minEvictableIdleTimeMillis: 300000
|
||||
validationQuery: SELECT 'x'
|
||||
testWhileIdle: true
|
||||
testOnBorrow: false
|
||||
testOnReturn: false
|
||||
poolPreparedStatements: true
|
||||
maxPoolPreparedStatementPerConnectionSize: 20
|
||||
WebStatFilter:
|
||||
enabled: false
|
||||
urlPattern:
|
||||
exclusions:
|
||||
sessionStatMaxCount:
|
||||
sessionStatEnable:
|
||||
principalSessionName:
|
||||
principalCookieName:
|
||||
profileEnable:
|
||||
StatViewServlet:
|
||||
enabled: true
|
||||
urlPattern: /druid/*
|
||||
resetEnable: true
|
||||
loginUsername: druid
|
||||
loginPassword: druid
|
||||
allow:
|
||||
deny:
|
||||
aop:
|
||||
auto: true
|
||||
mvc:
|
||||
log-resolved-exception: false
|
||||
jackson:
|
||||
default-property-inclusion: non_null
|
||||
timeZone: GMT+8
|
||||
date-format: yyyy-MM-dd HH:mm:ss
|
||||
serialization:
|
||||
WRITE_NULL_MAP_VALUES: false
|
||||
INDENT_OUTPUT: true
|
||||
|
||||
# MyBatis Configuration
|
||||
mybatis:
|
||||
type-aliases-package: com.ydd.oms.entity
|
||||
config-location: classpath:mybatis/mybatis-config.xml
|
||||
mapper-locations: classpath:mybatis/mapper/*/*.xml
|
||||
|
||||
face:
|
||||
url: 23r3o72310.iask.in
|
||||
account: test@test.com
|
||||
pwd: 123456
|
||||
|
||||
Reference in New Issue
Block a user