初始话
This commit is contained in:
@@ -0,0 +1,81 @@
|
||||
# tomcat 端口配置
|
||||
server:
|
||||
port: 8080
|
||||
# 数据源配置
|
||||
spring:
|
||||
datasource:
|
||||
url: jdbc:mysql://${MYSQL_HOST:8.138.180.255}:${MYSQL_PORT:3306}/${DB_NAME:aiResume}?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true
|
||||
username: ${MYSQL_USERNAME:root}
|
||||
password: ${MYSQL_PASSWORD:qwertyuiopasdfghjkl.zxcvbnm}
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
redis:
|
||||
host: ${REDIS_HOST:8.138.180.255}
|
||||
password: ${REDIS_PASSWORD:qwertyuiopasdfghjkl.zxcvbnm}
|
||||
port: ${REDIS_PORT:6379}
|
||||
timeout: 8s
|
||||
|
||||
# 电子邮箱
|
||||
email:
|
||||
status: close
|
||||
account: ${EMAIL_ACCOUNT:sim18502043706@163.com}
|
||||
authorization: ${EMAIL_AUTHORIZATION:CHBCVPYGFZCSUNCP}
|
||||
|
||||
# 微信支付
|
||||
wx_pay:
|
||||
# status close:关闭 open:打开
|
||||
status: close
|
||||
merchant_id: ${MERCHANT_ID:1705334978}
|
||||
privateKey_path: ${PRIVATEKEY_PATH:E:\wxPayCertify\1705334978_20250131_cert\apiclient_key.pem}
|
||||
merchant_serial_number: ${MERCHANT_SERIAL_NUMBER:354F4A0BD7A11CB756ED3BC380A0E41442DE68F7}
|
||||
api_v3_key: ${API_V3_KEY:zhyahjkiysetindhGseuHadjKITshons}
|
||||
public_key_path: ${PUBLIC_KEY_PATH:E:\wxPayCertify\pub_key.pem}
|
||||
public_key_id: ${PUBLIC_KEY_ID:PUB_KEY_ID_0117053349782025013000337100001480}
|
||||
#回调域名地址
|
||||
notify_domain: ${API_NOTIFY_DOMAIN:http://8.138.180.255:8080/api/}
|
||||
|
||||
app:
|
||||
# 加密秘钥配置
|
||||
secret:
|
||||
token: ${SECRET_TOKEN:Aa123123}
|
||||
|
||||
#登陆配置
|
||||
login:
|
||||
# 登陆图片验证相关
|
||||
login_image_verification:
|
||||
enable: false
|
||||
images_code_sources: 123456789ABCDEFGHJKLMNPQRSTUVWXYZ
|
||||
images_w: 111
|
||||
images_h: 36
|
||||
# token配置
|
||||
token:
|
||||
exceed_time: 129600
|
||||
#设备在线数量
|
||||
device_online_quantity: 10
|
||||
|
||||
# 短信
|
||||
sms:
|
||||
service_provider: aliyun
|
||||
aliyun:
|
||||
access_key_id: LTAI5tGRFuJmt6nrxRqZYC7z
|
||||
access_key_secret: xLC3kNSmCvEtsc9j4O8g3rOs70QjZQ
|
||||
|
||||
oss:
|
||||
service_provider: aliyun
|
||||
aliyun:
|
||||
access_key_id: LTAI5tGRFuJmt6nrxRqZYC7z
|
||||
access_key_secret: xLC3kNSmCvEtsc9j4O8g3rOs70QjZQ
|
||||
|
||||
# 防刷配置 20秒 20次
|
||||
prevent_replay:
|
||||
if_open: false
|
||||
interval_time: 20
|
||||
limit_number: 20
|
||||
|
||||
# 微信小程序
|
||||
wx:
|
||||
app_id: wx7d75957cbd35e36b
|
||||
app_secret: d70ef5baa4b9c046f396736d9a42cdc3
|
||||
|
||||
#开放接口
|
||||
ignore:
|
||||
urls: "/public/**"
|
||||
@@ -0,0 +1,70 @@
|
||||
# tomcat config
|
||||
server:
|
||||
tomcat:
|
||||
accept-count: 100
|
||||
threads:
|
||||
max: 200
|
||||
min-spare: 10
|
||||
servlet:
|
||||
context-path: /api
|
||||
# spring config
|
||||
spring:
|
||||
application:
|
||||
name: client
|
||||
profiles:
|
||||
active: ${PROFILES_ACTIVE:local}
|
||||
servlet:
|
||||
multipart:
|
||||
max-file-size: 4MB
|
||||
max-request-size: 20MB
|
||||
mvc:
|
||||
throw-exception-if-no-handler-found: true
|
||||
web:
|
||||
resources:
|
||||
add-mappings: false
|
||||
cache:
|
||||
redis:
|
||||
cache-null-values: true
|
||||
key-prefix: "${spring.application.name}:"
|
||||
time-to-live: 24h
|
||||
jackson:
|
||||
default-property-inclusion: non_null
|
||||
property-naming-strategy: LOWER_CAMEL_CASE
|
||||
serialization:
|
||||
fail-on-empty-beans: false
|
||||
write-date-keys-as-timestamps: true
|
||||
write-date-timestamps-as-nanoseconds: false
|
||||
write-dates-as-timestamps: true
|
||||
deserialization:
|
||||
fail-on-unknown-properties: false
|
||||
fail-on-numbers-for-enums: true
|
||||
read-date-timestamps-as-nanoseconds: false
|
||||
# mybatis plus config
|
||||
mybatis-plus:
|
||||
mapper-locations: classpath*:mapper/**/*.xml
|
||||
global-config:
|
||||
db-config:
|
||||
id-type: assign_id
|
||||
insert-strategy: not_null
|
||||
update-strategy: not_null
|
||||
logic-delete-field: isDelete
|
||||
logic-delete-value: '1'
|
||||
logic-not-delete-value: '0'
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
auto-mapping-unknown-column-behavior: warning
|
||||
cache-enabled: false
|
||||
call-setters-on-nulls: true
|
||||
jdbc-type-for-null: 'null'
|
||||
|
||||
#日志
|
||||
|
||||
logging:
|
||||
level:
|
||||
org:
|
||||
mybatis: info
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user