You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can use multiple `FileResourceRoute` but it is nonsense to use more `PublicResourceRoute` or more `WebjarsResourceRoute`.
35
-
35
+
36
36
The [CrudNgDemo]({{ site.demourl }}/pippo-demo-crudng) (demo pippo-angularjs integration) is a good application that demonstrates the concept of static files.
37
37
In `src/main/resources` we created a folder __public__ and we put all assets in that folder (imgs, css, js, fonts, ...).
38
38
@@ -52,7 +52,7 @@ The CrudNgDemo uses the [Bootstrap](http://getbootstrap.com/) & [Font-Awesome](h
52
52
53
53
The CrudNgDemo also uses a custom CSS file which is a classpath resource from the `/public` folder.
54
54
55
-
In this demo, the html template page (freemarker engine) contains a head section like:
55
+
In this demo, the html template page (`Freemarker engine`) contains a head section like:
56
56
57
57
```html
58
58
<head>
@@ -92,6 +92,34 @@ Sure in your pom.xml file (if you use Maven) you must declare the dependencies t
92
92
</dependency>
93
93
```
94
94
95
+
Of course you can use `public` and `webjars` resources in your project without a template engine.
0 commit comments