Skip to content

Commit 588df7b

Browse files
committed
List of ALL Tasks
1 parent f8cd877 commit 588df7b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/main/java/org/woehlke/java/simpleworklist/config/WebSecurityConfig.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import org.springframework.context.annotation.Configuration;
88
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
99
import org.springframework.data.web.config.EnableSpringDataWebSupport;
10+
import org.springframework.http.HttpMethod;
1011
import org.springframework.scheduling.annotation.EnableAsync;
1112
import org.springframework.security.authentication.AuthenticationManager;
1213
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
@@ -60,7 +61,7 @@ protected void configure(HttpSecurity http) throws Exception {
6061
.headers()
6162
.disable()
6263
.authorizeRequests()
63-
.antMatchers(simpleworklistProperties.getWebSecurity().getAntPatternsPublic())
64+
.antMatchers(HttpMethod.GET,simpleworklistProperties.getWebSecurity().getAntPatternsPublic())
6465
.permitAll()
6566
.anyRequest()
6667
.fullyAuthenticated()

src/main/resources/application.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ org:
8181
webMvc:
8282
controllerPageSize: 10
8383
staticResourceHandler:
84+
- "/favicon.ico"
8485
- "/css"
8586
- "/img"
8687
- "/js"
@@ -104,7 +105,9 @@ org:
104105
antPatternsPublic:
105106
- "/favicon.ico"
106107
- "/favicon.ico*"
107-
- "/pages/**"
108+
- "/pages/information"
109+
- "/pages/information*"
110+
- "/pages/information/**"
108111
- "/webjars/**"
109112
- "/css/**"
110113
- "/img/**"

0 commit comments

Comments
 (0)