Skip to content

Commit 349487c

Browse files
author
Dave Syer
committed
Webjars locator is autoconfigured now
1 parent 9a3d05b commit 349487c

File tree

8 files changed

+3
-47
lines changed

8 files changed

+3
-47
lines changed

auth-server/src/main/resources/application.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,3 @@ github:
3030
logging:
3131
level:
3232
org.springframework.security: DEBUG
33-
34-
spring:
35-
resources:
36-
chain:
37-
enabled: true

click/src/main/resources/application.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,3 @@ security:
1414
logging:
1515
level:
1616
org.springframework.security: DEBUG
17-
18-
spring:
19-
resources:
20-
chain:
21-
enabled: true
22-

custom-error/src/main/resources/application.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,3 @@ security:
1212
logging:
1313
level:
1414
org.springframework.security: DEBUG
15-
16-
spring:
17-
resources:
18-
chain:
19-
enabled: true

github/src/main/resources/application.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,3 @@ github:
3030
logging:
3131
level:
3232
org.springframework.security: DEBUG
33-
34-
spring:
35-
resources:
36-
chain:
37-
enabled: true

logout/src/main/resources/application.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,3 @@ security:
1414
logging:
1515
level:
1616
org.springframework.security: DEBUG
17-
18-
spring:
19-
resources:
20-
chain:
21-
enabled: true
22-

manual/src/main/resources/application.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,3 @@ facebook:
1313
logging:
1414
level:
1515
org.springframework.security: DEBUG
16-
17-
spring:
18-
resources:
19-
chain:
20-
enabled: true
21-

simple/README.adoc

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,9 @@ now), plus AngularJS for later. The other dependency is the webjars
8989
"locator" which is provided as a library by the webjars site, and
9090
which can be used by Spring to locate static assets in webjars without
9191
needing to know the exact versions (hence the versionless
92-
`/webjars/{all}` links in the `index.html`). To activate the webjar
93-
locator we just need to activate the Spring MVC resource chain in our
94-
`application.properties`:
95-
96-
.application.properties
97-
[source,properties]
98-
----
99-
spring.resources.chain.enabled: true
100-
----
92+
`/webjars/{all}` links in the `index.html`). The webjar
93+
locator is activated by default in a Spring Boot app as long as you
94+
don't switch off the MVC autoconfiguration.
10195

10296
With those changes in place we should have a nice looking home page
10397
for our app.

simple/src/main/resources/application.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,3 @@ security:
1010
clientAuthenticationScheme: form
1111
resource:
1212
userInfoUri: https://graph.facebook.com/me
13-
spring:
14-
resources:
15-
chain:
16-
enabled: true
17-

0 commit comments

Comments
 (0)