Skip to content

Commit

Permalink
Webjars locator is autoconfigured now
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Syer committed Aug 2, 2016
1 parent 9a3d05b commit 349487c
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 47 deletions.
5 changes: 0 additions & 5 deletions auth-server/src/main/resources/application.yml
Expand Up @@ -30,8 +30,3 @@ github:
logging:
level:
org.springframework.security: DEBUG

spring:
resources:
chain:
enabled: true
6 changes: 0 additions & 6 deletions click/src/main/resources/application.yml
Expand Up @@ -14,9 +14,3 @@ security:
logging:
level:
org.springframework.security: DEBUG

spring:
resources:
chain:
enabled: true

5 changes: 0 additions & 5 deletions custom-error/src/main/resources/application.yml
Expand Up @@ -12,8 +12,3 @@ security:
logging:
level:
org.springframework.security: DEBUG

spring:
resources:
chain:
enabled: true
5 changes: 0 additions & 5 deletions github/src/main/resources/application.yml
Expand Up @@ -30,8 +30,3 @@ github:
logging:
level:
org.springframework.security: DEBUG

spring:
resources:
chain:
enabled: true
6 changes: 0 additions & 6 deletions logout/src/main/resources/application.yml
Expand Up @@ -14,9 +14,3 @@ security:
logging:
level:
org.springframework.security: DEBUG

spring:
resources:
chain:
enabled: true

6 changes: 0 additions & 6 deletions manual/src/main/resources/application.yml
Expand Up @@ -13,9 +13,3 @@ facebook:
logging:
level:
org.springframework.security: DEBUG

spring:
resources:
chain:
enabled: true

12 changes: 3 additions & 9 deletions simple/README.adoc
Expand Up @@ -89,15 +89,9 @@ now), plus AngularJS for later. The other dependency is the webjars
"locator" which is provided as a library by the webjars site, and
which can be used by Spring to locate static assets in webjars without
needing to know the exact versions (hence the versionless
`/webjars/{all}` links in the `index.html`). To activate the webjar
locator we just need to activate the Spring MVC resource chain in our
`application.properties`:

.application.properties
[source,properties]
----
spring.resources.chain.enabled: true
----
`/webjars/{all}` links in the `index.html`). The webjar
locator is activated by default in a Spring Boot app as long as you
don't switch off the MVC autoconfiguration.

With those changes in place we should have a nice looking home page
for our app.
Expand Down
5 changes: 0 additions & 5 deletions simple/src/main/resources/application.yml
Expand Up @@ -10,8 +10,3 @@ security:
clientAuthenticationScheme: form
resource:
userInfoUri: https://graph.facebook.com/me
spring:
resources:
chain:
enabled: true

0 comments on commit 349487c

Please sign in to comment.