Closes gh-6487
pull/6486/merge
Johnny Lim 8 years ago committed by Andy Wilkinson
parent eb444f547f
commit 9627d0ed66

@ -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;

@ -15,6 +15,6 @@
*/ */
/** /**
* Auto-configuration for Freemarker. * Auto-configuration for FreeMarker.
*/ */
package org.springframework.boot.autoconfigure.freemarker; package org.springframework.boot.autoconfigure.freemarker;

@ -71,11 +71,11 @@ public class DeviceDelegatingViewResolverAutoConfiguration {
@Configuration @Configuration
@ConditionalOnClass(FreeMarkerViewResolver.class) @ConditionalOnClass(FreeMarkerViewResolver.class)
protected static class DeviceDelegatingFreemarkerViewResolverConfiguration { protected static class DeviceDelegatingFreeMarkerViewResolverConfiguration {
@Bean @Bean
@ConditionalOnBean(FreeMarkerViewResolver.class) @ConditionalOnBean(FreeMarkerViewResolver.class)
public LiteDeviceDelegatingViewResolver deviceDelegatingFreemarkerViewResolver( public LiteDeviceDelegatingViewResolver deviceDelegatingFreeMarkerViewResolver(
DeviceDelegatingViewResolverFactory factory, DeviceDelegatingViewResolverFactory factory,
FreeMarkerViewResolver viewResolver) { FreeMarkerViewResolver viewResolver) {
return factory.createViewResolver(viewResolver); return factory.createViewResolver(viewResolver);

@ -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));

@ -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(ImportFreemarker.class.getName()) .getMetadataReader(ImportFreeMarker.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 {
@Test @Test
public void propertyExclusionsAreNotApplied() throws Exception { public void propertyExclusionsAreNotApplied() throws Exception {
AnnotationMetadata annotationMetadata = new SimpleMetadataReaderFactory() AnnotationMetadata annotationMetadata = new SimpleMetadataReaderFactory()
.getMetadataReader(ImportFreemarker.class.getName()) .getMetadataReader(ImportFreeMarker.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 {
} }
@ImportAutoConfiguration(FreeMarkerAutoConfiguration.class) @ImportAutoConfiguration(FreeMarkerAutoConfiguration.class)
static class ImportFreemarker { static class ImportFreeMarker {
} }

@ -205,15 +205,15 @@ public class RabbitPropertiesTests {
@Test @Test
public void customAddresses() { public void customAddresses() {
this.properties.setAddresses( this.properties.setAddresses(
"user:secrect@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:secrect@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:secrect@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");
} }

@ -88,14 +88,14 @@ public class DeviceDelegatingViewResolverAutoConfigurationTests {
} }
@Test @Test
public void deviceDelegatingFreemarkerViewResolver() throws Exception { public void deviceDelegatingFreeMarkerViewResolver() 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),
"deviceDelegatingFreemarkerViewResolver"); "deviceDelegatingFreeMarkerViewResolver");
} }
@Test @Test

@ -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.

@ -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 multiples 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]

@ -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 Freemarker templates | Web application that uses FreeMarker 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

@ -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"> Freemarker - <a class="brand" href="http://freemarker.org/"> FreeMarker -
Plain </a> Plain </a>
<ul class="nav"> <ul class="nav">
<li><a href="${home}"> Home </a></li> <li><a href="${home}"> Home </a></li>

@ -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"> Freemarker - <a class="brand" href="http://freemarker.org/"> FreeMarker -
Plain </a> Plain </a>
<ul class="nav"> <ul class="nav">
<li><a href="${home}"> Home </a></li> <li><a href="${home}"> Home </a></li>

@ -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 Freemarker views</description> <description>Starter for building MVC web applications using FreeMarker 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>

@ -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)"); "Uninitialized JsonMarshalTester (ResourceLoadClass is null)");
Assert.state(this.type != null, "Unitialized JsonMarshalTester (Type is null)"); Assert.state(this.type != null, "Uninitialized JsonMarshalTester (Type is null)");
} }
/** /**

@ -49,7 +49,7 @@ public class BasicJsonTester {
private JsonLoader loader; private JsonLoader loader;
/** /**
* Create a new uninialized {@link BasicJsonTester} instance. * Create a new uninitialized {@link BasicJsonTester} instance.
*/ */
protected BasicJsonTester() { protected 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, "Uninitialized BasicJsonTester");
} }
private JsonContent<Object> getJsonContent(String json) { private JsonContent<Object> getJsonContent(String json) {

Loading…
Cancel
Save