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
267532b0
Commit
267532b0
authored
Jul 27, 2016
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6487 from Johnny Lim
* gh-6487: Polish
parents
eb444f54
9627d0ed
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
23 additions
and
23 deletions
+23
-23
HeapdumpMvcEndpoint.java
...mework/boot/actuate/endpoint/mvc/HeapdumpMvcEndpoint.java
+1
-1
package-info.java
...framework/boot/autoconfigure/freemarker/package-info.java
+1
-1
DeviceDelegatingViewResolverAutoConfiguration.java
...mobile/DeviceDelegatingViewResolverAutoConfiguration.java
+2
-2
DeviceDelegatingViewResolverFactory.java
...configure/mobile/DeviceDelegatingViewResolverFactory.java
+1
-1
ImportAutoConfigurationImportSelectorTests.java
...configure/ImportAutoConfigurationImportSelectorTests.java
+3
-3
RabbitPropertiesTests.java
...mework/boot/autoconfigure/amqp/RabbitPropertiesTests.java
+3
-3
DeviceDelegatingViewResolverAutoConfigurationTests.java
...e/DeviceDelegatingViewResolverAutoConfigurationTests.java
+2
-2
appendix-application-properties.adoc
...cs/src/main/asciidoc/appendix-application-properties.adoc
+1
-1
spring-boot-features.adoc
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+1
-1
README.adoc
spring-boot-samples/README.adoc
+1
-1
error.ftl
...sample-actuator-ui/src/main/resources/templates/error.ftl
+1
-1
home.ftl
...-sample-actuator-ui/src/main/resources/templates/home.ftl
+1
-1
pom.xml
spring-boot-starters/spring-boot-starter-freemarker/pom.xml
+1
-1
AbstractJsonMarshalTester.java
...ngframework/boot/test/json/AbstractJsonMarshalTester.java
+2
-2
BasicJsonTester.java
...a/org/springframework/boot/test/json/BasicJsonTester.java
+2
-2
No files found.
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/HeapdumpMvcEndpoint.java
View file @
267532b0
...
@@ -56,7 +56,7 @@ import org.springframework.web.bind.annotation.ResponseStatus;
...
@@ -56,7 +56,7 @@ import org.springframework.web.bind.annotation.ResponseStatus;
*/
*/
@ConfigurationProperties
(
"endpoints.heapdump"
)
@ConfigurationProperties
(
"endpoints.heapdump"
)
@HypermediaDisabled
@HypermediaDisabled
public
class
HeapdumpMvcEndpoint
extends
AbstractMvcEndpoint
implements
MvcEndpoint
{
public
class
HeapdumpMvcEndpoint
extends
AbstractMvcEndpoint
{
private
final
long
timeout
;
private
final
long
timeout
;
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/freemarker/package-info.java
View file @
267532b0
...
@@ -15,6 +15,6 @@
...
@@ -15,6 +15,6 @@
*/
*/
/**
/**
* Auto-configuration for Free
m
arker.
* Auto-configuration for Free
M
arker.
*/
*/
package
org
.
springframework
.
boot
.
autoconfigure
.
freemarker
;
package
org
.
springframework
.
boot
.
autoconfigure
.
freemarker
;
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mobile/DeviceDelegatingViewResolverAutoConfiguration.java
View file @
267532b0
...
@@ -71,11 +71,11 @@ public class DeviceDelegatingViewResolverAutoConfiguration {
...
@@ -71,11 +71,11 @@ public class DeviceDelegatingViewResolverAutoConfiguration {
@Configuration
@Configuration
@ConditionalOnClass
(
FreeMarkerViewResolver
.
class
)
@ConditionalOnClass
(
FreeMarkerViewResolver
.
class
)
protected
static
class
DeviceDelegatingFree
m
arkerViewResolverConfiguration
{
protected
static
class
DeviceDelegatingFree
M
arkerViewResolverConfiguration
{
@Bean
@Bean
@ConditionalOnBean
(
FreeMarkerViewResolver
.
class
)
@ConditionalOnBean
(
FreeMarkerViewResolver
.
class
)
public
LiteDeviceDelegatingViewResolver
deviceDelegatingFree
m
arkerViewResolver
(
public
LiteDeviceDelegatingViewResolver
deviceDelegatingFree
M
arkerViewResolver
(
DeviceDelegatingViewResolverFactory
factory
,
DeviceDelegatingViewResolverFactory
factory
,
FreeMarkerViewResolver
viewResolver
)
{
FreeMarkerViewResolver
viewResolver
)
{
return
factory
.
createViewResolver
(
viewResolver
);
return
factory
.
createViewResolver
(
viewResolver
);
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mobile/DeviceDelegatingViewResolverFactory.java
View file @
267532b0
...
@@ -69,7 +69,7 @@ public class DeviceDelegatingViewResolverFactory {
...
@@ -69,7 +69,7 @@ public class DeviceDelegatingViewResolverFactory {
public
LiteDeviceDelegatingViewResolver
createViewResolver
(
ViewResolver
delegate
)
{
public
LiteDeviceDelegatingViewResolver
createViewResolver
(
ViewResolver
delegate
)
{
if
(!(
delegate
instanceof
Ordered
))
{
if
(!(
delegate
instanceof
Ordered
))
{
throw
new
IllegalStateException
(
"ViewResolver "
+
delegate
throw
new
IllegalStateException
(
"ViewResolver "
+
delegate
+
"should implement "
+
Ordered
.
class
.
getName
());
+
"
should implement "
+
Ordered
.
class
.
getName
());
}
}
int
delegateOrder
=
((
Ordered
)
delegate
).
getOrder
();
int
delegateOrder
=
((
Ordered
)
delegate
).
getOrder
();
return
createViewResolver
(
delegate
,
adjustOrder
(
delegateOrder
));
return
createViewResolver
(
delegate
,
adjustOrder
(
delegateOrder
));
...
...
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/ImportAutoConfigurationImportSelectorTests.java
View file @
267532b0
...
@@ -63,7 +63,7 @@ public class ImportAutoConfigurationImportSelectorTests {
...
@@ -63,7 +63,7 @@ public class ImportAutoConfigurationImportSelectorTests {
@Test
@Test
public
void
importsAreSelected
()
throws
Exception
{
public
void
importsAreSelected
()
throws
Exception
{
AnnotationMetadata
annotationMetadata
=
new
SimpleMetadataReaderFactory
()
AnnotationMetadata
annotationMetadata
=
new
SimpleMetadataReaderFactory
()
.
getMetadataReader
(
ImportFree
m
arker
.
class
.
getName
())
.
getMetadataReader
(
ImportFree
M
arker
.
class
.
getName
())
.
getAnnotationMetadata
();
.
getAnnotationMetadata
();
String
[]
imports
=
this
.
importSelector
.
selectImports
(
annotationMetadata
);
String
[]
imports
=
this
.
importSelector
.
selectImports
(
annotationMetadata
);
assertThat
(
imports
).
containsExactly
(
FreeMarkerAutoConfiguration
.
class
.
getName
());
assertThat
(
imports
).
containsExactly
(
FreeMarkerAutoConfiguration
.
class
.
getName
());
...
@@ -72,7 +72,7 @@ public class ImportAutoConfigurationImportSelectorTests {
...
@@ -72,7 +72,7 @@ public class ImportAutoConfigurationImportSelectorTests {
@Test
@Test
public
void
propertyExclusionsAreNotApplied
()
throws
Exception
{
public
void
propertyExclusionsAreNotApplied
()
throws
Exception
{
AnnotationMetadata
annotationMetadata
=
new
SimpleMetadataReaderFactory
()
AnnotationMetadata
annotationMetadata
=
new
SimpleMetadataReaderFactory
()
.
getMetadataReader
(
ImportFree
m
arker
.
class
.
getName
())
.
getMetadataReader
(
ImportFree
M
arker
.
class
.
getName
())
.
getAnnotationMetadata
();
.
getAnnotationMetadata
();
this
.
importSelector
.
selectImports
(
annotationMetadata
);
this
.
importSelector
.
selectImports
(
annotationMetadata
);
verifyZeroInteractions
(
this
.
environment
);
verifyZeroInteractions
(
this
.
environment
);
...
@@ -98,7 +98,7 @@ public class ImportAutoConfigurationImportSelectorTests {
...
@@ -98,7 +98,7 @@ public class ImportAutoConfigurationImportSelectorTests {
}
}
@ImportAutoConfiguration
(
FreeMarkerAutoConfiguration
.
class
)
@ImportAutoConfiguration
(
FreeMarkerAutoConfiguration
.
class
)
static
class
ImportFree
m
arker
{
static
class
ImportFree
M
arker
{
}
}
...
...
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/amqp/RabbitPropertiesTests.java
View file @
267532b0
...
@@ -205,15 +205,15 @@ public class RabbitPropertiesTests {
...
@@ -205,15 +205,15 @@ public class RabbitPropertiesTests {
@Test
@Test
public
void
customAddresses
()
{
public
void
customAddresses
()
{
this
.
properties
.
setAddresses
(
this
.
properties
.
setAddresses
(
"user:secre
c
t@rabbit1.example.com:1234/alpha,rabbit2.example.com"
);
"user:secret@rabbit1.example.com:1234/alpha,rabbit2.example.com"
);
assertThat
(
this
.
properties
.
getAddresses
()).
isEqualTo
(
assertThat
(
this
.
properties
.
getAddresses
()).
isEqualTo
(
"user:secre
c
t@rabbit1.example.com:1234/alpha,rabbit2.example.com"
);
"user:secret@rabbit1.example.com:1234/alpha,rabbit2.example.com"
);
}
}
@Test
@Test
public
void
determineAddressesReturnsAddressesWithJustHostAndPort
()
{
public
void
determineAddressesReturnsAddressesWithJustHostAndPort
()
{
this
.
properties
.
setAddresses
(
this
.
properties
.
setAddresses
(
"user:secre
c
t@rabbit1.example.com:1234/alpha,rabbit2.example.com"
);
"user:secret@rabbit1.example.com:1234/alpha,rabbit2.example.com"
);
assertThat
(
this
.
properties
.
determineAddresses
())
assertThat
(
this
.
properties
.
determineAddresses
())
.
isEqualTo
(
"rabbit1.example.com:1234,rabbit2.example.com:5672"
);
.
isEqualTo
(
"rabbit1.example.com:1234,rabbit2.example.com:5672"
);
}
}
...
...
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/mobile/DeviceDelegatingViewResolverAutoConfigurationTests.java
View file @
267532b0
...
@@ -88,14 +88,14 @@ public class DeviceDelegatingViewResolverAutoConfigurationTests {
...
@@ -88,14 +88,14 @@ public class DeviceDelegatingViewResolverAutoConfigurationTests {
}
}
@Test
@Test
public
void
deviceDelegatingFree
m
arkerViewResolver
()
throws
Exception
{
public
void
deviceDelegatingFree
M
arkerViewResolver
()
throws
Exception
{
load
(
Collections
.<
Class
<?>>
singletonList
(
FreeMarkerAutoConfiguration
.
class
),
load
(
Collections
.<
Class
<?>>
singletonList
(
FreeMarkerAutoConfiguration
.
class
),
"spring.mobile.devicedelegatingviewresolver.enabled:true"
);
"spring.mobile.devicedelegatingviewresolver.enabled:true"
);
assertThat
(
this
.
context
.
getBeansOfType
(
LiteDeviceDelegatingViewResolver
.
class
))
assertThat
(
this
.
context
.
getBeansOfType
(
LiteDeviceDelegatingViewResolver
.
class
))
.
hasSize
(
2
);
.
hasSize
(
2
);
assertLiteDeviceDelegatingViewResolver
(
assertLiteDeviceDelegatingViewResolver
(
this
.
context
.
getBean
(
FreeMarkerViewResolver
.
class
),
this
.
context
.
getBean
(
FreeMarkerViewResolver
.
class
),
"deviceDelegatingFree
m
arkerViewResolver"
);
"deviceDelegatingFree
M
arkerViewResolver"
);
}
}
@Test
@Test
...
...
spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc
View file @
267532b0
...
@@ -551,7 +551,7 @@ content into your application; rather pick only the properties that you need.
...
@@ -551,7 +551,7 @@ content into your application; rather pick only the properties that you need.
spring.data.cassandra.reconnection-policy= # Reconnection policy class.
spring.data.cassandra.reconnection-policy= # Reconnection policy class.
spring.data.cassandra.retry-policy= # Class name of the retry policy.
spring.data.cassandra.retry-policy= # Class name of the retry policy.
spring.data.cassandra.serial-consistency-level= # Queries serial consistency level.
spring.data.cassandra.serial-consistency-level= # Queries serial consistency level.
spring.data.cassandra.schema-action= # Schema action to take at startup.
spring.data.cassandra.schema-action=
none
# Schema action to take at startup.
spring.data.cassandra.ssl=false # Enable SSL support.
spring.data.cassandra.ssl=false # Enable SSL support.
spring.data.cassandra.username= # Login user of the server.
spring.data.cassandra.username= # Login user of the server.
...
...
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
267532b0
...
@@ -746,7 +746,7 @@ only contain one entry (with name "`my another name`" and description `null`). T
...
@@ -746,7 +746,7 @@ only contain one entry (with name "`my another name`" and description `null`). T
configuration _will not_ add a second `MyPojo` instance to the list, and it won't merge
configuration _will not_ add a second `MyPojo` instance to the list, and it won't merge
the items.
the items.
When a collection is specified in multiple
s
profiles, the one with highest priority is
When a collection is specified in multiple profiles, the one with highest priority is
used (and only that one):
used (and only that one):
[source,yaml,indent=0]
[source,yaml,indent=0]
...
...
spring-boot-samples/README.adoc
View file @
267532b0
...
@@ -229,7 +229,7 @@ The following sample applications are provided:
...
@@ -229,7 +229,7 @@ The following sample applications are provided:
| Web application packaged as a war file
| Web application packaged as a war file
| link:spring-boot-sample-web-freemarker[spring-boot-sample-web-freemarker]
| link:spring-boot-sample-web-freemarker[spring-boot-sample-web-freemarker]
| Web application that uses Free
m
arker templates
| Web application that uses Free
M
arker templates
| link:spring-boot-sample-web-groovy-templates[spring-boot-sample-web-groovy-templates]
| link:spring-boot-sample-web-groovy-templates[spring-boot-sample-web-groovy-templates]
| Web application that uses Groovy templates
| Web application that uses Groovy templates
...
...
spring-boot-samples/spring-boot-sample-actuator-ui/src/main/resources/templates/error.ftl
View file @
267532b0
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"navbar"
>
<div
class=
"navbar"
>
<div
class=
"navbar-inner"
>
<div
class=
"navbar-inner"
>
<a
class=
"brand"
href=
"http://
www.thymeleaf.org"
>
Freem
arker -
<a
class=
"brand"
href=
"http://
freemarker.org/"
>
FreeM
arker -
Plain
</a>
Plain
</a>
<ul
class=
"nav"
>
<ul
class=
"nav"
>
<li><a
href=
"${home}"
>
Home
</a></li>
<li><a
href=
"${home}"
>
Home
</a></li>
...
...
spring-boot-samples/spring-boot-sample-actuator-ui/src/main/resources/templates/home.ftl
View file @
267532b0
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"navbar"
>
<div
class=
"navbar"
>
<div
class=
"navbar-inner"
>
<div
class=
"navbar-inner"
>
<a
class=
"brand"
href=
"http://
www.thymeleaf.org"
>
Freem
arker -
<a
class=
"brand"
href=
"http://
freemarker.org/"
>
FreeM
arker -
Plain
</a>
Plain
</a>
<ul
class=
"nav"
>
<ul
class=
"nav"
>
<li><a
href=
"${home}"
>
Home
</a></li>
<li><a
href=
"${home}"
>
Home
</a></li>
...
...
spring-boot-starters/spring-boot-starter-freemarker/pom.xml
View file @
267532b0
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
</parent>
</parent>
<artifactId>
spring-boot-starter-freemarker
</artifactId>
<artifactId>
spring-boot-starter-freemarker
</artifactId>
<name>
Spring Boot FreeMarker Starter
</name>
<name>
Spring Boot FreeMarker Starter
</name>
<description>
Starter for building MVC web applications using Free
m
arker views
</description>
<description>
Starter for building MVC web applications using Free
M
arker views
</description>
<url>
http://projects.spring.io/spring-boot/
</url>
<url>
http://projects.spring.io/spring-boot/
</url>
<organization>
<organization>
<name>
Pivotal Software, Inc.
</name>
<name>
Pivotal Software, Inc.
</name>
...
...
spring-boot-test/src/main/java/org/springframework/boot/test/json/AbstractJsonMarshalTester.java
View file @
267532b0
...
@@ -304,8 +304,8 @@ public abstract class AbstractJsonMarshalTester<T> {
...
@@ -304,8 +304,8 @@ public abstract class AbstractJsonMarshalTester<T> {
private
void
verify
()
{
private
void
verify
()
{
Assert
.
state
(
this
.
resourceLoadClass
!=
null
,
Assert
.
state
(
this
.
resourceLoadClass
!=
null
,
"Unitialized JsonMarshalTester (ResourceLoadClass is null)"
);
"Uni
ni
tialized JsonMarshalTester (ResourceLoadClass is null)"
);
Assert
.
state
(
this
.
type
!=
null
,
"Unitialized JsonMarshalTester (Type is null)"
);
Assert
.
state
(
this
.
type
!=
null
,
"Uni
ni
tialized JsonMarshalTester (Type is null)"
);
}
}
/**
/**
...
...
spring-boot-test/src/main/java/org/springframework/boot/test/json/BasicJsonTester.java
View file @
267532b0
...
@@ -49,7 +49,7 @@ public class BasicJsonTester {
...
@@ -49,7 +49,7 @@ public class BasicJsonTester {
private
JsonLoader
loader
;
private
JsonLoader
loader
;
/**
/**
* Create a new uninialized {@link BasicJsonTester} instance.
* Create a new unini
ti
alized {@link BasicJsonTester} instance.
*/
*/
protected
BasicJsonTester
()
{
protected
BasicJsonTester
()
{
}
}
...
@@ -139,7 +139,7 @@ public class BasicJsonTester {
...
@@ -139,7 +139,7 @@ public class BasicJsonTester {
}
}
private
void
verify
()
{
private
void
verify
()
{
Assert
.
state
(
this
.
loader
!=
null
,
"Unitialized BasicJsonTester"
);
Assert
.
state
(
this
.
loader
!=
null
,
"Uni
ni
tialized BasicJsonTester"
);
}
}
private
JsonContent
<
Object
>
getJsonContent
(
String
json
)
{
private
JsonContent
<
Object
>
getJsonContent
(
String
json
)
{
...
...
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