Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jz-dmp-service
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
姚本章
jz-dmp-service
Commits
c32d36c1
Commit
c32d36c1
authored
Dec 18, 2020
by
sml
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
启动类提交
parent
4ea1aaf1
Pipeline
#327
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
DmpApplication.java
src/main/java/com/jz/DmpApplication.java
+30
-0
No files found.
src/main/java/com/jz/DmpApplication.java
0 → 100644
View file @
c32d36c1
package
com
.
jz
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.actuate.health.Health
;
import
org.springframework.boot.actuate.health.HealthIndicator
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cache.annotation.EnableCaching
;
@SpringBootApplication
@EnableCaching
public
class
DmpApplication
implements
HealthIndicator
{
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
DmpApplication
.
class
);
public
static
void
main
(
String
[]
args
)
{
long
start
=
System
.
currentTimeMillis
();
SpringApplication
springApplication
=
new
SpringApplication
(
DmpApplication
.
class
);
springApplication
.
run
(
args
);
long
cost
=
System
.
currentTimeMillis
()
-
start
;
logger
.
info
(
" started status: {}, cost: {}"
,
"SUCCESS!"
,
cost
);
}
@Override
public
Health
health
()
{
return
Health
.
up
().
withDetail
(
"label center 系统"
,
"启动成功!"
).
build
();
}
}
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