Browse Source

Polish

See gh-10109
pull/9761/merge
Johnny Lim 9 years ago committed by Stephane Nicoll
parent
commit
db76112700
  1. 2
      spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/Health.java
  2. 2
      spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/activemq/ActiveMQProperties.java
  3. 4
      spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/session/SessionAutoConfigurationJdbcTests.java
  4. 4
      spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc
  5. 2
      spring-boot-samples/spring-boot-sample-web-groovy-templates/src/main/java/sample/groovytemplates/Message.java
  6. 2
      spring-boot-samples/spring-boot-sample-web-ui/src/main/java/sample/web/ui/Message.java
  7. 2
      spring-boot-tools/spring-boot-maven-plugin/src/site/apt/examples/exclude-dependency.apt.vm
  8. 2
      spring-boot/src/main/java/org/springframework/boot/diagnostics/AbstractFailureAnalyzer.java
  9. 2
      spring-boot/src/main/java/org/springframework/boot/diagnostics/analyzer/AbstractInjectionFailureAnalyzer.java
  10. 2
      spring-boot/src/main/java/org/springframework/boot/orm/jpa/hibernate/SpringPhysicalNamingStrategy.java
  11. 4
      spring-boot/src/main/java/org/springframework/boot/web/embedded/jetty/JettyServletWebServerFactory.java
  12. 12
      spring-boot/src/main/java/org/springframework/boot/web/embedded/tomcat/TomcatServletWebServerFactory.java
  13. 2
      spring-boot/src/main/java/org/springframework/boot/web/servlet/filter/ApplicationContextHeaderFilter.java

2
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/Health.java

@ -125,7 +125,7 @@ public final class Health { @@ -125,7 +125,7 @@ public final class Health {
}
/**
* Create a new {@link Builder} instance with an {@link Status#DOWN} status an the
* Create a new {@link Builder} instance with an {@link Status#DOWN} status and the
* specified exception details.
* @param ex the exception
* @return a new {@link Builder} instance

2
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/activemq/ActiveMQProperties.java

@ -189,7 +189,7 @@ public class ActiveMQProperties { @@ -189,7 +189,7 @@ public class ActiveMQProperties {
private int maximumActiveSessionPerConnection = 500;
/**
* Reset the connection when a "JMXException" occurs.
* Reset the connection when a "JMSException" occurs.
*/
private boolean reconnectOnException = true;

4
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/session/SessionAutoConfigurationJdbcTests.java

@ -76,8 +76,8 @@ public class SessionAutoConfigurationJdbcTests @@ -76,8 +76,8 @@ public class SessionAutoConfigurationJdbcTests
this.context.getBean(JdbcSessionProperties.class).getInitializeSchema())
.isEqualTo(DatabaseInitializationMode.NEVER);
this.thrown.expect(BadSqlGrammarException.class);
assertThat(this.context.getBean(JdbcOperations.class)
.queryForList("select * from SPRING_SESSION")).isEmpty();
this.context.getBean(JdbcOperations.class)
.queryForList("select * from SPRING_SESSION");
}
@Test

4
spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc

@ -413,7 +413,7 @@ content into your application; rather pick only the properties that you need. @@ -413,7 +413,7 @@ content into your application; rather pick only the properties that you need.
spring.resources.chain.strategy.fixed.version= # Version string to use for the Version Strategy.
spring.resources.static-locations=classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/ # Locations of static resources.
# SPRING SESSION ({sc-spring-boot-autoconfigure}/session/SessionProperties.{sc-ext}[SessionProperties])
# SPRING SESSION ({sc-spring-boot-autoconfigure}/session/SessionProperties.{sc-ext}[SessionProperties], {sc-spring-boot-autoconfigure}/session/JdbcSessionProperties.{sc-ext}[JdbcSessionProperties], {sc-spring-boot-autoconfigure}/session/RedisSessionProperties.{sc-ext}[RedisSessionProperties])
spring.session.hazelcast.flush-mode=on-save # Sessions flush mode.
spring.session.hazelcast.map-name=spring:session:sessions # Name of the map used to store sessions.
spring.session.jdbc.initialize-schema=embedded # Database schema initialization mode.
@ -924,7 +924,7 @@ content into your application; rather pick only the properties that you need. @@ -924,7 +924,7 @@ content into your application; rather pick only the properties that you need.
spring.activemq.pool.idle-timeout=30000 # Connection idle timeout in milliseconds.
spring.activemq.pool.max-connections=1 # Maximum number of pooled connections.
spring.activemq.pool.maximum-active-session-per-connection=500 # Maximum number of active sessions per connection.
spring.activemq.pool.reconnect-on-exception=true # Reset the connection when a "JMXException" occurs.
spring.activemq.pool.reconnect-on-exception=true # Reset the connection when a "JMSException" occurs.
spring.activemq.pool.time-between-expiration-check=-1 # Time to sleep, in milliseconds, between runs of the idle connection eviction thread. When negative, no idle connection eviction thread runs.
spring.activemq.pool.use-anonymous-producers=true # Use only one anonymous "MessageProducer" instance. Set it to false to create one "MessageProducer" every time one is required.

2
spring-boot-samples/spring-boot-sample-web-groovy-templates/src/main/java/sample/groovytemplates/Message.java

@ -24,7 +24,7 @@ public class Message { @@ -24,7 +24,7 @@ public class Message {
private Long id;
@NotEmpty(message = "Message is required.")
@NotEmpty(message = "Text is required.")
private String text;
@NotEmpty(message = "Summary is required.")

2
spring-boot-samples/spring-boot-sample-web-ui/src/main/java/sample/web/ui/Message.java

@ -24,7 +24,7 @@ public class Message { @@ -24,7 +24,7 @@ public class Message {
private Long id;
@NotEmpty(message = "Message is required.")
@NotEmpty(message = "Text is required.")
private String text;
@NotEmpty(message = "Summary is required.")

2
spring-boot-tools/spring-boot-maven-plugin/src/site/apt/examples/exclude-dependency.apt.vm

@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
-----
By default, both the <<<repackage>>> and the <<<run>>> goals will include any <<<provided>>>
dependencies that are defined in the project. A boot-based project should consider
dependencies that are defined in the project. A Spring Boot project should consider
<<<provided>>> dependencies as <<container>> dependencies that are required to run
the application.

2
spring-boot/src/main/java/org/springframework/boot/diagnostics/AbstractFailureAnalyzer.java

@ -39,7 +39,7 @@ public abstract class AbstractFailureAnalyzer<T extends Throwable> @@ -39,7 +39,7 @@ public abstract class AbstractFailureAnalyzer<T extends Throwable>
}
/**
* Returns an analysis of the given {@code failure}, or {@code null} if no analysis
* Returns an analysis of the given {@code rootFailure}, or {@code null} if no analysis
* was possible.
* @param rootFailure the root failure passed to the analyzer
* @param cause the actual found cause

2
spring-boot/src/main/java/org/springframework/boot/diagnostics/analyzer/AbstractInjectionFailureAnalyzer.java

@ -106,7 +106,7 @@ public abstract class AbstractInjectionFailureAnalyzer<T extends Throwable> @@ -106,7 +106,7 @@ public abstract class AbstractInjectionFailureAnalyzer<T extends Throwable>
}
/**
* Returns an analysis of the given {@code failure}, or {@code null} if no analysis
* Returns an analysis of the given {@code rootFailure}, or {@code null} if no analysis
* was possible.
* @param rootFailure the root failure passed to the analyzer
* @param cause the actual found cause

2
spring-boot/src/main/java/org/springframework/boot/orm/jpa/hibernate/SpringPhysicalNamingStrategy.java

@ -77,7 +77,7 @@ public class SpringPhysicalNamingStrategy implements PhysicalNamingStrategy { @@ -77,7 +77,7 @@ public class SpringPhysicalNamingStrategy implements PhysicalNamingStrategy {
}
/**
* Get an the identifier for the specified details. By default this method will return
* Get an identifier for the specified details. By default this method will return
* an identifier with the name adapted based on the result of
* {@link #isCaseInsensitive(JdbcEnvironment)}
* @param name the name of the identifier

4
spring-boot/src/main/java/org/springframework/boot/web/embedded/jetty/JettyServletWebServerFactory.java

@ -90,7 +90,7 @@ import org.springframework.util.StringUtils; @@ -90,7 +90,7 @@ import org.springframework.util.StringUtils;
* Can be initialized using Spring's {@link ServletContextInitializer}s or Jetty
* {@link Configuration}s.
* <p>
* Unless explicitly configured otherwise this factory will created servers that listens
* Unless explicitly configured otherwise this factory will create servers that listen
* for HTTP requests on port 8080.
*
* @author Phillip Webb
@ -527,7 +527,7 @@ public class JettyServletWebServerFactory extends AbstractServletWebServerFactor @@ -527,7 +527,7 @@ public class JettyServletWebServerFactory extends AbstractServletWebServerFactor
}
/**
* Post process the Jetty {@link WebAppContext} before it used with the Jetty Server.
* Post process the Jetty {@link WebAppContext} before it's used with the Jetty Server.
* Subclasses can override this method to apply additional processing to the
* {@link WebAppContext}.
* @param webAppContext the Jetty {@link WebAppContext}

12
spring-boot/src/main/java/org/springframework/boot/web/embedded/tomcat/TomcatServletWebServerFactory.java

@ -89,8 +89,8 @@ import org.springframework.util.StringUtils; @@ -89,8 +89,8 @@ import org.springframework.util.StringUtils;
* {@link TomcatWebServer}s. Can be initialized using Spring's
* {@link ServletContextInitializer}s or Tomcat {@link LifecycleListener}s.
* <p>
* Unless explicitly configured otherwise this factory will created containers that
* listens for HTTP requests on port 8080.
* Unless explicitly configured otherwise this factory will create containers that
* listen for HTTP requests on port 8080.
*
* @author Phillip Webb
* @author Dave Syer
@ -508,7 +508,7 @@ public class TomcatServletWebServerFactory extends AbstractServletWebServerFacto @@ -508,7 +508,7 @@ public class TomcatServletWebServerFactory extends AbstractServletWebServerFacto
}
/**
* Post process the Tomcat {@link Context} before it used with the Tomcat Server.
* Post process the Tomcat {@link Context} before it's used with the Tomcat Server.
* Subclasses can override this method to apply additional processing to the
* {@link Context}.
* @param context the Tomcat {@link Context}
@ -591,7 +591,7 @@ public class TomcatServletWebServerFactory extends AbstractServletWebServerFacto @@ -591,7 +591,7 @@ public class TomcatServletWebServerFactory extends AbstractServletWebServerFacto
/**
* Returns a mutable collection of the {@link Valve}s that will be applied to the
* Tomcat {@link Engine}.
* @return the engineValves the valves that will be applied
* @return the engine valves that will be applied
*/
public Collection<Valve> getEngineValves() {
return this.engineValves;
@ -619,7 +619,7 @@ public class TomcatServletWebServerFactory extends AbstractServletWebServerFacto @@ -619,7 +619,7 @@ public class TomcatServletWebServerFactory extends AbstractServletWebServerFacto
/**
* Returns a mutable collection of the {@link Valve}s that will be applied to the
* Tomcat {@link Context}.
* @return the contextValves the valves that will be applied
* @return the context valves that will be applied
* @see #getEngineValves()
*/
public Collection<Valve> getContextValves() {
@ -650,7 +650,7 @@ public class TomcatServletWebServerFactory extends AbstractServletWebServerFacto @@ -650,7 +650,7 @@ public class TomcatServletWebServerFactory extends AbstractServletWebServerFacto
/**
* Returns a mutable collection of the {@link LifecycleListener}s that will be applied
* to the Tomcat {@link Context} .
* @return the contextLifecycleListeners the listeners that will be applied
* @return the context lifecycle listeners that will be applied
*/
public Collection<LifecycleListener> getContextLifecycleListeners() {
return this.contextLifecycleListeners;

2
spring-boot/src/main/java/org/springframework/boot/web/servlet/filter/ApplicationContextHeaderFilter.java

@ -27,7 +27,7 @@ import org.springframework.context.ApplicationContext; @@ -27,7 +27,7 @@ import org.springframework.context.ApplicationContext;
import org.springframework.web.filter.OncePerRequestFilter;
/**
* {@link OncePerRequestFilter} to add a {@literal X-Application-Context} header that
* {@link OncePerRequestFilter} to add an {@literal X-Application-Context} header that
* contains the {@link ApplicationContext#getId() ApplicationContext ID}.
*
* @author Phillip Webb

Loading…
Cancel
Save