javaEEday10-tlias管理系统-配置文件-yml配置文件

This commit is contained in:
xx
2026-11-01 11:36:17 +08:00
parent bbe2d0f266
commit de56036a42
2 changed files with 49 additions and 0 deletions
@@ -0,0 +1,49 @@
server:
port : 8080
spring:
application:
name: tlias-web
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/tlias
username: root
password: 1234
servlet:
multipart:
max-file-size: 10MB
max-request-size: 100MB
mybatis:
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
map-underscore-to-camel-case: true
aliyun:
oss:
endpoint: https://oss-cn-hangzhou.aliyuncs.com
bucketName: inmind-test1
region: cn-hangzhou
#定义对象/map集合
user:
name: 张三
age: 18
password: 123456
#数组/集合
hobbys:
- 吃饭
- 睡觉
- 打豆豆
#定义保存对象的集合
users:
- name: 张三
age: 19
id: 1
- name: 李四
age: 20
id: 2