Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
HYH.APSJ
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
佟礼
HYH.APSJ
Commits
8bf9f906
Commit
8bf9f906
authored
Jan 16, 2026
by
DESKTOP-VKRD9QF\Administration
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改yml文件
parent
019c2aa2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
100 additions
and
0 deletions
+100
-0
application.yml
src/main/resources/application.yml
+100
-0
No files found.
src/main/resources/application.yml
0 → 100644
View file @
8bf9f906
server
:
port
:
8181
# 修改为你想要的端口号
spring
:
servlet
:
multipart
:
max-file-size
:
10MB
max-request-size
:
10MB
mvc
:
pathmatch
:
matching-strategy
:
ant_path_matcher
# Spring Boot 2.6+ 需要这个配置
redis
:
host
:
192.168.0.181
port
:
6380
timeout
:
120000
database
:
10
password
:
redis@228!
# Swagger 配置
doc
:
swagger-ui
:
path
:
/swagger-ui.html
api-docs
:
path
:
/v3/api-docs
# Jackson配置 - 添加这里
jackson
:
# 全局日期时间格式
date-format
:
yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
time-zone
:
UTC
serialization
:
write-dates-as-timestamps
:
false
write-dates-with-zone-id
:
true
write-durations-as-timestamps
:
false
deserialization
:
adjust-dates-to-context-time-zone
:
false
fail-on-unknown-properties
:
false
default-property-inclusion
:
non_null
parser
:
allow-non-numeric-numbers
:
true
generator
:
write-numbers-as-strings
:
false
datasource
:
dynamic
:
primary
:
oracle
# 默认数据源
strict
:
false
# 关闭严格模式
datasource
:
# # MySQL数据源
# mysql:
# driver-class-name: com.mysql.cj.jdbc.Driver
# url: jdbc:mysql://192.168.0.181:3310/mes?useSSL=false&serverTimezone=UTC
# username: root # 替换为你的MySQL用户名
# password: root_mes@123456~ # 替换为你的MySQL密码
# Oracle数据源
oracle
:
driver-class-name
:
oracle.jdbc.OracleDriver
url
:
jdbc:oracle:thin:@//192.168.0.181:1522/ORCLPDB1
# ORCL为你的Oracle实例名
username
:
mes
# 替换为你的Oracle用户名
password
:
root_mes123456
# 替换为你的Oracle密码
# sqlserver:
# driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
# url: jdbc:sqlserver://192.168.0.181:1434;databaseName=mes;encrypt=false
# username: sa
# password: root_mes123456
# 文件上传配置
file
:
upload
:
dir
:
uploads
mybatis-plus
:
mapper-locations
:
classpath:mapper/**/*.xml
# Mapper XML路径
type-aliases-package
:
com.aps.entity
# 实体类包路径
configuration
:
# 开启自动转义关键字
auto-delimited-keywords
:
true
map-underscore-to-camel-case
:
true
# 下划线转驼峰
log-impl
:
org.apache.ibatis.logging.nologging.NoLoggingImpl
# 打印SQL日志(调试用)
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 开启SQL打印
global-config
:
db-config
:
id-type
:
auto
# 主键自增策略
table-underline
:
true
capital-mode
:
false
# 应用配置
app
:
# 时区配置
timezone
:
UTC
# 跨域配置
cors
:
allowed-origins
:
"
*"
allowed-methods
:
"
*"
allowed-headers
:
"
*"
allow-credentials
:
true
# 文件上传
upload
:
max-size
:
10MB
allowed-extensions
:
.jpg,.jpeg,.png,.gif,.pdf,.doc,.docx,.xls,.xlsx
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment