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
d5d6507e
Commit
d5d6507e
authored
Nov 10, 2015
by
Phillip Webb
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4335 from izeye/ordered
* pr/4335: Polish Use Ordered.HIGHEST_PRECEDENCE constants
parents
9f8eda18
c8737008
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
12 deletions
+13
-12
SocialWebAutoConfiguration.java
...boot/autoconfigure/social/SocialWebAutoConfiguration.java
+2
-1
WebMvcAutoConfiguration.java
...ework/boot/autoconfigure/web/WebMvcAutoConfiguration.java
+1
-1
deployment.adoc
spring-boot-docs/src/main/asciidoc/deployment.adoc
+7
-7
ContextIdApplicationContextInitializer.java
.../boot/context/ContextIdApplicationContextInitializer.java
+1
-1
ServletContextApplicationContextInitializer.java
...text/web/ServletContextApplicationContextInitializer.java
+1
-1
SpringApplicationConfigurationXmlConventionConfigurationTests.java
...licationConfigurationXmlConventionConfigurationTests.java
+1
-1
No files found.
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/social/SocialWebAutoConfiguration.java
View file @
d5d6507e
...
@@ -18,6 +18,7 @@ package org.springframework.boot.autoconfigure.social;
...
@@ -18,6 +18,7 @@ package org.springframework.boot.autoconfigure.social;
import
java.util.List
;
import
java.util.List
;
import
org.springframework.core.Ordered
;
import
org.thymeleaf.spring4.SpringTemplateEngine
;
import
org.thymeleaf.spring4.SpringTemplateEngine
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -104,7 +105,7 @@ public class SocialWebAutoConfiguration {
...
@@ -104,7 +105,7 @@ public class SocialWebAutoConfiguration {
@ConditionalOnProperty
(
prefix
=
"spring.social"
,
name
=
"auto-connection-views"
)
@ConditionalOnProperty
(
prefix
=
"spring.social"
,
name
=
"auto-connection-views"
)
public
BeanNameViewResolver
beanNameViewResolver
()
{
public
BeanNameViewResolver
beanNameViewResolver
()
{
BeanNameViewResolver
viewResolver
=
new
BeanNameViewResolver
();
BeanNameViewResolver
viewResolver
=
new
BeanNameViewResolver
();
viewResolver
.
setOrder
(
Integer
.
MIN_VALU
E
);
viewResolver
.
setOrder
(
Ordered
.
HIGHEST_PRECEDENC
E
);
return
viewResolver
;
return
viewResolver
;
}
}
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration.java
View file @
d5d6507e
...
@@ -317,7 +317,7 @@ public class WebMvcAutoConfiguration {
...
@@ -317,7 +317,7 @@ public class WebMvcAutoConfiguration {
@Bean
@Bean
public
SimpleUrlHandlerMapping
faviconHandlerMapping
()
{
public
SimpleUrlHandlerMapping
faviconHandlerMapping
()
{
SimpleUrlHandlerMapping
mapping
=
new
SimpleUrlHandlerMapping
();
SimpleUrlHandlerMapping
mapping
=
new
SimpleUrlHandlerMapping
();
mapping
.
setOrder
(
Integer
.
MIN_VALU
E
+
1
);
mapping
.
setOrder
(
Ordered
.
HIGHEST_PRECEDENC
E
+
1
);
mapping
.
setUrlMap
(
Collections
.
singletonMap
(
"**/favicon.ico"
,
mapping
.
setUrlMap
(
Collections
.
singletonMap
(
"**/favicon.ico"
,
faviconRequestHandler
()));
faviconRequestHandler
()));
return
mapping
;
return
mapping
;
...
...
spring-boot-docs/src/main/asciidoc/deployment.adoc
View file @
d5d6507e
...
@@ -22,7 +22,7 @@ _cloud's_ notion of a running process.
...
@@ -22,7 +22,7 @@ _cloud's_ notion of a running process.
Two popular cloud providers, Heroku and Cloud Foundry, employ a "`buildpack`" approach.
Two popular cloud providers, Heroku and Cloud Foundry, employ a "`buildpack`" approach.
The buildpack wraps your deployed code in whatever is needed to _start_ your
The buildpack wraps your deployed code in whatever is needed to _start_ your
application: it might be a JDK and a call to `java`, it might be an embedded webserver,
application: it might be a JDK and a call to `java`, it might be an embedded web
server,
or it might be a full-fledged application server. A buildpack is pluggable, but ideally
or it might be a full-fledged application server. A buildpack is pluggable, but ideally
you should be able to get by with as few customizations to it as possible.
you should be able to get by with as few customizations to it as possible.
This reduces the footprint of functionality that is not under your control. It minimizes
This reduces the footprint of functionality that is not under your control. It minimizes
...
@@ -232,11 +232,11 @@ Your application should now be up and running on Heroku.
...
@@ -232,11 +232,11 @@ Your application should now be up and running on Heroku.
[[cloud-deployment-openshift]]
[[cloud-deployment-openshift]]
=== Open
s
hift
=== Open
S
hift
https://www.openshift.com/[Open
s
hift] is the RedHat public (and enterprise) PaaS solution.
https://www.openshift.com/[Open
S
hift] is the RedHat public (and enterprise) PaaS solution.
Like Heroku, it works by running scripts triggered by git commits, so you can script
Like Heroku, it works by running scripts triggered by git commits, so you can script
the launching of a Spring Boot application in pretty much any way you like as long as the
the launching of a Spring Boot application in pretty much any way you like as long as the
Java runtime is available (which is a standard feature you can ask for at Open
s
hift).
Java runtime is available (which is a standard feature you can ask for at Open
S
hift).
To do this you can use the
To do this you can use the
https://www.openshift.com/developers/do-it-yourself[DIY Cartridge] and hooks in your
https://www.openshift.com/developers/do-it-yourself[DIY Cartridge] and hooks in your
repository under `.openshift/action_scripts`:
repository under `.openshift/action_scripts`:
...
@@ -289,7 +289,7 @@ in your `application.properties`, e.g.
...
@@ -289,7 +289,7 @@ in your `application.properties`, e.g.
----
----
There's a blog on https://www.openshift.com/blogs/run-gradle-builds-on-openshift[running
There's a blog on https://www.openshift.com/blogs/run-gradle-builds-on-openshift[running
Gradle in Open
s
hift] on their website that will get you started with a gradle build to
Gradle in Open
S
hift] on their website that will get you started with a gradle build to
run the app.
run the app.
...
@@ -299,7 +299,7 @@ run the app.
...
@@ -299,7 +299,7 @@ run the app.
https://boxfuse.com/[Boxfuse] works by turning your Spring Boot executable jar or war
https://boxfuse.com/[Boxfuse] works by turning your Spring Boot executable jar or war
into a minimal VM image that can be deployed unchanged either on VirtualBox or on AWS.
into a minimal VM image that can be deployed unchanged either on VirtualBox or on AWS.
Boxfuse comes with deep integration for Spring Boot and will use the information from your
Boxfuse comes with deep integration for Spring Boot and will use the information from your
Spring Boot configuration file to automatically configure ports and healthcheck URLs.
Spring Boot configuration file to automatically configure ports and health
check URLs.
Boxfuse leverages this information both for the images it produces as well as for all the
Boxfuse leverages this information both for the images it produces as well as for all the
resources it provisions (instances, security groups, elastic load balancers, etc).
resources it provisions (instances, security groups, elastic load balancers, etc).
...
@@ -581,7 +581,7 @@ your Spring Boot application.
...
@@ -581,7 +581,7 @@ your Spring Boot application.
[[deployment-whats-next]]
[[deployment-whats-next]]
== What to read next
== What to read next
Check out the http://www.cloudfoundry.com/[Cloud Foundry],
Check out the http://www.cloudfoundry.com/[Cloud Foundry],
https://www.heroku.com/[Heroku], https://www.openshift.com[Open
s
hift] and
https://www.heroku.com/[Heroku], https://www.openshift.com[Open
S
hift] and
https://boxfuse.com[Boxfuse] web sites for more information about the kinds of features
https://boxfuse.com[Boxfuse] web sites for more information about the kinds of features
that a PaaS can offer. These are just four of the most popular Java PaaS providers, since
that a PaaS can offer. These are just four of the most popular Java PaaS providers, since
Spring Boot is so amenable to cloud-based deployment you're free to consider other
Spring Boot is so amenable to cloud-based deployment you're free to consider other
...
...
spring-boot/src/main/java/org/springframework/boot/context/ContextIdApplicationContextInitializer.java
View file @
d5d6507e
...
@@ -61,7 +61,7 @@ public class ContextIdApplicationContextInitializer implements
...
@@ -61,7 +61,7 @@ public class ContextIdApplicationContextInitializer implements
private
final
String
name
;
private
final
String
name
;
private
int
order
=
Integer
.
MAX_VALU
E
-
10
;
private
int
order
=
Ordered
.
LOWEST_PRECEDENC
E
-
10
;
public
ContextIdApplicationContextInitializer
()
{
public
ContextIdApplicationContextInitializer
()
{
this
(
NAME_PATTERN
);
this
(
NAME_PATTERN
);
...
...
spring-boot/src/main/java/org/springframework/boot/context/web/ServletContextApplicationContextInitializer.java
View file @
d5d6507e
...
@@ -30,7 +30,7 @@ import org.springframework.web.context.ConfigurableWebApplicationContext;
...
@@ -30,7 +30,7 @@ import org.springframework.web.context.ConfigurableWebApplicationContext;
public
class
ServletContextApplicationContextInitializer
implements
public
class
ServletContextApplicationContextInitializer
implements
ApplicationContextInitializer
<
ConfigurableWebApplicationContext
>,
Ordered
{
ApplicationContextInitializer
<
ConfigurableWebApplicationContext
>,
Ordered
{
private
int
order
=
Integer
.
MIN_VALU
E
;
private
int
order
=
Ordered
.
HIGHEST_PRECEDENC
E
;
private
final
ServletContext
servletContext
;
private
final
ServletContext
servletContext
;
...
...
spring-boot/src/test/java/org/springframework/boot/test/SpringApplicationConfigurationXmlConventionConfigurationTests.java
View file @
d5d6507e
...
@@ -38,7 +38,7 @@ public class SpringApplicationConfigurationXmlConventionConfigurationTests {
...
@@ -38,7 +38,7 @@ public class SpringApplicationConfigurationXmlConventionConfigurationTests {
private
String
foo
;
private
String
foo
;
@Test
@Test
public
void
groovy
ConfigLoaded
()
{
public
void
xml
ConfigLoaded
()
{
assertThat
(
this
.
foo
,
equalTo
(
"World"
));
assertThat
(
this
.
foo
,
equalTo
(
"World"
));
}
}
...
...
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