Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,4 @@ target/
*.iml
*.ipr
.mvn
mvnw*

*.yml
mvnw*
41 changes: 41 additions & 0 deletions byte-web/src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
spring:
application:
name: byte-service
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://192.168.0.210:3306/qingxun?useUnicode=true&characterEncoding=UTF-8&serverTimeZone=UTC
username: root
password: password

hikari:
minimum-idle: 10
maximum-pool-size: 20
connection-timeout: 60000
idle-timeout: 60000
redis:
host: 192.168.0.210
port: 6379
servlet:
multipart:
max-file-size: 5MB
max-request-size: 20MB
mvc:
async:
request-timeout: 15000

mybatis-plus:
mapper-locations: classpath*:/mapper/*.xml
configuration:
map-underscore-to-camel-case: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl


enable:
swagger: true

server:
port: 8090

qiniu:
accessKey: 5gDeEHZm-LaJ6Hp9n8OE9BvVtjIML4uiSCCzk7Rp
accessSecretKey: pCVtGDSEjuL0n8Ceo7RmwoQTvSdnDNXhs1S_ed2j
42 changes: 42 additions & 0 deletions byte-web/src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
spring:
application:
name: byte-prod
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://192.168.0.210:3306/qingxun?useUnicode=true&characterEncoding=UTF-8&serverTimeZone=UTC
username: root
password: password
hikari:
minimum-idle: 10
maximum-pool-size: 20
connection-timeout: 60000
idle-timeout: 60000
redis:
host: *****
port: 6379
servlet:
multipart:
max-file-size: 5MB
max-request-size: 20MB
mvc:
async:
request-timeout: 15000

mybatis-plus:
mapper-locations: classpath*:/mapper/*.xml
configuration:
map-underscore-to-camel-case: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl


enable:
swagger: true

server:
port: 8090
servlet:
context-path: /api

qiniu:
accessKey: 5gDeEHZm-LaJ6Hp9n8OE9BvVtjIML4uiSCCzk7Rp
accessSecretKey: pCVtGDSEjuL0n8Ceo7RmwoQTvSdnDNXhs1S_ed2j
30 changes: 30 additions & 0 deletions byte-web/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
spring:
application:
name: byte-service
profiles:
active: dev
mail:
#smtp服务主机 qq邮箱则为smtp.qq.com
host: smtp.163.com
#服务协议
protocol: smtp
# 编码集
default-encoding: UTF-8
#发送邮件的账户
username: 15841721425@163.com
#授权码
password: BXMZXWVALLBBWEFP
test-connection: false
port: 465
properties:
mail:
smtp:
auth: true
starttls:
enable: true
required: true
ssl:
enable: true
socketFactory:
port: 465
class: javax.net.ssl.SSLSocketFactory