Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
maintain_service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
刘帅
maintain_service
Commits
bd4b9ea9
Commit
bd4b9ea9
authored
Jun 03, 2025
by
刘帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.优化
parent
01bb91e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
9 deletions
+33
-9
SysIndexController.java
...om/maintain/web/controller/system/SysIndexController.java
+1
-1
application.yml
maintain-admin/src/main/resources/application.yml
+32
-8
No files found.
maintain-admin/src/main/java/com/maintain/web/controller/system/SysIndexController.java
View file @
bd4b9ea9
...
@@ -27,6 +27,6 @@ public class SysIndexController {
...
@@ -27,6 +27,6 @@ public class SysIndexController {
@SaIgnore
@SaIgnore
@GetMapping
(
"/"
)
@GetMapping
(
"/"
)
public
String
index
()
{
public
String
index
()
{
return
StringUtils
.
format
(
"欢迎使用
{}后台管理框架,当前版本:v{},请通过前端地址访问。"
,
maintainConfig
.
getName
(),
maintainConfig
.
getVersion
()
);
return
StringUtils
.
format
(
"欢迎使用
维修管理系统,当前版本:v1.0.0,请通过前端地址访问。"
);
}
}
}
}
maintain-admin/src/main/resources/application.yml
View file @
bd4b9ea9
...
@@ -139,9 +139,9 @@ security:
...
@@ -139,9 +139,9 @@ security:
# actuator 监控配置
# actuator 监控配置
-
/actuator
-
/actuator
-
/actuator/**
-
/actuator/**
-
/jmreport/**
#
- /jmreport/**
-
/drag/**
#
- /drag/**
-
/jimubi/**
#
- /jimubi/**
# MyBatisPlus配置
# MyBatisPlus配置
# https://baomidou.com/config/
# https://baomidou.com/config/
...
@@ -205,11 +205,12 @@ springdoc:
...
@@ -205,11 +205,12 @@ springdoc:
api-docs
:
api-docs
:
path
:
/api-docs
path
:
/api-docs
# 是否开启接口文档
# 是否开启接口文档
enabled
:
tru
e
enabled
:
fals
e
swagger-ui
:
swagger-ui
:
path
:
/swagger-ui.html
path
:
/swagger-ui.html
# 持久化认证数据
# 持久化认证数据
persistAuthorization
:
true
persistAuthorization
:
true
enabled
:
false
info
:
info
:
# 标题
# 标题
title
:
'
标题:维修后台管理系统_接口文档'
title
:
'
标题:维修后台管理系统_接口文档'
...
@@ -263,14 +264,37 @@ lock4j:
...
@@ -263,14 +264,37 @@ lock4j:
---
# Actuator 监控端点的配置项
---
# Actuator 监控端点的配置项
management
:
management
:
endpoints
:
endpoints
:
enabled-by-default
:
false
# 默认关闭所有端点
web
:
web
:
exposure
:
exposure
:
include
:
'
*'
include
:
health,info
# 仅允许健康检查和基础信息端点
exclude
:
env,jolokia,heapdump,shutdown,threaddump,sessions,trace,prometheus
# 显式排除高危端点
base-path
:
/internal-monitor
# 自定义访问路径(避免默认/actuator)
jmx
:
exposure
:
exclude
:
'
*'
# 禁用所有JMX端点(除非必要)
endpoint
:
endpoint
:
health
:
health
:
show-details
:
ALWAYS
enabled
:
true
# 开放健康检查(无敏感信息)
logfile
:
show-details
:
never
# 禁止显示详情(或改为`when-authorized`)
external-file
:
./logs/sys-console.log
# health:
# show-details: ALWAYS
logfile
:
external-file
:
./logs/sys-console.log
info
:
enabled
:
true
# 开放基础信息端点
env
:
enabled
:
false
# 禁用环境变量端点
keys-to-sanitize
:
password,secret,key,token
# 脱敏字段(即使意外开启)
jolokia
:
enabled
:
false
# 禁用Jolokia(防RCE漏洞)
heapdump
:
enabled
:
false
# 禁用堆转储
shutdown
:
enabled
:
false
# 禁用远程关闭
configprops
:
keys-to-sanitize
:
password,secret
# 配置属性脱敏
spring
:
spring
:
datasource
:
datasource
:
...
...
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