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
ac1f2a58
Commit
ac1f2a58
authored
Jul 14, 2018
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
c0574c84
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
27 additions
and
25 deletions
+27
-25
ReactiveManagementWebSecurityAutoConfiguration.java
...ctive/ReactiveManagementWebSecurityAutoConfiguration.java
+1
-0
ManagementWebSecurityAutoConfiguration.java
...urity/servlet/ManagementWebSecurityAutoConfiguration.java
+1
-0
ManagementWebSecurityConfigurerAdapter.java
...urity/servlet/ManagementWebSecurityConfigurerAdapter.java
+1
-1
ReactiveManagementWebSecurityAutoConfigurationTests.java
.../ReactiveManagementWebSecurityAutoConfigurationTests.java
+1
-0
ManagementWebSecurityAutoConfigurationTests.java
.../servlet/ManagementWebSecurityAutoConfigurationTests.java
+1
-0
SpringBootRepositoryRestConfigurer.java
...nfigure/data/rest/SpringBootRepositoryRestConfigurer.java
+3
-3
ArtemisAutoConfigurationTests.java
...oconfigure/jms/artemis/ArtemisAutoConfigurationTests.java
+4
-6
HibernatePropertiesTests.java
.../boot/autoconfigure/orm/jpa/HibernatePropertiesTests.java
+8
-8
WebMvcAutoConfigurationTests.java
...toconfigure/web/servlet/WebMvcAutoConfigurationTests.java
+2
-3
WebServiceTemplateAutoConfigurationTests.java
...ices/client/WebServiceTemplateAutoConfigurationTests.java
+1
-3
SampleWebClientTests.java
...gframework/boot/docs/web/client/SampleWebClientTests.java
+4
-1
No files found.
spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/security/reactive/ReactiveManagementWebSecurityAutoConfiguration.java
View file @
ac1f2a58
...
...
@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
actuate
.
autoconfigure
.
security
.
reactive
;
import
org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointAutoConfiguration
;
...
...
spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/security/servlet/ManagementWebSecurityAutoConfiguration.java
View file @
ac1f2a58
...
...
@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
actuate
.
autoconfigure
.
security
.
servlet
;
import
org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointAutoConfiguration
;
...
...
spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/security/servlet/ManagementWebSecurityConfigurerAdapter.java
View file @
ac1f2a58
...
...
@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
actuate
.
autoconfigure
.
security
.
servlet
;
import
org.springframework.boot.actuate.health.HealthEndpoint
;
...
...
@@ -32,7 +33,6 @@ import org.springframework.security.config.annotation.web.configuration.WebSecur
* configuration.
*
* @author Madhura Bhave
* @since 2.0.1
*/
@Configuration
class
ManagementWebSecurityConfigurerAdapter
extends
WebSecurityConfigurerAdapter
{
...
...
spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/security/reactive/ReactiveManagementWebSecurityAutoConfigurationTests.java
View file @
ac1f2a58
...
...
@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
actuate
.
autoconfigure
.
security
.
reactive
;
import
java.net.URI
;
...
...
spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/security/servlet/ManagementWebSecurityAutoConfigurationTests.java
View file @
ac1f2a58
...
...
@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
actuate
.
autoconfigure
.
security
.
servlet
;
import
java.io.IOException
;
...
...
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/rest/SpringBootRepositoryRestConfigurer.java
View file @
ac1f2a58
/*
* Copyright 2012-201
7
the original author or authors.
* Copyright 2012-201
8
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -21,7 +21,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.core.annotation.Order
;
import
org.springframework.data.rest.core.config.RepositoryRestConfiguration
;
import
org.springframework.data.rest.webmvc.config.RepositoryRestConfigurer
Adapter
;
import
org.springframework.data.rest.webmvc.config.RepositoryRestConfigurer
;
import
org.springframework.http.converter.json.Jackson2ObjectMapperBuilder
;
/**
...
...
@@ -34,7 +34,7 @@ import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder;
* @author Stephane Nicoll
*/
@Order
(
0
)
class
SpringBootRepositoryRestConfigurer
extends
RepositoryRestConfigurerAdapt
er
{
class
SpringBootRepositoryRestConfigurer
implements
RepositoryRestConfigur
er
{
@Autowired
(
required
=
false
)
private
Jackson2ObjectMapperBuilder
objectMapperBuilder
;
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jms/artemis/ArtemisAutoConfigurationTests.java
View file @
ac1f2a58
...
...
@@ -143,12 +143,10 @@ public class ArtemisAutoConfigurationTests {
this
.
contextRunner
.
withUserConfiguration
(
EmptyConfiguration
.
class
)
.
withPropertyValues
(
"spring.artemis.mode:native"
,
"spring.artemis.host:192.168.1.144"
,
"spring.artemis.port:9876"
)
.
run
((
context
)
->
{
assertNettyConnectionFactory
(
getActiveMQConnectionFactory
(
context
.
getBean
(
ConnectionFactory
.
class
)),
"192.168.1.144"
,
9876
);
});
.
run
((
context
)
->
assertNettyConnectionFactory
(
getActiveMQConnectionFactory
(
context
.
getBean
(
ConnectionFactory
.
class
)),
"192.168.1.144"
,
9876
));
}
@Test
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/orm/jpa/HibernatePropertiesTests.java
View file @
ac1f2a58
...
...
@@ -106,10 +106,9 @@ public class HibernatePropertiesTests {
@Test
public
void
useNewIdGeneratorMappingsDefault
()
{
this
.
contextRunner
.
run
(
assertHibernateProperties
((
hibernateProperties
)
->
{
assertThat
(
hibernateProperties
).
containsEntry
(
AvailableSettings
.
USE_NEW_ID_GENERATOR_MAPPINGS
,
"true"
);
}));
this
.
contextRunner
.
run
(
assertHibernateProperties
(
(
hibernateProperties
)
->
assertThat
(
hibernateProperties
).
containsEntry
(
AvailableSettings
.
USE_NEW_ID_GENERATOR_MAPPINGS
,
"true"
)));
}
@Test
...
...
@@ -117,10 +116,11 @@ public class HibernatePropertiesTests {
this
.
contextRunner
.
withPropertyValues
(
"spring.jpa.hibernate.use-new-id-generator-mappings:false"
)
.
run
(
assertHibernateProperties
((
hibernateProperties
)
->
{
assertThat
(
hibernateProperties
).
containsEntry
(
AvailableSettings
.
USE_NEW_ID_GENERATOR_MAPPINGS
,
"false"
);
}));
.
run
(
assertHibernateProperties
(
(
hibernateProperties
)
->
assertThat
(
hibernateProperties
)
.
containsEntry
(
AvailableSettings
.
USE_NEW_ID_GENERATOR_MAPPINGS
,
"false"
)));
}
@Test
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfigurationTests.java
View file @
ac1f2a58
...
...
@@ -190,9 +190,8 @@ public class WebMvcAutoConfigurationTests {
@Test
public
void
resourceHandlerMappingDisabled
()
{
this
.
contextRunner
.
withPropertyValues
(
"spring.resources.add-mappings:false"
)
.
run
((
context
)
->
{
assertThat
(
context
.
getBean
(
"resourceHandlerMapping"
)).
isEqualTo
(
null
);
});
.
run
((
context
)
->
assertThat
(
context
.
getBean
(
"resourceHandlerMapping"
))
.
isEqualTo
(
null
));
}
@Test
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/webservices/client/WebServiceTemplateAutoConfigurationTests.java
View file @
ac1f2a58
...
...
@@ -93,9 +93,7 @@ public class WebServiceTemplateAutoConfigurationTests {
@Test
public
void
builderShouldBeFreshForEachUse
()
{
this
.
contextRunner
.
withUserConfiguration
(
DirtyWebServiceTemplateConfig
.
class
)
.
run
((
context
)
->
{
assertThat
(
context
).
hasNotFailed
();
});
.
run
((
context
)
->
assertThat
(
context
).
hasNotFailed
());
}
private
ContextConsumer
<
AssertableApplicationContext
>
assertWebServiceTemplateBuilder
(
...
...
spring-boot-project/spring-boot-docs/src/test/java/org/springframework/boot/docs/web/client/SampleWebClientTests.java
View file @
ac1f2a58
...
...
@@ -16,6 +16,8 @@
package
org
.
springframework
.
boot
.
docs
.
web
.
client
;
import
java.time.Duration
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
...
...
@@ -56,7 +58,8 @@ public class SampleWebClientTests {
@Bean
public
RestTemplateBuilder
restTemplateBuilder
()
{
return
new
RestTemplateBuilder
().
setConnectTimeout
(
1000
).
setReadTimeout
(
1000
);
return
new
RestTemplateBuilder
().
setConnectTimeout
(
Duration
.
ofSeconds
(
1
))
.
setReadTimeout
(
Duration
.
ofSeconds
(
1
));
}
}
...
...
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