Manually format security configuration

Update security configuration formatting to follow conventions
recommended in the Spring Security documentation.

See gh-7958
This commit is contained in:
Phillip Webb
2017-08-31 16:12:02 -07:00
parent 8f79ca9e65
commit ecb8461e8c
4 changed files with 26 additions and 12 deletions

View File

@@ -23,9 +23,12 @@ public class ActuatorSecurityConfiguration extends WebSecurityConfigurerAdapter
@Override
protected void configure(HttpSecurity http) throws Exception {
http.requestMatcher(
this.springBootSecurity.endpointIds(SpringBootSecurity.ALL_ENDPOINTS))
.authorizeRequests().antMatchers("/**").authenticated().and().httpBasic();
// @formatter:off
http.requestMatcher(this.springBootSecurity.endpointIds(SpringBootSecurity.ALL_ENDPOINTS)).authorizeRequests()
.antMatchers("/**").authenticated()
.and()
.httpBasic();
// @formatter:on
}
}