tlias管理系统-参数配置化(硬编码)功能实现
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# 应用服务 WEB 访问端口
|
||||
server.port=8080
|
||||
#server.port=8080
|
||||
#下面这些内容是为了让MyBatis映射
|
||||
#指定Mybatis的Mapper文件
|
||||
mybatis.mapper-locations=classpath:mappers/*xml
|
||||
@@ -23,4 +23,9 @@ mybatis.configuration.map-underscore-to-camel-case=true
|
||||
|
||||
#文件上传大小配置
|
||||
spring.servlet.multipart.max-file-size= 10MB
|
||||
spring.servlet.multipart.max-request-size=100MB
|
||||
spring.servlet.multipart.max-request-size=100MB
|
||||
|
||||
#阿里云OSS配置信息
|
||||
aliyun.oss.endpoint=https://oss-cn-hangzhou.aliyuncs.com
|
||||
aliyun.oss.bucketName=inmind-test1
|
||||
aliyun.oss.region=cn-hangzhou
|
||||
32
tlias-web-management/src/main/resources/application.yml
Normal file
32
tlias-web-management/src/main/resources/application.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
server:
|
||||
port: 8080
|
||||
|
||||
#定义对象
|
||||
user:
|
||||
name: zhangsan
|
||||
age: 18
|
||||
password: 123456
|
||||
|
||||
#定义map集合
|
||||
userMap:
|
||||
name: zhangsan
|
||||
age: 18
|
||||
password: 123456
|
||||
|
||||
#定义数组/list/set
|
||||
hobbys:
|
||||
- 吃饭
|
||||
- 睡觉
|
||||
- 玩手机
|
||||
|
||||
#定义对象数组 User[] 定义User对象的list
|
||||
users:
|
||||
- name: lisi
|
||||
age: 20
|
||||
gender: 1
|
||||
- name: wangwu
|
||||
age: 21
|
||||
gender: 2
|
||||
- name: zhaoliu
|
||||
age: 22
|
||||
gender: 1
|
||||
Reference in New Issue
Block a user