Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
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
DEMO
spring-boot
Commits
2ab4ce03
Commit
2ab4ce03
authored
Feb 26, 2019
by
dreis2211
Committed by
Stephane Nicoll
Feb 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix deprecations
Closes gh-16037
parent
00a18c32
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
RestDocsTestController.java
...t/test/autoconfigure/restdocs/RestDocsTestController.java
+3
-3
ReactiveWebServerApplicationContext.java
...reactive/context/ReactiveWebServerApplicationContext.java
+3
-1
No files found.
spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/restdocs/RestDocsTestController.java
View file @
2ab4ce03
/*
/*
* Copyright 2012-201
7
the original author or authors.
* Copyright 2012-201
9
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -20,7 +20,7 @@ import java.util.HashMap;
...
@@ -20,7 +20,7 @@ import java.util.HashMap;
import
java.util.Map
;
import
java.util.Map
;
import
org.springframework.hateoas.MediaTypes
;
import
org.springframework.hateoas.MediaTypes
;
import
org.springframework.hateoas.mvc.
Controller
LinkBuilder
;
import
org.springframework.hateoas.mvc.
WebMvc
LinkBuilder
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
...
@@ -33,7 +33,7 @@ public class RestDocsTestController {
...
@@ -33,7 +33,7 @@ public class RestDocsTestController {
public
Map
<
String
,
Object
>
index
()
{
public
Map
<
String
,
Object
>
index
()
{
Map
<
String
,
Object
>
response
=
new
HashMap
<>();
Map
<
String
,
Object
>
response
=
new
HashMap
<>();
Map
<
String
,
String
>
links
=
new
HashMap
<>();
Map
<
String
,
String
>
links
=
new
HashMap
<>();
links
.
put
(
"self"
,
Controller
LinkBuilder
.
linkTo
(
getClass
()).
toUri
().
toString
());
links
.
put
(
"self"
,
WebMvc
LinkBuilder
.
linkTo
(
getClass
()).
toUri
().
toString
());
response
.
put
(
"_links"
,
links
);
response
.
put
(
"_links"
,
links
);
return
response
;
return
response
;
}
}
...
...
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/reactive/context/ReactiveWebServerApplicationContext.java
View file @
2ab4ce03
...
@@ -88,9 +88,11 @@ public class ReactiveWebServerApplicationContext
...
@@ -88,9 +88,11 @@ public class ReactiveWebServerApplicationContext
ServerManager
serverManager
=
this
.
serverManager
;
ServerManager
serverManager
=
this
.
serverManager
;
if
(
serverManager
==
null
)
{
if
(
serverManager
==
null
)
{
String
webServerFactoryBeanName
=
getWebServerFactoryBeanName
();
String
webServerFactoryBeanName
=
getWebServerFactoryBeanName
();
ReactiveWebServerFactory
webServerFactory
=
getWebServerFactory
(
webServerFactoryBeanName
);
boolean
lazyInit
=
getBeanFactory
()
boolean
lazyInit
=
getBeanFactory
()
.
getBeanDefinition
(
webServerFactoryBeanName
).
isLazyInit
();
.
getBeanDefinition
(
webServerFactoryBeanName
).
isLazyInit
();
this
.
serverManager
=
ServerManager
.
get
(
getWebServerFactory
()
,
lazyInit
);
this
.
serverManager
=
ServerManager
.
get
(
webServerFactory
,
lazyInit
);
}
}
initPropertySources
();
initPropertySources
();
}
}
...
...
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