Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit de1da1d

Browse files
Spring Boot 2.0.1.RELEASE update
1 parent 8b3d565 commit de1da1d

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

‎pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<parent>
1515
<groupId>org.springframework.boot</groupId>
1616
<artifactId>spring-boot-starter-parent</artifactId>
17-
<version>2.0.0.RELEASE</version>
17+
<version>2.0.1.RELEASE</version>
1818
<relativePath/> <!-- lookup parent from repository -->
1919
</parent>
2020

‎src/main/java/com/naturalprogrammer/spring5tutorial/config/SecurityConfig.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,12 @@ protected void configure(HttpSecurity http) throws Exception {
4040
.authorizeRequests()
4141
.mvcMatchers(HttpMethod.GET, "/",
4242
"/css/**", "/js/**", "/images/**",
43+
"/actuator/health", "/actuator/info",
4344
"/users/*").permitAll()
4445
.mvcMatchers("/signup",
4546
"/forgot-password",
4647
"/reset-password/*").permitAll()
47-
.mvcMatchers("/admin/**").hasRole("ADMIN")
48+
.mvcMatchers("/admin/**", "/actuator/**").hasRole("ADMIN")
4849
.anyRequest().authenticated()
4950
.and()
5051
.formLogin().loginPage("/login").permitAll()

‎src/main/resources/application.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ server.error.whitelabel.enabled: false
2121
application.admin.email: admin@example.com
2222
application.admin.password: some-pass
2323

24-
security.user.name: user@example.com
25-
security.user.password: password
24+
spring.security.user.name: user@example.com
25+
spring.security.user.password: password
2626

2727
rememberMeKey: topSecret
2828
applicationUrl: http://localhost:8080
2929

30-
management.security.roles: ADMIN
30+
management.endpoints.web.exposure.include: health,beans
3131

3232
# See https://github.com/spring-projects/spring-boot/issues/12007#issuecomment-369388646
3333
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /