Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
slm-fileview
Project
Project
Details
Activity
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
梁杰芳
slm-fileview
Commits
d61e5236
Commit
d61e5236
authored
Feb 04, 2021
by
kl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增启动完成,打印启动耗时、演示页访问地址
parent
d514e6dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
ServerMain.java
server/src/main/java/cn/keking/ServerMain.java
+15
-2
No files found.
server/src/main/java/cn/keking/ServerMain.java
View file @
d61e5236
package
cn
.
keking
;
import
org.springframework.boot.SpringApplication
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.builder.SpringApplicationBuilder
;
import
org.springframework.context.annotation.ComponentScan
;
import
org.springframework.scheduling.annotation.EnableScheduling
;
import
org.springframework.util.StopWatch
;
@SpringBootApplication
@EnableScheduling
@ComponentScan
(
value
=
"cn.keking.*"
)
public
class
ServerMain
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
ServerMain
.
class
);
public
static
void
main
(
String
[]
args
)
{
StopWatch
stopWatch
=
new
StopWatch
();
stopWatch
.
start
();
ServerMain
.
staticInitSystemProperty
();
SpringApplication
.
run
(
ServerMain
.
class
,
args
);
new
SpringApplicationBuilder
(
ServerMain
.
class
)
.
logStartupInfo
(
false
)
.
run
(
args
);
stopWatch
.
stop
();
logger
.
info
(
"kkFileView 服务启动完成,耗时:{}s,演示页请访问: http://127.0.0.1:8012 "
,
stopWatch
.
getTotalTimeSeconds
()
);
}
private
static
void
staticInitSystemProperty
(){
//pdfbox兼容低版本jdk
System
.
setProperty
(
"sun.java2d.cmm"
,
"sun.java2d.cmm.kcms.KcmsServiceProvider"
);
}
}
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