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
1ae42067
Commit
1ae42067
authored
Jul 15, 2018
by
Johnny Lim
Committed by
Stephane Nicoll
Jul 16, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
Closes gh-13776
parent
48962718
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
9 deletions
+9
-9
NettyWebServerFactoryCustomizerTests.java
...re/web/embedded/NettyWebServerFactoryCustomizerTests.java
+3
-3
spring-boot-features.adoc
...ing-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+3
-3
NettyReactiveWebServerFactory.java
...oot/web/embedded/netty/NettyReactiveWebServerFactory.java
+1
-0
SpringBootJoranConfiguratorTests.java
...oot/logging/logback/SpringBootJoranConfiguratorTests.java
+1
-1
TomcatServletWebServerFactoryTests.java
...b/embedded/tomcat/TomcatServletWebServerFactoryTests.java
+1
-2
No files found.
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/embedded/NettyWebServerFactoryCustomizerTests.java
View file @
1ae42067
...
...
@@ -50,7 +50,7 @@ public class NettyWebServerFactoryCustomizerTests {
}
@Test
public
void
deduceUseForwardHeaders
Undertow
()
{
public
void
deduceUseForwardHeaders
()
{
this
.
environment
.
setProperty
(
"DYNO"
,
"-"
);
NettyReactiveWebServerFactory
factory
=
mock
(
NettyReactiveWebServerFactory
.
class
);
this
.
customizer
.
customize
(
factory
);
...
...
@@ -58,14 +58,14 @@ public class NettyWebServerFactoryCustomizerTests {
}
@Test
public
void
defaultUseForwardHeaders
Undertow
()
{
public
void
defaultUseForwardHeaders
()
{
NettyReactiveWebServerFactory
factory
=
mock
(
NettyReactiveWebServerFactory
.
class
);
this
.
customizer
.
customize
(
factory
);
verify
(
factory
).
setUseForwardHeaders
(
false
);
}
@Test
public
void
setUseForwardHeaders
Undertow
()
{
public
void
setUseForwardHeaders
()
{
this
.
serverProperties
.
setUseForwardHeaders
(
true
);
NettyReactiveWebServerFactory
factory
=
mock
(
NettyReactiveWebServerFactory
.
class
);
this
.
customizer
.
customize
(
factory
);
...
...
spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
1ae42067
...
...
@@ -763,13 +763,13 @@ example:
In the preceding example, if the `development` profile is active, the `server.address`
property is `127.0.0.1`. Similarly, if the `production` *and* `eu-central` profiles are
active, the `server.address` property is `192.168.1.120`. If the `development`
and
active, the `server.address` property is `192.168.1.120`. If the `development`
,
`production` and `eu-central` profiles are *not* enabled, then the value for the property
is `192.168.1.100`.
[NOTE]
====
`spring.profiles` can therefore contain
s
a simple profile name (for example `production`)
`spring.profiles` can therefore contain a simple profile name (for example `production`)
or a profile expression. A profile expression allows for more complicated profile logic
to be expressed, for example `production & (eu-central | eu-west)`. Check the
{spring-reference}core.html#beans-definition-profiles-java[reference guide] for more
...
...
@@ -1821,7 +1821,7 @@ ERROR in ch.qos.logback.core.joran.spi.Interpreter@4:71 - no applicable action f
The `<springProfile>` tag lets you optionally include or exclude sections of
configuration based on the active Spring profiles. Profile sections are supported
anywhere within the `<configuration>` element. Use the `name` attribute to specify which
profile accepts the configuration. The `<springProfile>
tag can contains
a simple profile
profile accepts the configuration. The `<springProfile>
` tag can contain
a simple profile
name (for example `staging`) or a profile expression. A profile expression allows for more
complicated profile logic to be expressed, for example
`production & (eu-central | eu-west)`. Check the
...
...
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/netty/NettyReactiveWebServerFactory.java
View file @
1ae42067
...
...
@@ -102,6 +102,7 @@ public class NettyReactiveWebServerFactory extends AbstractReactiveWebServerFact
/**
* Set if x-forward-* headers should be processed.
* @param useForwardHeaders if x-forward headers should be used
* @since 2.1.0
*/
public
void
setUseForwardHeaders
(
boolean
useForwardHeaders
)
{
this
.
useForwardHeaders
=
useForwardHeaders
;
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/logback/SpringBootJoranConfiguratorTests.java
View file @
1ae42067
...
...
@@ -118,7 +118,7 @@ public class SpringBootJoranConfiguratorTests {
@Test
public
void
profileExpressionMatchSecond
()
throws
Exception
{
this
.
environment
.
setActiveProfiles
(
"
production
"
);
this
.
environment
.
setActiveProfiles
(
"
test
"
);
initialize
(
"profile-expression.xml"
);
this
.
logger
.
trace
(
"Hello"
);
this
.
out
.
expect
(
containsString
(
"Hello"
));
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/tomcat/TomcatServletWebServerFactoryTests.java
View file @
1ae42067
...
...
@@ -180,8 +180,7 @@ public class TomcatServletWebServerFactoryTests
TomcatServletWebServerFactory
factory
=
getFactory
();
Connector
[]
listeners
=
new
Connector
[
4
];
for
(
int
i
=
0
;
i
<
listeners
.
length
;
i
++)
{
Connector
connector
=
new
Connector
();
listeners
[
i
]
=
connector
;
listeners
[
i
]
=
new
Connector
();
}
factory
.
addAdditionalTomcatConnectors
(
listeners
);
this
.
webServer
=
factory
.
getWebServer
();
...
...
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