Commit 0dc6ca5b authored by Stephane Nicoll's avatar Stephane Nicoll

Merge pull request #10700 from izeye:polish-20171020

* pr/10700:
  Polish
parents ef9b9d9a 44ae148e
...@@ -63,7 +63,8 @@ public class AuditEventsEndpointAutoConfigurationTests { ...@@ -63,7 +63,8 @@ public class AuditEventsEndpointAutoConfigurationTests {
this.contextRunner.withPropertyValues("endpoints.auditevents.enabled:false") this.contextRunner.withPropertyValues("endpoints.auditevents.enabled:false")
.run((context) -> assertThat(context) .run((context) -> assertThat(context)
.doesNotHaveBean(AuditEventsEndpoint.class) .doesNotHaveBean(AuditEventsEndpoint.class)
.doesNotHaveBean(AuditEventsJmxEndpointExtension.class)); .doesNotHaveBean(AuditEventsJmxEndpointExtension.class)
.doesNotHaveBean(AuditEventsWebEndpointExtension.class));
} }
} }
...@@ -56,8 +56,10 @@ public class SessionsEndpointAutoConfigurationTests { ...@@ -56,8 +56,10 @@ public class SessionsEndpointAutoConfigurationTests {
@Test @Test
public void runWhenEnabledPropertyIsFalseShouldNotHaveEndpointOrExtensionBean() public void runWhenEnabledPropertyIsFalseShouldNotHaveEndpointOrExtensionBean()
throws Exception { throws Exception {
this.contextRunner.withPropertyValues("endpoints.sessions.enabled:false").run( this.contextRunner.withPropertyValues("endpoints.sessions.enabled:false")
(context) -> assertThat(context).doesNotHaveBean(SessionsEndpoint.class)); .run((context) -> assertThat(context)
.doesNotHaveBean(SessionsEndpoint.class)
.doesNotHaveBean(SessionsWebEndpointExtension.class));
} }
@Configuration @Configuration
......
...@@ -36,7 +36,7 @@ import org.springframework.context.annotation.DependsOn; ...@@ -36,7 +36,7 @@ import org.springframework.context.annotation.DependsOn;
import org.springframework.context.annotation.Primary; import org.springframework.context.annotation.Primary;
/** /**
* {@link EnableAutoConfiguration Auto-Configuration} for Couchbase. * {@link EnableAutoConfiguration Auto-configuration} for Couchbase.
* *
* @author Eddú Meléndez * @author Eddú Meléndez
* @author Stephane Nicoll * @author Stephane Nicoll
......
...@@ -75,8 +75,7 @@ class LettuceConnectionConfiguration extends RedisConnectionConfiguration { ...@@ -75,8 +75,7 @@ class LettuceConnectionConfiguration extends RedisConnectionConfiguration {
@ConditionalOnMissingBean(RedisConnectionFactory.class) @ConditionalOnMissingBean(RedisConnectionFactory.class)
public LettuceConnectionFactory redisConnectionFactory( public LettuceConnectionFactory redisConnectionFactory(
ClientResources clientResources) throws UnknownHostException { ClientResources clientResources) throws UnknownHostException {
LettuceClientConfiguration clientConfig; LettuceClientConfiguration clientConfig = getLettuceClientConfiguration(clientResources,
clientConfig = getLettuceClientConfiguration(clientResources,
this.properties.getLettuce().getPool()); this.properties.getLettuce().getPool());
return createLettuceConnectionFactory(clientConfig); return createLettuceConnectionFactory(clientConfig);
} }
......
...@@ -241,7 +241,7 @@ public class HibernateJpaAutoConfigurationTests ...@@ -241,7 +241,7 @@ public class HibernateJpaAutoConfigurationTests
} }
@Test @Test
public void providerDisablesAutoCommitIsNotConfiguredWihJta() { public void providerDisablesAutoCommitIsNotConfiguredWithJta() {
contextRunner() contextRunner()
.withConfiguration(AutoConfigurations.of(JtaAutoConfiguration.class)) .withConfiguration(AutoConfigurations.of(JtaAutoConfiguration.class))
.withPropertyValues( .withPropertyValues(
......
...@@ -16,13 +16,13 @@ version you should run: ...@@ -16,13 +16,13 @@ version you should run:
java -version java -version
Alternatively, you can set the JAVA_HOME environment variable to point an suitable JDK. Alternatively, you can set the JAVA_HOME environment variable to point a suitable JDK.
Environment Variables Environment Variables
--------------------- ---------------------
No specific environment variables are required to run the CLI, however, you may want to No specific environment variables are required to run the CLI, however, you may want to
set SPRING_HOME to point to a specific installation. You should also add SPRING_HOME/bin set SPRING_HOME to point to a specific installation. You should also add SPRING_HOME/bin
to your PATH environment variable. to your PATH environment variable.
...@@ -37,7 +37,7 @@ location for your environment. For example, something like: ...@@ -37,7 +37,7 @@ location for your environment. For example, something like:
Checking Your Installation Checking Your Installation
-------------------------- --------------------------
To test if you have successfully install the CLI you can run the following command: To test if you have successfully installed the CLI you can run the following command:
spring --version spring --version
......
...@@ -1230,8 +1230,8 @@ content into your application; rather pick only the properties that you need. ...@@ -1230,8 +1230,8 @@ content into your application; rather pick only the properties that you need.
management.endpoints.cors.exposed-headers= # Comma-separated list of headers to include in a response. management.endpoints.cors.exposed-headers= # Comma-separated list of headers to include in a response.
management.endpoints.cors.max-age=1800 # How long, in seconds, the response from a pre-flight request can be cached by clients. management.endpoints.cors.max-age=1800 # How long, in seconds, the response from a pre-flight request can be cached by clients.
# ENDPOINTS JMX CONFIGURATION ({sc-spring-boot-actuator}/autoconfigure/endpoint/ManagementEndpointProperties.{sc-ext}[JmxEndpointExporterProperties]) # ENDPOINTS WEB CONFIGURATION ({sc-spring-boot-actuator-autoconfigure}/endpoint/web/WebEndpointProperties.{sc-ext}[WebEndpointProperties])
management.endpoints.web.base-path # Base path for Web endpoints. Relative to server.context-path or management.server.context-path if management.server.port is configured. management.endpoints.web.base-path=/application # Base path for Web endpoints. Relative to server.context-path or management.server.context-path if management.server.port is configured.
# ENDPOINTS JMX CONFIGURATION ({sc-spring-boot-actuator-autoconfigure}/endpoint/jmx/JmxEndpointExporterProperties.{sc-ext}[JmxEndpointExporterProperties]) # ENDPOINTS JMX CONFIGURATION ({sc-spring-boot-actuator-autoconfigure}/endpoint/jmx/JmxEndpointExporterProperties.{sc-ext}[JmxEndpointExporterProperties])
management.endpoints.jmx.domain=org.springframework.boot # Endpoints JMX domain name. Fallback to 'spring.jmx.default-domain' if set. management.endpoints.jmx.domain=org.springframework.boot # Endpoints JMX domain name. Fallback to 'spring.jmx.default-domain' if set.
......
...@@ -41,7 +41,7 @@ developed>> in the "`Getting Started`" section up and running in the Cloud. ...@@ -41,7 +41,7 @@ developed>> in the "`Getting Started`" section up and running in the Cloud.
=== Cloud Foundry === Cloud Foundry
Cloud Foundry provides default buildpacks that come into play if no other buildpack is Cloud Foundry provides default buildpacks that come into play if no other buildpack is
specified. The Cloud Foundry https://github.com/cloudfoundry/java-buildpack[Java buildpack] specified. The Cloud Foundry https://github.com/cloudfoundry/java-buildpack[Java buildpack]
has excellent support for Spring applications, including Spring Boot. You can deploy has excellent support for Spring applications, including Spring Boot. You can deploy
stand-alone executable jar applications, as well as traditional `.war` packaged stand-alone executable jar applications, as well as traditional `.war` packaged
applications. applications.
......
...@@ -439,10 +439,10 @@ support it. ...@@ -439,10 +439,10 @@ support it.
[TIP] [TIP]
==== ====
The http://spring.io[spring.io] web site contains many "`Getting Started`" guides The http://spring.io[spring.io] web site contains many "`Getting Started`" guides
that use Spring Boot. If you're looking to solve a specific problem; check there first. that use Spring Boot. If you're looking to solve a specific problem, check there first.
You can shortcut the steps below by going to https://start.spring.io and choosing the You can shortcut the steps below by going to https://start.spring.io and choosing the
`web` starter from the dependencies searcher. This will automatically generate a new "Web" starter from the dependencies searcher. This will automatically generate a new
project structure so that you can <<getting-started-first-application-code,start coding project structure so that you can <<getting-started-first-application-code,start coding
right away>>. Check the https://github.com/spring-io/initializr[documentation for right away>>. Check the https://github.com/spring-io/initializr[documentation for
more details]. more details].
...@@ -527,7 +527,7 @@ This should give you a working build, you can test it out by running `mvn packag ...@@ -527,7 +527,7 @@ This should give you a working build, you can test it out by running `mvn packag
can ignore the "`jar will be empty - no content was marked for inclusion!`" warning for can ignore the "`jar will be empty - no content was marked for inclusion!`" warning for
now). now).
NOTE: At this point you could import the project into an IDE (most modern Java IDE's NOTE: At this point you could import the project into an IDE (most modern Java IDEs
include built-in support for Maven). For simplicity, we will continue to use a plain include built-in support for Maven). For simplicity, we will continue to use a plain
text editor for this example. text editor for this example.
...@@ -584,7 +584,6 @@ file named `src/main/java/Example.java`: ...@@ -584,7 +584,6 @@ file named `src/main/java/Example.java`:
---- ----
import org.springframework.boot.*; import org.springframework.boot.*;
import org.springframework.boot.autoconfigure.*; import org.springframework.boot.autoconfigure.*;
import org.springframework.stereotype.*;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
@RestController @RestController
......
...@@ -1251,7 +1251,7 @@ added. ...@@ -1251,7 +1251,7 @@ added.
Check out {sc-spring-boot-autoconfigure}/web/servlet/WebMvcAutoConfiguration.{sc-ext}[`WebMvcAutoConfiguration`], Check out {sc-spring-boot-autoconfigure}/web/servlet/WebMvcAutoConfiguration.{sc-ext}[`WebMvcAutoConfiguration`],
{sc-spring-boot-autoconfigure}/thymeleaf/ThymeleafAutoConfiguration.{sc-ext}[`ThymeleafAutoConfiguration`], {sc-spring-boot-autoconfigure}/thymeleaf/ThymeleafAutoConfiguration.{sc-ext}[`ThymeleafAutoConfiguration`],
{sc-spring-boot-autoconfigure}/freemarker/FreeMarkerAutoConfiguration.{sc-ext}[`FreeMarkerAutoConfiguration`] and {sc-spring-boot-autoconfigure}/freemarker/FreeMarkerAutoConfiguration.{sc-ext}[`FreeMarkerAutoConfiguration`] and
{sc-spring-boot-autoconfigure}/groovy/template/GroovyTemplateAutoConfiguration.{sc-ext}[`GroovyTemplateAutoConfiguration`] {sc-spring-boot-autoconfigure}/groovy/template/GroovyTemplateAutoConfiguration.{sc-ext}[`GroovyTemplateAutoConfiguration`].
......
...@@ -52,7 +52,7 @@ Phillip Webb; Dave Syer; Josh Long; Stéphane Nicoll; Rob Winch; Andy Wilkinson; ...@@ -52,7 +52,7 @@ Phillip Webb; Dave Syer; Josh Long; Stéphane Nicoll; Rob Winch; Andy Wilkinson;
:propdeps-plugin: https://github.com/spring-projects/gradle-plugins/tree/master/propdeps-plugin :propdeps-plugin: https://github.com/spring-projects/gradle-plugins/tree/master/propdeps-plugin
:ant-manual: http://ant.apache.org/manual :ant-manual: http://ant.apache.org/manual
:code-examples: ../java/org/springframework/boot :code-examples: ../java/org/springframework/boot
:gradle-user-guide: https://docs.gradle.org/4.0.2/userguide :gradle-user-guide: https://docs.gradle.org/4.2.1/userguide
:hibernate-documentation: http://docs.jboss.org/hibernate/orm/5.2/userguide/html_single/Hibernate_User_Guide.html :hibernate-documentation: http://docs.jboss.org/hibernate/orm/5.2/userguide/html_single/Hibernate_User_Guide.html
:jetty-documentation: https://www.eclipse.org/jetty/documentation/9.4.x :jetty-documentation: https://www.eclipse.org/jetty/documentation/9.4.x
:tomcat-documentation: https://tomcat.apache.org/tomcat-8.5-doc :tomcat-documentation: https://tomcat.apache.org/tomcat-8.5-doc
......
...@@ -825,7 +825,7 @@ If you are using Jolokia but you don't want Spring Boot to configure it, simply ...@@ -825,7 +825,7 @@ If you are using Jolokia but you don't want Spring Boot to configure it, simply
[[production-ready-loggers]] [[production-ready-loggers]]
== Loggers == Loggers
Spring Boot Actuator includes the ability to view and configure the log levels of your Spring Boot Actuator includes the ability to view and configure the log levels of your
application at runtime. You can view either the entire list or an individual logger's application at runtime. You can view either the entire list or an individual logger's
configuration which is made up of both the explicitly configured logging level as well as configuration which is made up of both the explicitly configured logging level as well as
the effective logging level given to it by the logging framework. These levels can be: the effective logging level given to it by the logging framework. These levels can be:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment