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
3d732e86
Commit
3d732e86
authored
Sep 04, 2018
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.0.x'
parents
e0ee4f22
ca57e58e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
12 deletions
+10
-12
CacheMeterBinderProvidersConfiguration.java
...metrics/cache/CacheMeterBinderProvidersConfiguration.java
+1
-1
ConfigurationPropertiesReportEndpoint.java
...ext/properties/ConfigurationPropertiesReportEndpoint.java
+2
-4
SecurityRequestMatcherProviderAutoConfigurationTests.java
...SecurityRequestMatcherProviderAutoConfigurationTests.java
+1
-1
production-ready-features.adoc
...oot-docs/src/main/asciidoc/production-ready-features.adoc
+1
-1
spring-boot-features.adoc
...ing-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+5
-5
No files found.
spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/cache/CacheMeterBinderProvidersConfiguration.java
View file @
3d732e86
...
@@ -34,7 +34,7 @@ import org.springframework.context.annotation.Bean;
...
@@ -34,7 +34,7 @@ import org.springframework.context.annotation.Bean;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Configuration
;
/**
/**
*
{@link Configuration Auto-configuration} for
{@link CacheMeterBinderProvider} beans.
*
Configure
{@link CacheMeterBinderProvider} beans.
*
*
* @author Stephane Nicoll
* @author Stephane Nicoll
*/
*/
...
...
spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/context/properties/ConfigurationPropertiesReportEndpoint.java
View file @
3d732e86
...
@@ -152,13 +152,11 @@ public class ConfigurationPropertiesReportEndpoint implements ApplicationContext
...
@@ -152,13 +152,11 @@ public class ConfigurationPropertiesReportEndpoint implements ApplicationContext
* @param prefix the prefix
* @param prefix the prefix
* @return the serialized instance
* @return the serialized instance
*/
*/
@SuppressWarnings
(
"unchecked"
)
private
Map
<
String
,
Object
>
safeSerialize
(
ObjectMapper
mapper
,
Object
bean
,
private
Map
<
String
,
Object
>
safeSerialize
(
ObjectMapper
mapper
,
Object
bean
,
String
prefix
)
{
String
prefix
)
{
try
{
try
{
@SuppressWarnings
(
"unchecked"
)
return
new
HashMap
<>(
mapper
.
convertValue
(
bean
,
Map
.
class
));
Map
<
String
,
Object
>
result
=
new
HashMap
<>(
mapper
.
convertValue
(
bean
,
Map
.
class
));
return
result
;
}
}
catch
(
Exception
ex
)
{
catch
(
Exception
ex
)
{
return
new
HashMap
<>(
Collections
.
singletonMap
(
"error"
,
return
new
HashMap
<>(
Collections
.
singletonMap
(
"error"
,
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/servlet/SecurityRequestMatcherProviderAutoConfigurationTests.java
View file @
3d732e86
...
@@ -40,7 +40,7 @@ public class SecurityRequestMatcherProviderAutoConfigurationTests {
...
@@ -40,7 +40,7 @@ public class SecurityRequestMatcherProviderAutoConfigurationTests {
.
withUserConfiguration
(
TestConfiguration
.
class
);
.
withUserConfiguration
(
TestConfiguration
.
class
);
@Test
@Test
public
void
registersMvcRequestMatcherProvider
For
IfMvcPresent
()
{
public
void
registersMvcRequestMatcherProviderIfMvcPresent
()
{
this
.
contextRunner
.
run
((
context
)
->
assertThat
(
context
)
this
.
contextRunner
.
run
((
context
)
->
assertThat
(
context
)
.
hasSingleBean
(
MvcRequestMatcherProvider
.
class
));
.
hasSingleBean
(
MvcRequestMatcherProvider
.
class
));
}
}
...
...
spring-boot-project/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc
View file @
3d732e86
...
@@ -555,7 +555,7 @@ Consider the following JSON request body:
...
@@ -555,7 +555,7 @@ Consider the following JSON request body:
}
}
----
----
This can be used to invoke a write operation that takes
a `String test
` and `int counter`
This can be used to invoke a write operation that takes
`String name
` and `int counter`
parameters.
parameters.
TIP: Because endpoints are technology agnostic, only simple types can be specified in the
TIP: Because endpoints are technology agnostic, only simple types can be specified in the
...
...
spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
3d732e86
...
@@ -6723,7 +6723,7 @@ mapper, which can be one of the following libraries:
...
@@ -6723,7 +6723,7 @@ mapper, which can be one of the following libraries:
* `Gson`
* `Gson`
* `Jsonb`
* `Jsonb`
TIP: A list of the auto-configuration
that is
enabled by `@JsonTest` can be
TIP: A list of the auto-configuration
s that are
enabled by `@JsonTest` can be
<<appendix-test-auto-configuration#test-auto-configuration,found in the appendix>>.
<<appendix-test-auto-configuration#test-auto-configuration,found in the appendix>>.
If you need to configure elements of the auto-configuration, you can use the
If you need to configure elements of the auto-configuration, you can use the
...
@@ -6906,7 +6906,7 @@ auto-configures the Spring WebFlux infrastructure and limits scanned beans to
...
@@ -6906,7 +6906,7 @@ auto-configures the Spring WebFlux infrastructure and limits scanned beans to
`WebFluxConfigurer`. Regular `@Component` beans are not scanned when the `@WebFluxTest`
`WebFluxConfigurer`. Regular `@Component` beans are not scanned when the `@WebFluxTest`
annotation is used.
annotation is used.
TIP: A list of the auto-configuration
that is
enabled by `@WebFluxTest` can be
TIP: A list of the auto-configuration
s that are
enabled by `@WebFluxTest` can be
<<appendix-test-auto-configuration#test-auto-configuration,found in the appendix>>.
<<appendix-test-auto-configuration#test-auto-configuration,found in the appendix>>.
TIP: If you need to register extra components, such as Jackson `Module`, you can import
TIP: If you need to register extra components, such as Jackson `Module`, you can import
...
@@ -7066,7 +7066,7 @@ following example:
...
@@ -7066,7 +7066,7 @@ following example:
`DataSource`. By default, it configures an in-memory embedded database and a
`DataSource`. By default, it configures an in-memory embedded database and a
`JdbcTemplate`. Regular `@Component` beans are not loaded into the `ApplicationContext`.
`JdbcTemplate`. Regular `@Component` beans are not loaded into the `ApplicationContext`.
TIP: A list of the auto-configuration
that is
enabled by `@JdbcTest` can be
TIP: A list of the auto-configuration
s that are
enabled by `@JdbcTest` can be
<<appendix-test-auto-configuration#test-auto-configuration,found in the appendix>>.
<<appendix-test-auto-configuration#test-auto-configuration,found in the appendix>>.
By default, JDBC tests are transactional and roll back at the end of each test. See the
By default, JDBC tests are transactional and roll back at the end of each test. See the
...
@@ -7107,7 +7107,7 @@ you can use `@AutoConfigureTestDatabase` to override those settings. (For more a
...
@@ -7107,7 +7107,7 @@ you can use `@AutoConfigureTestDatabase` to override those settings. (For more a
jOOQ with Spring Boot, see "<<boot-features-jooq>>", earlier in this chapter.) Regular
jOOQ with Spring Boot, see "<<boot-features-jooq>>", earlier in this chapter.) Regular
`@Component` beans are not loaded into the `ApplicationContext`.
`@Component` beans are not loaded into the `ApplicationContext`.
TIP: A list of the auto-configuration
that is
enabled by `@JooqTest` can be
TIP: A list of the auto-configuration
s that are
enabled by `@JooqTest` can be
<<appendix-test-auto-configuration#test-auto-configuration,found in the appendix>>.
<<appendix-test-auto-configuration#test-auto-configuration,found in the appendix>>.
`@JooqTest` configures a `DSLContext`. Regular `@Component` beans are not loaded into the
`@JooqTest` configures a `DSLContext`. Regular `@Component` beans are not loaded into the
...
@@ -7492,7 +7492,7 @@ include::{code-examples}/test/autoconfigure/restdocs/restassured/AdvancedConfigu
...
@@ -7492,7 +7492,7 @@ include::{code-examples}/test/autoconfigure/restdocs/restassured/AdvancedConfigu
==== Additional Auto-configuration and Slicing
==== Additional Auto-configuration and Slicing
Each slice provides one or more `@AutoConfigure...` annotations that namely defines the
Each slice provides one or more `@AutoConfigure...` annotations that namely defines the
auto-configurations that should be included as part of a slice. Additional
auto-configurations that should be included as part of a slice. Additional
auto-configurations can be added by creating a custom `@AutoConfigure` annotation or
auto-configurations can be added by creating a custom `@AutoConfigure
...
` annotation or
simply by adding `@ImportAutoConfiguration` to the test as shown in the following example:
simply by adding `@ImportAutoConfiguration` to the test as shown in the following example:
[source,java,indent=0]
[source,java,indent=0]
...
...
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