Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-trialdrive-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit eb03fddb
authored
Mar 30, 2022
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
jetty使用默认配置
1 parent
6359d362
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
src/main/java/cn/com/glsx/admin/config/JettyConfig.java
src/main/java/cn/com/glsx/admin/config/JettyConfig.java
View file @
eb03fdd
...
@@ -8,17 +8,17 @@ import org.springframework.boot.web.embedded.jetty.JettyServletWebServerFactory;
...
@@ -8,17 +8,17 @@ import org.springframework.boot.web.embedded.jetty.JettyServletWebServerFactory;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Configuration
;
@Configuration
//
@Configuration
public
class
JettyConfig
{
public
class
JettyConfig
{
@Bean
//
@Bean
public
JettyServletWebServerFactory
jettyEmbeddedServletContainerFactory
(
JettyServerCustomizer
jettyServerCustomizer
)
{
public
JettyServletWebServerFactory
jettyEmbeddedServletContainerFactory
(
JettyServerCustomizer
jettyServerCustomizer
)
{
JettyServletWebServerFactory
factory
=
new
JettyServletWebServerFactory
();
JettyServletWebServerFactory
factory
=
new
JettyServletWebServerFactory
();
factory
.
addServerCustomizers
(
jettyServerCustomizer
);
factory
.
addServerCustomizers
(
jettyServerCustomizer
);
return
factory
;
return
factory
;
}
}
@Bean
//
@Bean
public
JettyServerCustomizer
jettyServerCustomizer
()
{
public
JettyServerCustomizer
jettyServerCustomizer
()
{
return
server
->
{
return
server
->
{
configJettyServer
(
server
);
configJettyServer
(
server
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment